class Retl::PathHandler
Public Class Methods
new(path, dependencies={}, &block)
click to toggle source
Calls superclass method
Retl::Handler::new
# File lib/retl/handlers/path_handler.rb, line 5 def initialize(path, dependencies={}, &block) super() @path = path dependencies.merge!(block.call) if block @context = Context.new(@path, dependencies) end
Public Instance Methods
call(data, context)
click to toggle source
# File lib/retl/handlers/path_handler.rb, line 12 def call(data, context) @context.execute_step(@path, data).each do |result| push_out(result) end end