Class: Spark::Serializer::Marshal
- Inherits:
-
Base
- Object
- Base
- Spark::Serializer::Marshal
show all
- Defined in:
- lib/spark/serializer/marshal.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/marshal.rb', line 5
def dump(data)
::Marshal.dump(data)
end
|
#load(data) ⇒ Object
9
10
11
|
# File 'lib/spark/serializer/marshal.rb', line 9
def load(data)
::Marshal.load(data)
end
|