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