Class: Fluent::TextParser::NoneParser

Inherits:
Parser
  • Object
show all
Defined in:
lib/fluent/parser.rb

Constant Summary

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Attribute Summary

Attributes inherited from Parser

#estimate_current_event

Instance Method Summary collapse

Methods inherited from Parser

#call, #configure, #initialize

Methods included from Configurable

#config, #configure, included, #initialize, lookup_type, register_type

Constructor Details

This class inherits a constructor from Fluent::Parser

Instance Method Details

#parse(text) ⇒ Object



452
453
454
455
456
457
458
459
460
461
# File 'lib/fluent/parser.rb', line 452

def parse(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