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

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

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

Class Method Summary collapse

Class Method Details

.to_maybeObject

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.



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

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.



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

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.



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