Class: Rrxcell::Excelx::Cell

Inherits:
Cell
  • Object
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

#objectObject



9
10
11
# File 'lib/rrxcell/excelx/cell.rb', line 9

def object
  sheet.object.cell(row.position + 1, position + 1)
end

#typeObject



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

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

#valueObject



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