TODO: warn when deprecated
# File lib/fluent/compat/parser.rb, line 125 def initialize(regexp, conf = {}) super() unless conf.empty? unless conf.is_a?(Config::Element) conf = Config::Element.new('default_regexp_conf', '', conf, []) end configure(conf) end @regexp = regexp end
# File lib/fluent/compat/parser.rb, line 138 def patterns {'format' => @regexp, 'time_format' => @time_format} end