Class: Writexlsx::Format::FillState
- Inherits:
-
Object
- Object
- Writexlsx::Format::FillState
- Defined in:
- lib/write_xlsx/format/fill_state.rb
Instance Attribute Summary collapse
-
#bg_color ⇒ Object
Returns the value of attribute bg_color.
-
#count ⇒ Object
Returns the value of attribute count.
-
#fg_color ⇒ Object
Returns the value of attribute fg_color.
-
#index ⇒ Object
Returns the value of attribute index.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize ⇒ FillState
constructor
A new instance of FillState.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize ⇒ FillState
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_color ⇒ Object
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 |
#count ⇒ Object
Returns the value of attribute count.
7 8 9 |
# File 'lib/write_xlsx/format/fill_state.rb', line 7 def count @count end |
#fg_color ⇒ Object
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 |
#index ⇒ Object
Returns the value of attribute index.
7 8 9 |
# File 'lib/write_xlsx/format/fill_state.rb', line 7 def index @index end |
#pattern ⇒ Object
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 |