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