class SymbolOperator

Attributes

field[R]
operator[R]

Public Class Methods

new(field, operator) click to toggle source
# File lib/mark_mapper/extensions/symbol.rb, line 55
def initialize(field, operator)
  @field, @operator = field, operator
end

Public Instance Methods

<=>(other) click to toggle source
# File lib/mark_mapper/extensions/symbol.rb, line 59
def <=>(other)
  if field == other.field
    operator <=> other.operator
  else
    field.to_s <=> other.field.to_s
  end
end
==(other) click to toggle source
# File lib/mark_mapper/extensions/symbol.rb, line 75
def ==(other)
  other.class == self.class && field == other.field && operator == other.operator
end
eql?(other) click to toggle source
# File lib/mark_mapper/extensions/symbol.rb, line 71
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/mark_mapper/extensions/symbol.rb, line 67
def hash
  field.hash + operator.hash
end