class Bruhl::Relation

Attributes

left[R]
operator[R]
right[R]

Public Class Methods

new(left, operator, right) click to toggle source
# File lib/bruhl.rb, line 206
def initialize(left, operator, right)
  @left     = left
  @operator = operator
  @right    = right
end

Public Instance Methods

==(other) click to toggle source
# File lib/bruhl.rb, line 212
def ==(other)
  puts @left, @left.class
  puts other.left, other.left.class
  other.is_a?(Relation)         &&
    @left     == other.left     &&
    @operator == other.operator &&
    @right    == other.right
end
inspect() click to toggle source
# File lib/bruhl.rb, line 221
def inspect
  to_s
end
to_s() click to toggle source
# File lib/bruhl.rb, line 225
def to_s
  "#{@left} #{@operator} #{@right}"
end