Parent

Methods

Included Modules

Class/Module Index [+]

Quicksearch

Fluent::TextParser::NoneParser

Attributes

estimate_current_event[RW]

Public Class Methods

new() click to toggle source
# File lib/fluent/parser.rb, line 382
def initialize
  super
  @estimate_current_event = true
end

Public Instance Methods

call(text) click to toggle source
# File lib/fluent/parser.rb, line 387
def call(text)
  record = {}
  record[@message_key] = text
  time = @estimate_current_event ? Engine.now : nil
  if block_given?
    yield time, record
  else
    return time, record
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.