diff options
| author | Koza <[email protected]> | 2023-04-12 18:40:03 +0200 |
|---|---|---|
| committer | Koza <[email protected]> | 2023-04-12 18:40:03 +0200 |
| commit | 383195708d2c16c9fa132738c41ac895ac701a9e (patch) | |
| tree | a027fe57302653014348690fe56031837ae68109 /lib/axlsx.rb | |
| parent | 79c2802f94b3a2ee7ba7470ac7f0d3ffbd92ea0a (diff) | |
| download | caxlsx-383195708d2c16c9fa132738c41ac895ac701a9e.tar.gz caxlsx-383195708d2c16c9fa132738c41ac895ac701a9e.zip | |
Fix warnings with Ruby 2.x
Diffstat (limited to 'lib/axlsx.rb')
| -rw-r--r-- | lib/axlsx.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx.rb b/lib/axlsx.rb index 9dba9144..0fd8260c 100644 --- a/lib/axlsx.rb +++ b/lib/axlsx.rb @@ -206,7 +206,7 @@ module Axlsx # See https://www.owasp.org/index.php/CSV_Injection for details. # @return [Boolean] def self.escape_formulas - @escape_formulas.nil? ? false : @escape_formulas + !defined?(@escape_formulas) || @escape_formulas.nil? ? false : @escape_formulas end # Sets whether to treat values starting with an equals sign as formulas or as literal strings. |
