Module: Dry::Types::Builder

Included in:
Option
Defined in:
lib/dry/types/fear/option.rb

Instance Method Summary collapse

Instance Method Details

#optionOption

Turn a type into a maybe type

Returns:



86
87
88
# File 'lib/dry/types/fear/option.rb', line 86

def option
  Option.new(Types["nil"] | self)
end