class Dry::Logic::Operations::Xor
Public Instance Methods
[](input)
click to toggle source
# File lib/dry/logic/operations/xor.rb, line 19 def [](input) left[input] ^ right[input] end
ast(input = Undefined)
click to toggle source
# File lib/dry/logic/operations/xor.rb, line 23 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 15 def call(input) Result.new(self[input], id) { ast(input) } end
type()
click to toggle source
# File lib/dry/logic/operations/xor.rb, line 10 def type :xor end
Also aliased as: operator