class Fluent::Compat::TextParser::RegexpParser
Public Class Methods
new(regexp, conf = {})
click to toggle source
TODO: warn when deprecated
Calls superclass method
Fluent::Plugin::RegexpParser.new
# 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
Public Instance Methods
patterns()
click to toggle source
# File lib/fluent/compat/parser.rb, line 138 def patterns {'format' => @regexp, 'time_format' => @time_format} end