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.



107
108
109
# File 'lib/rubyXL/objects/reference.rb', line 107

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

Instance Method Details

#to_sObject



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

def to_s
  self.collect{ |ref| ref.to_s }.join(' ')
end