Class: Spark::Serializer::MessagePack

Inherits:
Base
  • Object
show all
Defined in:
lib/spark/serializer/message_pack.rb

Instance Method Summary collapse

Methods inherited from Base

#==, #batched?, #check_each, #error, #inspect, #load_from_file, #load_from_io, #name, #to_s, #unbatch!

Instance Method Details

#dump(data) ⇒ Object



5
6
7
# File 'lib/spark/serializer/message_pack.rb', line 5

def dump(data)
  ::MessagePack.dump(data)
end

#load(data) ⇒ Object



9
10
11
# File 'lib/spark/serializer/message_pack.rb', line 9

def load(data)
  ::MessagePack.load(data)
end