Last active
August 29, 2015 14:06
-
-
Save theoretick/eb9197e8e47f14bb5250 to your computer and use it in GitHub Desktop.
Howto dump ruby to yaml file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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