Sha256: 2d3482eacb336ef80b3bdad96f579daa28d998cf8a72d08a29136d9d56d63026

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

module ImportEverything
  class YamlParser < Parser
    
    def value_hashes
      require 'yaml'
      parsed = YAML::load(str)
      parsed.map do |root_val,row|
        row.merge("root" => root_val)
      end
    end 
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
import_everything-0.1.6 lib/import_everything/parsers/yaml_parser.rb
import_everything-0.1.5 lib/import_everything/parsers/yaml_parser.rb