Class: ColName

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

Instance Method Summary collapse

Constructor Details

#initializeColName


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

def initialize
  @col_str_table = Hash.new
end

Instance Method Details

#col_str(col) ⇒ Object


11
12
13
14
# File 'lib/write_xlsx/col_name.rb', line 11

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