module ArelExtensions::BooleanFunctions
Public Instance Methods
and(*others)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 9 def and *others Arel::Nodes::And.new self, others end
or(*others)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 17 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 21 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 5 def ⋀(other) self.and(other) end
⋁(other)
click to toggle source
# File lib/arel_extensions/boolean_functions.rb, line 13 def ⋁(other) self.or(other) end