class Fluent::Parser

Attributes

estimate_current_event[RW]

SET false BEFORE CONFIGURE, to return nil when time not parsed 'configure()' may raise errors for unexpected configurations

Public Class Methods

new() click to toggle source
Calls superclass method Fluent::Configurable.new
# File lib/fluent/parser.rb, line 43
def initialize
  super
  @estimate_current_event = true
end

Public Instance Methods

call(*a, &b) click to toggle source

Keep backward compatibility for existing plugins

# File lib/fluent/parser.rb, line 57
def call(*a, &b)
  parse(*a, &b)
end
configure(conf) click to toggle source
Calls superclass method Fluent::Configurable#configure
# File lib/fluent/parser.rb, line 48
def configure(conf)
  super
end
parse(text) click to toggle source
# File lib/fluent/parser.rb, line 52
def parse(text)
  raise NotImplementedError, "Implement this method in child class"
end