module ArelExtensions::BooleanFunctions
Public Instance Methods
and(*others)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 11 def and *others Arel::Nodes::And.new self, others end
or(*others)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 19 def or *others Arel::Nodes::Or.new self, others end
then(t, f = nil)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 23 def then(t, f = nil) ArelExtensions::Nodes::Then.new [self, t, f] end
⋀(other)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 7 def ⋀(other) self.and(other) end
⋁(other)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 15 def ⋁(other) self.or(other) end