class Dry::Logic::Operations::Xor

Public Instance Methods

[](input) click to toggle source
# File lib/dry/logic/operations/xor.rb, line 16
def [](input)
  left[input] ^ right[input]
end
ast(input = Undefined) click to toggle source
# File lib/dry/logic/operations/xor.rb, line 20
def ast(input = Undefined)
  [type, rules.map { |rule| rule.ast(input) }]
end
call(input) click to toggle source
# File lib/dry/logic/operations/xor.rb, line 12
def call(input)
  Result.new(self[input], id) { ast(input) }
end
operator()
Alias for: type
type() click to toggle source
# File lib/dry/logic/operations/xor.rb, line 7
def type
  :xor
end
Also aliased as: operator