Class: Writexlsx::Format::NumberFormatState

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNumberFormatState

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_codeObject

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

#indexObject

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