Class: Sunstore::Handler::YAML
- Inherits:
-
Object
- Object
- Sunstore::Handler::YAML
- Defined in:
- lib/sunstore/handlers/yaml.rb
Instance Method Summary collapse
Instance Method Details
#deserialize(txt) ⇒ Object
8 9 10 |
# File 'lib/sunstore/handlers/yaml.rb', line 8 def deserialize(txt) Psych.load(txt) end |
#serialize(h) ⇒ Object
4 5 6 |
# File 'lib/sunstore/handlers/yaml.rb', line 4 def serialize(h) h.to_yaml end |
#type ⇒ Object
12 13 14 |
# File 'lib/sunstore/handlers/yaml.rb', line 12 def type "yaml" end |