class Fluent::Plugin::Parser

Constants

TimeParser

Attributes

estimate_current_event[RW]

SET false BEFORE CONFIGURE, to return nil when time not parsed

Public Class Methods

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

Public Instance Methods

call(*a, &b) click to toggle source
# File lib/fluent/plugin/parser.rb, line 48
def call(*a, &b)
  # Keep backward compatibility for existing plugins
  # TODO: warn when deprecated
  parse(*a, &b)
end
parse(text) click to toggle source
# File lib/fluent/plugin/parser.rb, line 44
def parse(text)
  raise NotImplementedError, "Implement this method in child class"
end