Skip to content

Instantly share code, notes, and snippets.

@tdantas
Created August 31, 2013 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdantas/6398083 to your computer and use it in GitHub Desktop.
Save tdantas/6398083 to your computer and use it in GitHub Desktop.
YAML References
#!/usr/bin/env ruby
%w(yaml ap).each { |dep| require dep }
obj = YAML::load(DATA)
ap obj['test']['host']
__END__
development: &dev
host: localhost
user: username
password: password
adapter: postgres
test: *dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment