diff options
Diffstat (limited to 'lib/axlsx/util')
| -rw-r--r-- | lib/axlsx/util/options_parser.rb | 2 | ||||
| -rw-r--r-- | lib/axlsx/util/storage.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/options_parser.rb b/lib/axlsx/util/options_parser.rb index 526a3aed..73faa224 100644 --- a/lib/axlsx/util/options_parser.rb +++ b/lib/axlsx/util/options_parser.rb @@ -10,7 +10,7 @@ module Axlsx def parse_options(options = {}) options.each do |key, value| key = :"#{key}=" - self.send(key, value) if !value.nil? && self.respond_to?(key) + send(key, value) if !value.nil? && respond_to?(key) end end end diff --git a/lib/axlsx/util/storage.rb b/lib/axlsx/util/storage.rb index b9b84a37..ac5e9ebc 100644 --- a/lib/axlsx/util/storage.rb +++ b/lib/axlsx/util/storage.rb @@ -133,7 +133,7 @@ module Axlsx @left = @right = @child = -1 @sector = @size = @created = @modified = 0 options.each do |o| - self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" + send("#{o[0]}=", o[1]) if respond_to? "#{o[0]}=" end @color ||= COLORS[:black] @type ||= (data.nil? ? TYPES[:storage] : TYPES[:stream]) |
