Class: Mementus::Pipeline::Filter

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

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/filter.rb', line 4

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