Method: FluQ::DSL::Feed#handler

Defined in:
lib/fluq/dsl/feed.rb

#handler(*type, &block) ⇒ Object

Parameters:

  • handler (Array<Symbol>)

    type path, e.g. :log, :counter



19
20
21
22
# File 'lib/fluq/dsl/feed.rb', line 19

def handler(*type, &block)
  klass = constantize(:handler, *type)
  handlers.push [klass, FluQ::DSL::Options.new(&block).to_hash]
end