Method: Roo::Excelx::Cell#initialize
- Defined in:
- lib/roo/excelx.rb
#initialize(value, type, formula, excelx_type, excelx_value, style, hyperlink, base_date, coordinate) ⇒ Cell
Returns a new instance of Cell.
81 82 83 84 85 86 87 88 89 90 91 |
# File 'lib/roo/excelx.rb', line 81 def initialize(value, type, formula, excelx_type, excelx_value, style, hyperlink, base_date, coordinate) @type = type @formula = formula @base_date = base_date if [:date, :datetime].include?(@type) @excelx_type = excelx_type @excelx_value = excelx_value @style = style @value = type_cast_value(value) @value = Roo::Link.new(hyperlink, @value.to_s) if hyperlink @coordinate = coordinate end |