Method: Axlsx::CellStyle#initialize

Defined in:
lib/axlsx/stylesheet/cell_style.rb

#initialize(options = {}) ⇒ CellStyle

Creats a new CellStyle object

Parameters:

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

    a customizable set of options

Options Hash (options):

  • name (String)
  • xfId (Integer)
  • buildinId (Integer)
  • iLevel (Integer)
  • hidden (Boolean)
  • customBuiltIn (Boolean)


39
40
41
42
43
# File 'lib/axlsx/stylesheet/cell_style.rb', line 39

def initialize(options={})
  options.each do |o|
    self.send("#{o[0]}=", o[1]) if self.respond_to? o[0]
  end
end