Class: Pipeable::Steps::Or

Inherits:
Abstract show all
Defined in:
lib/pipeable/steps/or.rb

Overview

Wraps Dry Monads ‘#or` method as a step.

Instance Method Summary collapse

Methods inherited from Abstract

#initialize

Methods included from Composable

#<<, #>>

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 }