Method: TTY::Table::Field#==

Defined in:
lib/tty/table/field.rb

#==(other) ⇒ Boolean

Compare fields for equivalence of value attribute

Returns:

API:

  • public



151
152
153
# File 'lib/tty/table/field.rb', line 151

def ==(other)
  other.is_a?(self.class) && value == other.value
end