class ParamsReady::Query::Not

Public Class Methods

new(operator) click to toggle source
# File lib/params_ready/query/predicate_operator.rb, line 109
def initialize(operator)
  @operator = operator
end

Public Instance Methods

altn() click to toggle source
# File lib/params_ready/query/predicate_operator.rb, line 117
def altn
  "n#{@operator.altn}"
end
name() click to toggle source
# File lib/params_ready/query/predicate_operator.rb, line 113
def name
  "not_#{@operator.name}"
end
test(*args) click to toggle source
# File lib/params_ready/query/predicate_operator.rb, line 121
def test(*args)
  result = @operator.test *args
  !result
end
to_query(*args) click to toggle source
# File lib/params_ready/query/predicate_operator.rb, line 126
def to_query(*args)
  result = @operator.to_query(*args)
  result.not
end