Class: LIT::Object::Option::Some
- Inherits:
-
Object
- Object
- LIT::Object::Option::Some
- Defined in:
- lib/lit/object/option.rb
Overview
Instance Attribute Summary collapse
- #value ⇒ Object readonly
Instance Method Summary collapse
- #__value__ ⇒ Object
-
#initialize(value) ⇒ Some
constructor
A new instance of Some.
Constructor Details
#initialize(value) ⇒ Some
Returns a new instance of Some.
24 25 26 27 |
# File 'lib/lit/object/option.rb', line 24 def initialize(value) check_type!(value) @value = value end |