Class: Pyper::Pipes::NoOp

Inherits:
Object
  • Object
show all
Defined in:
lib/pyper/pipes/no_op.rb

Overview

This pipe performs no operation. Usful if want to potentially skip a pipe in in the pipeline.

Examples:

(some condition) ? some_pipe(conent) : Pyper::Pipes::NoOp

Class Method Summary collapse

Class Method Details

.pipe(attrs_or_items, status = {}) ⇒ Object

Parameters:

  • attrs_or_items (Object)
  • status (Hash) (defaults to: {})

    The mutable status field

Returns:

  • (Object)


11
12
13
# File 'lib/pyper/pipes/no_op.rb', line 11

def self.pipe(attrs_or_items, status = {})
  attrs_or_items
end