Class: RSI::NativeSerializer
- Inherits:
-
Object
- Object
- RSI::NativeSerializer
- Defined in:
- lib/rsi/serializers.rb
Overview
Serializer which uses Ruby’s built in object serializer.
Instance Method Summary collapse
Instance Method Details
#dump(obj, stream) ⇒ Object
26 27 28 |
# File 'lib/rsi/serializers.rb', line 26 def dump( obj, stream ) Marshal.dump( obj, stream ) end |
#load(stream) ⇒ Object
23 24 25 |
# File 'lib/rsi/serializers.rb', line 23 def load( stream ) return Marshal.load( stream ) end |