Method: Workbook::Cell#initialize

Defined in:
lib/workbook/cell.rb

#initialize(value = nil, options = {}) ⇒ Cell

Returns a new instance of Cell.

Parameters:

  • value (Numeric, String, Time, Date, TrueClass, FalseClass, NilClass) (defaults to: nil)

    a valid value

  • options (Hash) (defaults to: {})

    a reference to :format (Workbook::Format) can be specified



13
14
15
16
17
18
# File 'lib/workbook/cell.rb', line 13

def initialize value=nil, options={}
  self.format = options[:format] if options[:format]
  self.row = options[:row]
  self.value = value
  @to_sym = nil
end