Method: Dry::Types::Option#call_unsafe

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

#call_unsafe(input = Undefined) ⇒ Fear::Option

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Parameters:

Returns:



17
18
19
20
21
22
23
24
25
26
# File 'lib/dry/types/fear/option.rb', line 17

def call_unsafe(input = Undefined)
  case input
  when ::Fear::Option
    input
  when Undefined
    Fear.none
  else
    Fear.option(type.call_unsafe(input))
  end
end