Class: Rtype::Behavior::Xor
Instance Method Summary collapse
- #error_message(value) ⇒ Object
-
#initialize(*types) ⇒ Xor
constructor
A new instance of Xor.
- #valid?(value) ⇒ Boolean
Methods inherited from Base
Constructor Details
#initialize(*types) ⇒ Xor
Returns a new instance of Xor.
4 5 6 |
# File 'lib/rtype/behavior/xor.rb', line 4 def initialize(*types) @types = types end |