Class: RubyXL::Sqref

Inherits:
Array
  • Object
show all
Defined in:
lib/rubyXL/objects/reference.rb

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ Sqref

Returns a new instance of Sqref.



111
112
113
# File 'lib/rubyXL/objects/reference.rb', line 111

def initialize(str)
  str.split.each { |ref_str| self << RubyXL::Reference.new(ref_str) }
end

Instance Method Details

#to_sObject



115
116
117
# File 'lib/rubyXL/objects/reference.rb', line 115

def to_s
  self.collect(&:to_s).join(' ')
end