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
Instance Attribute Summary
Attributes included from Mixin
Instance Method Summary collapse
-
#call ⇒ Dry::Monad::Maybe
All the arguments passed to initializer.
Methods included from ToProcInterface
Instance Method Details
#call ⇒ Dry::Monad::Maybe
All the arguments passed to initializer.
12 13 14 |
# File 'lib/to_proc_interface/call_to_maybe.rb', line 12 def call(...) new(...).call.to_maybe end |