Method: Roo::Excelx::Cell::Date#initialize

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

#initialize(value, formula, excelx_type, style, link, base_date, coordinate) ⇒ Date



11
12
13
14
15
16
# File 'lib/roo/excelx/cell/date.rb', line 11

def initialize(value, formula, excelx_type, style, link, base_date, coordinate)
  # NOTE: Pass all arguments to the parent class, DateTime.
  super
  @format = excelx_type.last
  @value = link ? Roo::Link.new(link, value) : create_date(base_date, value)
end