Class: Tabulard::Table::Header
- Inherits:
-
Object
- Object
- Tabulard::Table::Header
- Defined in:
- lib/tabulard/table.rb
Instance Attribute Summary collapse
-
#col ⇒ Object
readonly
Returns the value of attribute col.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(col:, value:) ⇒ Header
constructor
A new instance of Header.
- #row_value_index ⇒ Object
Constructor Details
#initialize(col:, value:) ⇒ Header
Returns a new instance of Header.
55 56 57 58 |
# File 'lib/tabulard/table.rb', line 55 def initialize(col:, value:) @col = col @value = value end |
Instance Attribute Details
#col ⇒ Object (readonly)
Returns the value of attribute col.
60 61 62 |
# File 'lib/tabulard/table.rb', line 60 def col @col end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
60 61 62 |
# File 'lib/tabulard/table.rb', line 60 def value @value end |
Instance Method Details
#==(other) ⇒ Object
62 63 64 |
# File 'lib/tabulard/table.rb', line 62 def ==(other) other.is_a?(self.class) && col == other.col && value == other.value end |