Skip to content

Instantly share code, notes, and snippets.

@huobazi
Created August 24, 2011 04:15
Show Gist options
  • Save huobazi/1167296 to your computer and use it in GitHub Desktop.
Save huobazi/1167296 to your computer and use it in GitHub Desktop.
ruby object to yaml
File.open("demo.yml",'w:UTF-8') do|file|
file.puts topic.to_yaml
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment