Class: GitStore::YAMLHandler
- Inherits:
-
Object
- Object
- GitStore::YAMLHandler
- Defined in:
- lib/git_store/handlers.rb
Instance Method Summary collapse
Instance Method Details
#read(data) ⇒ Object
28 29 30 |
# File 'lib/git_store/handlers.rb', line 28 def read(data) YAML.load(data) end |
#write(data) ⇒ Object
32 33 34 |
# File 'lib/git_store/handlers.rb', line 32 def write(data) data.to_yaml end |