Module: MetaWhere::ConditionOperators

Included in:
Hash, Compound, Condition, Not
Defined in:
lib/meta_where/condition_operators.rb

Instance Method Summary collapse

Instance Method Details

#&(other) ⇒ Object



7
8
9
# File 'lib/meta_where/condition_operators.rb', line 7

def &(other)
  And.new(self, other)
end

#-(other) ⇒ Object



11
12
13
# File 'lib/meta_where/condition_operators.rb', line 11

def -(other)
  And.new(self, Not.new(other))
end

#-@Object



15
16
17
# File 'lib/meta_where/condition_operators.rb', line 15

def -@
  Not.new(self)
end

#|(other) ⇒ Object



3
4
5
# File 'lib/meta_where/condition_operators.rb', line 3

def |(other)
  Or.new(self, other)
end