aboutsummaryrefslogblamecommitdiffstats
path: root/lib/sql_algebra/relations/predicates/equality_predicate.rb
blob: 2d206e6c120ad9a2caec7d34914d769bca176a7a (plain) (tree)
1
2
3
4
5
6
7






                                                                                   
class EqualityPredicate < BinaryPredicate
  def ==(other)
    self.class == other.class and
      ((attribute1.eql?(other.attribute1) and attribute2.eql?(other.attribute2)) or
       (attribute1.eql?(other.attribute2) and attribute2.eql?(other.attribute1)))
  end
end