Class: JsonRpcObjects::Serializer::Psych
- Inherits:
-
JsonRpcObjects::Serializer
- Object
- JsonRpcObjects::Serializer
- JsonRpcObjects::Serializer::Psych
- Defined in:
- lib/json-rpc-objects/serializer/psych.rb
Overview
YAML serializer using internal libyaml
(via Psych).
Instance Method Summary collapse
-
#deserialize(data) ⇒ Object
Deserializes data.
-
#serialize(data) ⇒ Object
Serializes data.
Instance Method Details
#deserialize(data) ⇒ Object
Deserializes data.
44 45 46 |
# File 'lib/json-rpc-objects/serializer/psych.rb', line 44 def deserialize(data) ::Psych.load(data) end |
#serialize(data) ⇒ Object
Serializes data.
33 34 35 |
# File 'lib/json-rpc-objects/serializer/psych.rb', line 33 def serialize(data) ::Psych.dump(data) end |