Module: ToProcInterface::CallToMaybe

Includes:
ToProcInterface
Defined in:
lib/to_proc_interface/call_to_maybe.rb

Overview

The mixin to use when an instance-level #call method returns a monad.

Constant Summary

Constants included from ToProcInterface

METHODS, VERSION

Instance Attribute Summary

Attributes included from Mixin

#to_proc

Instance Method Summary collapse

Methods included from ToProcInterface

loader

Instance Method Details

#callDry::Monad::Maybe

All the arguments passed to initializer.

Returns:

  • (Dry::Monad::Maybe)

See Also:



12
13
14
# File 'lib/to_proc_interface/call_to_maybe.rb', line 12

def call(...)
  new(...).call.to_maybe
end