Class: Fluent::Compat::ExecUtil::JSONParser

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

Instance Method Summary collapse

Methods inherited from Parser

#initialize

Constructor Details

This class inherits a constructor from Fluent::Compat::ExecUtil::Parser

Instance Method Details

#call(io) ⇒ Object



79
80
81
82
83
# File 'lib/fluent/compat/exec_util.rb', line 79

def call(io)
  y = Yajl::Parser.new
  y.on_parse_complete = @on_message
  y.parse(io)
end