Skip to content

Instantly share code, notes, and snippets.

@theoretick
Last active August 29, 2015 14:06
Show Gist options
  • Save theoretick/eb9197e8e47f14bb5250 to your computer and use it in GitHub Desktop.
Save theoretick/eb9197e8e47f14bb5250 to your computer and use it in GitHub Desktop.
Howto dump ruby to yaml file
[6] website » data = ['foo','bar']
[7] website » require 'yaml'
=> false
[8] website » File.open('foobar_dump.yml','w') do |f|
» YAML.dump(data, f)
» end
=> nil
[9] website »
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment