class Dry::Logic::Operations::Negation

Public Instance Methods

[](input) click to toggle source
# File lib/dry/logic/operations/negation.rb, line 15
def [](input)
  !rule[input]
end
call(input) click to toggle source
# File lib/dry/logic/operations/negation.rb, line 11
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 7
def type
  :not
end