Class: RubyXL::Worksheet

Inherits:
Object
  • Object
show all
Defined in:
lib/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#row(row_index) ⇒ Object



28
29
30
31
32
33
34
35
36
# File 'lib/compatibility.rb', line 28

def row(row_index)
  x = @sheet_data[row_index]
  def x.date(column_index)
    data = self[column_index]
    return data.value.respond_to?(:to_i) ? data.value.to_i : data.value
    # return Date.new(1899,12,30)+data.value.to_i if data.is_a?(RubyXL::Cell)
  end unless defined?(x.date)
  x
end