module SexyScopes::Arel::Predications

Public Instance Methods

!=(other)
Alias for: not_eq
!~(other, *)
Alias for: does_not_match
<(other)
Alias for: lt
<=(other)
Alias for: lteq
==(other)
Alias for: eq
=~(other, *)
Alias for: matches
>(other)
Alias for: gt
>=(other)
Alias for: gteq
does_not_match(other, *) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 22
def does_not_match(other, *)
  if Regexp === other
    does_not_match_regexp(other)
  else
    SexyScopes.extend_predicate(super)
  end
end
Also aliased as: !~
does_not_match_regexp(other) click to toggle source
# File lib/sexy_scopes/arel/predications.rb, line 36
def does_not_match_regexp(other)
  matches_regexp(other).not
end
eq(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 4
def eq(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: ==
gt(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 45
def gt(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: >
gteq(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 40
def gteq(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: >=
in(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 9
def in(other)
  SexyScopes.extend_predicate(super)
end
lt(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 50
def lt(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: <
lteq(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 55
def lteq(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: <=
matches(other, *) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 13
def matches(other, *)
  if Regexp === other
    matches_regexp(other)
  else
    SexyScopes.extend_predicate(super)
  end
end
Also aliased as: =~
matches_regexp(other) click to toggle source
# File lib/sexy_scopes/arel/predications.rb, line 31
def matches_regexp(other)
  predicate = Arel::Nodes::RegexpMatches.new(self, other)
  SexyScopes.extend_predicate(predicate)
end
not_eq(other) click to toggle source
Calls superclass method
# File lib/sexy_scopes/arel/predications.rb, line 60
def not_eq(other)
  SexyScopes.extend_predicate(super)
end
Also aliased as: !=