Class: ColName

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/write_xlsx/col_name.rb

Instance Method Summary collapse

Constructor Details

#initializeColName

Returns a new instance of ColName.



9
10
11
12
# File 'lib/write_xlsx/col_name.rb', line 9

def initialize
  @col_str_table = []
  @row_str_table = []
end

Instance Method Details

#col_str(col) ⇒ Object



14
15
16
# File 'lib/write_xlsx/col_name.rb', line 14

def col_str(col)
  @col_str_table[col] ||= col_str_build(col)
end

#row_str(row) ⇒ Object



18
19
20
# File 'lib/write_xlsx/col_name.rb', line 18

def row_str(row)
  @row_str_table[row] ||= row.to_s
end