Class: Roo::Excelx::Workbook::Label
- Inherits:
-
Object
- Object
- Roo::Excelx::Workbook::Label
- Defined in:
- lib/roo/excelx/workbook.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#sheet ⇒ Object
readonly
Returns the value of attribute sheet.
Instance Method Summary collapse
-
#initialize(name, sheet, row, col) ⇒ Label
constructor
A new instance of Label.
- #key ⇒ Object
Constructor Details
#initialize(name, sheet, row, col) ⇒ Label
Returns a new instance of Label.
9 10 11 12 13 14 |
# File 'lib/roo/excelx/workbook.rb', line 9 def initialize(name, sheet, row, col) @name = name @sheet = sheet @row = row.to_i @col = ::Roo::Utils.letter_to_number(col) end |
Instance Attribute Details
#col ⇒ Object (readonly)
Returns the value of attribute col.
7 8 9 |
# File 'lib/roo/excelx/workbook.rb', line 7 def col @col end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/roo/excelx/workbook.rb', line 7 def name @name end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
7 8 9 |
# File 'lib/roo/excelx/workbook.rb', line 7 def row @row end |
#sheet ⇒ Object (readonly)
Returns the value of attribute sheet.
7 8 9 |
# File 'lib/roo/excelx/workbook.rb', line 7 def sheet @sheet end |
Instance Method Details
#key ⇒ Object
16 17 18 |
# File 'lib/roo/excelx/workbook.rb', line 16 def key [@row, @col] end |