Module: ConsoleUpdate::Filter::Yaml
- Defined in:
- lib/console_update/filter/yaml.rb
Instance Method Summary collapse
Instance Method Details
#hashes_to_string(hashes) ⇒ Object
10 11 12 |
# File 'lib/console_update/filter/yaml.rb', line 10 def hashes_to_string(hashes) hashes.to_yaml end |
#string_to_hashes(string) ⇒ Object
6 7 8 |
# File 'lib/console_update/filter/yaml.rb', line 6 def string_to_hashes(string) YAML::load(string) end |