class NRSER::Types::XOR

XOR combinator - Exclusive Or (`xor`).

Constants

JOIN_SYMBOL

Public Instance Methods

test?(value) click to toggle source
# File lib/nrser/types/combinators.rb, line 238
def test? value
  @types.count { |type| type === value } == 1
end