Method: Fluent::Config::DSL::Element#match

Defined in:
lib/fluent/config/dsl.rb

#match(*args, &block) ⇒ Object



127
128
129
130
# File 'lib/fluent/config/dsl.rb', line 127

def match(*args, &block)
  ::Kernel.raise ::ArgumentError, "#{name} block requires arguments for match pattern" if args.nil? || args.size != 1
  @proxy.add_element('match', args.first, block)
end