Method: Axlsx::Xf#initialize

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

#initialize(options = {}) ⇒ Xf

Creates a new Xf object

Parameters:

  • [Integer] (Hash)

    a customizable set of options

  • [Boolean] (Hash)

    a customizable set of options

  • [CellAlignment] (Hash)

    a customizable set of options

  • [CellProtection] (Hash)

    a customizable set of options



84
85
86
87
88
# File 'lib/axlsx/stylesheet/xf.rb', line 84

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