Class: Tabulard::Table::Row

Inherits:
Object
  • Object
show all
Defined in:
lib/tabulard/table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rowObject (readonly)

Returns the value of attribute row.



77
78
79
# File 'lib/tabulard/table.rb', line 77

def row
  @row
end

#valueObject (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