Class: Pipeable::Steps::Or
- Defined in:
- lib/pipeable/steps/or.rb
Overview
Wraps Dry Monads #or method as a step.
Instance Method Summary collapse
Methods inherited from Abstract
Constructor Details
This class inherits a constructor from Pipeable::Steps::Abstract
Instance Method Details
#call(result) ⇒ Object
7 |
# File 'lib/pipeable/steps/or.rb', line 7 def call(result) = result.or { |object| base_block.call object } |