Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def readYAML(config_file)
- config = YAML.load(File.read(config_file))
- config.each { |a,i| key = a, value = i
- location = config[a]['name']
- type = config[a]['storage'][*]
- puts type
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement