Class: Fluent::TextParser::MsgPackParser

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

Instance Method Summary collapse

Instance Method Details

#parse(text) {|MessagePack.unpack(text)| ... } ⇒ Object

Yields:

  • (MessagePack.unpack(text))


6
7
8
# File 'lib/fluent/plugin/parser_msgpack.rb', line 6

def parse(text)
  yield MessagePack.unpack(text)
end