Module ConsoleUpdate::Filter::Yaml

  1. lib/console_update/filter/yaml.rb

Methods

public instance

  1. hashes_to_string
  2. string_to_hashes

Public instance methods

hashes_to_string (hashes)
[show source]
# File lib/console_update/filter/yaml.rb, line 10
      def hashes_to_string(hashes)
        hashes.to_yaml
      end
string_to_hashes (string)
[show source]
# File lib/console_update/filter/yaml.rb, line 6
      def string_to_hashes(string)
        YAML::load(string)
      end