Module: Dry::Monads::ConversionStubs::Methods

Defined in:
lib/dry/monads/conversion_stubs.rb

Class Method Summary collapse

Class Method Details

.to_maybeObject


17
18
19
# File 'lib/dry/monads/conversion_stubs.rb', line 17

def to_maybe
  raise "Load Maybe first with require 'dry/monads/maybe'"
end

.to_resultObject


21
22
23
# File 'lib/dry/monads/conversion_stubs.rb', line 21

def to_result
  raise "Load Result first with require 'dry/monads/result'"
end

.to_validatedObject


25
26
27
# File 'lib/dry/monads/conversion_stubs.rb', line 25

def to_validated
  raise "Load Validated first with require 'dry/monads/validated'"
end