Class: Tabulard::Table::Row
- Inherits:
-
Object
- Object
- Tabulard::Table::Row
- Defined in:
- lib/tabulard/table.rb
Instance Attribute Summary collapse
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(row:, value:) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(row:, value:) ⇒ Row
Returns a new instance of Row.
72 73 74 75 |
# File 'lib/tabulard/table.rb', line 72 def initialize(row:, value:) @row = row @value = value end |
Instance Attribute Details
#row ⇒ Object (readonly)
Returns the value of attribute row.
77 78 79 |
# File 'lib/tabulard/table.rb', line 77 def row @row end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
77 78 79 |
# File 'lib/tabulard/table.rb', line 77 def value @value end |
Instance Method Details
#==(other) ⇒ Object
79 80 81 |
# File 'lib/tabulard/table.rb', line 79 def ==(other) other.is_a?(self.class) && row == other.row && value == other.value end |