Class: FunctionalLightService::Option::Some
- Defined in:
- lib/functional-light-service/functional/option.rb
Instance Method Summary collapse
-
#initialize(init) ⇒ Some
constructor
A new instance of Some.
Constructor Details
#initialize(init) ⇒ Some
Returns a new instance of Some.
11 12 13 14 15 |
# File 'lib/functional-light-service/functional/option.rb', line 11 def initialize(init) raise ArgumentError, "Some cannot wrap nil: use None instead" if init.nil? super end |