Class: Thy::Types::Option
- Inherits:
-
Object
- Object
- Thy::Types::Option
- Defined in:
- lib/thy/types/option.rb
Instance Method Summary collapse
- #check(value) ⇒ Object
-
#initialize(type) ⇒ Option
constructor
A new instance of Option.
Constructor Details
#initialize(type) ⇒ Option
Returns a new instance of Option.
6 7 8 |
# File 'lib/thy/types/option.rb', line 6 def initialize(type) @type = type end |