Module: ToProcInterface::CallToMaybe Abstract
- Includes:
- Mixin
- Defined in:
- lib/to_proc_interface.rb
Overview
Instance Method Summary collapse
Methods included from Mixin
Methods included from Delegations
#:<<, #:>>, #:[], #arity, #binding, #curry, delegate_to_proc, #lambda?, #parameters, proc_methods, #ruby2_keywords, #source_location, #yield
Instance Method Details
#call(*args, **opts, &block) ⇒ Dry::Monads::Maybe
151 152 153 154 155 |
# File 'lib/to_proc_interface.rb', line 151 def call(*args, **opts, &block) instance = new(*args, **opts, &block) result = instance.call result.to_maybe end |