Class: Writexlsx::Format::FillState

Inherits:
Object
  • Object
show all
Defined in:
lib/write_xlsx/format/fill_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFillState

Returns a new instance of FillState.



9
10
11
12
13
14
15
# File 'lib/write_xlsx/format/fill_state.rb', line 9

def initialize
  @fg_color = 0x00
  @bg_color = 0x00
  @pattern  = 0
  @index    = 0
  @count    = 0
end

Instance Attribute Details

#bg_colorObject

Returns the value of attribute bg_color.



7
8
9
# File 'lib/write_xlsx/format/fill_state.rb', line 7

def bg_color
  @bg_color
end

#countObject

Returns the value of attribute count.



7
8
9
# File 'lib/write_xlsx/format/fill_state.rb', line 7

def count
  @count
end

#fg_colorObject

Returns the value of attribute fg_color.



7
8
9
# File 'lib/write_xlsx/format/fill_state.rb', line 7

def fg_color
  @fg_color
end

#indexObject

Returns the value of attribute index.



7
8
9
# File 'lib/write_xlsx/format/fill_state.rb', line 7

def index
  @index
end

#patternObject

Returns the value of attribute pattern.



7
8
9
# File 'lib/write_xlsx/format/fill_state.rb', line 7

def pattern
  @pattern
end

Instance Method Details

#initialize_copy(other) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/write_xlsx/format/fill_state.rb', line 17

def initialize_copy(other)
  @fg_color = other.fg_color
  @bg_color = other.bg_color
  @pattern  = other.pattern
  @index    = other.index
  @count    = other.count
end