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.



101
102
103
# File 'lib/rubyXL/objects/reference.rb', line 101

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

Instance Method Details

#to_sObject



105
106
107
# File 'lib/rubyXL/objects/reference.rb', line 105

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