Class: RSI::YAMLSerializer
- Inherits:
-
Object
- Object
- RSI::YAMLSerializer
- Defined in:
- lib/rsi/serializers.rb
Overview
Serializer which reads and writes YAML. Useful for diagnosing database issues. This serializer is also used for the DB metadata file, which needs to be readable far more than it needs to be small or fast.
Instance Method Summary collapse
Instance Method Details
#dump(obj, stream) ⇒ Object
16 17 18 |
# File 'lib/rsi/serializers.rb', line 16 def dump( obj, stream ) YAML.dump( obj, stream ) end |
#load(stream) ⇒ Object
13 14 15 |
# File 'lib/rsi/serializers.rb', line 13 def load( stream ) return YAML.load( stream ) end |