Method: Axlsx::Fill#initialize

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

#initialize(fill_type) ⇒ Fill

Creates a new Fill object

Parameters:

Raises:

  • (ArgumentError)

    if the fill_type parameter is not a PatternFill or a GradientFill instance



17
18
19
# File 'lib/axlsx/stylesheet/fill.rb', line 17

def initialize(fill_type)
  self.fill_type = fill_type
end