class Dry::Logic::Operations::Negation

Public Instance Methods

[](input) click to toggle source
# File lib/dry/logic/operations/negation.rb, line 18
def [](input)
  !rule[input]
end
call(input) click to toggle source
# File lib/dry/logic/operations/negation.rb, line 14
def call(input)
  Result.new(rule.(input).failure?, id) { ast(input) }
end
type() click to toggle source
# File lib/dry/logic/operations/negation.rb, line 10
def type
  :not
end