Class: ColName
Instance Method Summary collapse
- #col_str(col) ⇒ Object
-
#initialize ⇒ ColName
constructor
A new instance of ColName.
- #row_str(row) ⇒ Object
Constructor Details
#initialize ⇒ ColName
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 |