Class: Rrxcell::Excel::Cell

Inherits:
Cell
  • Object
show all
Defined in:
lib/rrxcell/excel/cell.rb

Instance Attribute Summary

Attributes inherited from Cell

#position, #row

Instance Method Summary collapse

Methods inherited from Cell

#book, #initialize, #object, #sheet

Constructor Details

This class inherits a constructor from Rrxcell::Cell

Instance Method Details

#typeObject



5
6
7
# File 'lib/rrxcell/excel/cell.rb', line 5

def type
  book.object.celltype(row.position + 1 , position + 1, sheet.position)
end

#valueObject



9
10
11
12
13
14
15
16
# File 'lib/rrxcell/excel/cell.rb', line 9

def value
  case type
  when :time
    value_as_time
  else
    raw_value
  end
end