Class: Mementus::Pipeline::Transform

Inherits:
Pipe
  • Object
show all
Defined in:
lib/mementus/pipeline/transform.rb

Direct Known Subclasses

Mementus::Pipes::Node

Instance Method Summary collapse

Methods inherited from Pipe

#initialize, #process

Constructor Details

This class inherits a constructor from Mementus::Pipeline::Pipe

Instance Method Details

#call(element) ⇒ Object



4
5
6
# File 'lib/mementus/pipeline/transform.rb', line 4

def call(element)
  Fiber.yield(process(element))
end