Class: Rrxcell::Excelx::Cell
- Inherits:
-
Cell
- Object
- Cell
- Rrxcell::Excelx::Cell
show all
- Defined in:
- lib/rrxcell/excelx/cell.rb
Instance Attribute Summary
Attributes inherited from Cell
#position, #row
Instance Method Summary
collapse
Methods inherited from Cell
#book, #initialize, #sheet
Constructor Details
This class inherits a constructor from Rrxcell::Cell
Instance Method Details
#object ⇒ Object
9
10
11
|
# File 'lib/rrxcell/excelx/cell.rb', line 9
def object
sheet.object.cell(row.position + 1, position + 1)
end
|
#type ⇒ Object
5
6
7
|
# File 'lib/rrxcell/excelx/cell.rb', line 5
def type
sheet.object.celltype(row.position + 1 , position + 1)
end
|
#value ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/rrxcell/excelx/cell.rb', line 13
def value
case type
when :time
value_as_time
else
raw_value
end
end
|