class Rrxcell::Excel::Cell
Public Instance Methods
type()
click to toggle source
# File lib/rrxcell/excel/cell.rb, line 5 def type book.object.celltype(row.position + 1 , position + 1, sheet.position) end
value()
click to toggle source
# File lib/rrxcell/excel/cell.rb, line 9 def value case type when :time value_as_time else raw_value end end
Private Instance Methods
raw_value()
click to toggle source
# File lib/rrxcell/excel/cell.rb, line 20 def raw_value book.object.cell(row.position + 1, position + 1, sheet.position) end
value_as_time()
click to toggle source
# File lib/rrxcell/excel/cell.rb, line 24 def value_as_time h = (raw_value / 3600).to_i m = (((raw_value / 60).to_i) % 60).to_i s = (raw_value % 60).to_i today = Date.today Time.new(today.year, today.month, today.day, h, m, s) end