Module: Dry::Types::Builder
- Included in:
- Option
- Defined in:
- lib/dry/types/fear/option.rb
Instance Method Summary collapse
-
#option ⇒ Option
Turn a type into a maybe type.
Instance Method Details
#option ⇒ Option
Turn a type into a maybe type
88 89 90 |
# File 'lib/dry/types/fear/option.rb', line 88 def option Option.new(Types["nil"] | self) end |