Sha256: 5d66d58cb070013c43b5d5c1f9545713d9e67a1164b20ebc443781bda980a2ff

Contents?: true

Size: 237 Bytes

Versions: 6

Compression:

Stored size: 237 Bytes

Contents

require 'yaml'

module ConsoleUpdate
  class Filter    
    module Yaml
      def string_to_hashes(string)
        YAML::load(string)
      end
    
      def hashes_to_string(hashes)
        hashes.to_yaml
      end
    end
  end
end
  

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
cldwalker-console_update-0.1.1 lib/console_update/filter/yaml.rb
console_update-0.1.6 lib/console_update/filter/yaml.rb
console_update-0.1.5 lib/console_update/filter/yaml.rb
console_update-0.1.4 lib/console_update/filter/yaml.rb
console_update-0.1.3 lib/console_update/filter/yaml.rb
console_update-0.1.2 lib/console_update/filter/yaml.rb