Class: Fluent::TextParser::NoneParser
- Defined in:
- lib/fluent/parser.rb
Constant Summary
Constants included from Configurable
Configurable::CONFIG_TYPE_REGISTRY
Instance Attribute Summary
Attributes inherited from Parser
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[] = text time = @estimate_current_event ? Engine.now : nil if block_given? yield time, record else return time, record end end |