# File lib/fluent/parser.rb, line 564 def call(text, &block) if block @parser.call(text, &block) else @parser.call(text) end end
# File lib/fluent/parser.rb, line 544 def configure(conf) super formats = parse_formats(conf).compact.map { |f| f[1..-2] }.join begin @regex = Regexp.new(formats, Regexp::MULTILINE) if @regex.named_captures.empty? raise "No named captures" end @parser = RegexpParser.new(@regex, conf) rescue => e raise ConfigError, "Invalid regexp '#{formats}': #{e}" end if @format_firstline check_format_regexp(@format_firstline, 'format_firstline') @firstline_regex = Regexp.new(@format_firstline[1..-2]) end end
Generated with the Darkfish Rdoc Generator 2.