Method: Roo::Excelx::Cell#initialize

Defined in:
lib/roo/excelx/cell.rb

#initialize(value, type, formula, excelx_type, excelx_value, style, hyperlink, base_date, coordinate) ⇒ Cell

DEPRECATED: Please use Cell.create_cell instead.



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/roo/excelx/cell.rb', line 18

def initialize(value, type, formula, excelx_type, excelx_value, style, hyperlink, base_date, coordinate)
  warn '[DEPRECATION] `Cell.new` is deprecated.  Please use `Cell.create_cell` instead.'
  @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