diff options
Diffstat (limited to 'lib/axlsx/util/storage.rb')
| -rw-r--r-- | lib/axlsx/util/storage.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/axlsx/util/storage.rb b/lib/axlsx/util/storage.rb index b33c499d..ac5e9ebc 100644 --- a/lib/axlsx/util/storage.rb +++ b/lib/axlsx/util/storage.rb @@ -75,7 +75,7 @@ module Axlsx # @param [String] v The data for this storages stream # @return [Array] def data=(v) - Axlsx::validate_string(v) + Axlsx.validate_string(v) self.type = TYPES[:stream] unless @type @size = v.size @data = v.bytes.to_a @@ -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]) |
