Class: Writexlsx::Format::NumberFormatState
- Inherits:
-
Object
- Object
- Writexlsx::Format::NumberFormatState
- Defined in:
- lib/write_xlsx/format/number_format_state.rb
Instance Attribute Summary collapse
-
#format_code ⇒ Object
Returns the value of attribute format_code.
-
#index ⇒ Object
Returns the value of attribute index.
Instance Method Summary collapse
-
#initialize ⇒ NumberFormatState
constructor
A new instance of NumberFormatState.
- #initialize_copy(other) ⇒ Object
Constructor Details
#initialize ⇒ NumberFormatState
Returns a new instance of NumberFormatState.
9 10 11 12 |
# File 'lib/write_xlsx/format/number_format_state.rb', line 9 def initialize @format_code = 'General' @index = 0 end |
Instance Attribute Details
#format_code ⇒ Object
Returns the value of attribute format_code.
7 8 9 |
# File 'lib/write_xlsx/format/number_format_state.rb', line 7 def format_code @format_code end |
#index ⇒ Object
Returns the value of attribute index.
7 8 9 |
# File 'lib/write_xlsx/format/number_format_state.rb', line 7 def index @index end |
Instance Method Details
#initialize_copy(other) ⇒ Object
14 15 16 17 |
# File 'lib/write_xlsx/format/number_format_state.rb', line 14 def initialize_copy(other) @format_code = other.format_code @index = other.index end |