Advertisement
Guest User

Untitled

a guest
Feb 12th, 2018
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.21 KB | None | 0 0
  1. def readYAML(config_file)
  2.   config = YAML.load(File.read(config_file))
  3.   config.each { |a,i| key = a, value = i
  4.     location = config[a]['name']
  5.     type = config[a]['storage'][*]
  6.     puts type
  7.   }
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement