Class: Pipeable::Steps::Bind

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

Overview

Wraps Dry Monads ‘#bind` 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/bind.rb', line 7

def call(result) = result.bind { |object| base_block.call object }