Class: Tabulard::Adapters::Xlsx::Cols
- Inherits:
-
Object
- Object
- Tabulard::Adapters::Xlsx::Cols
- Defined in:
- lib/tabulard/adapters/xlsx.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Instance Method Summary collapse
- #coord(col) ⇒ Object
-
#initialize(first_col:, last_col:) ⇒ Cols
constructor
A new instance of Cols.
- #name(col) ⇒ Object
Constructor Details
#initialize(first_col:, last_col:) ⇒ Cols
Returns a new instance of Cols.
165 166 167 168 169 170 171 |
# File 'lib/tabulard/adapters/xlsx.rb', line 165 def initialize(first_col:, last_col:) cols_offset = first_col - 1 @first_col = first_col @first_name = first_col @count = last_col - cols_offset end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
173 174 175 |
# File 'lib/tabulard/adapters/xlsx.rb', line 173 def count @count end |