Module: Pipeable::Composable

Included in:
Steps::Abstract
Defined in:
lib/pipeable/composable.rb

Overview

Allows objects to be functionally composable.

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



8
# File 'lib/pipeable/composable.rb', line 8

def <<(other) = method(:call) << other

#>>(other) ⇒ Object



6
# File 'lib/pipeable/composable.rb', line 6

def >>(other) = method(:call) >> other

#callObject



10
# File 'lib/pipeable/composable.rb', line 10

def call = fail NoMethodError, "`#{self.class.name}##{__method__}` must be implemented."