Module: Core::Composable

Defined in:
lib/core/composable.rb

Overview

Allows objects to be functionally composable.

Instance Method Summary collapse

Instance Method Details

#<<(other) ⇒ Object



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

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

#>>(other) ⇒ Object



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

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

#call ⇒ Object



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

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