Skip to content

Instantly share code, notes, and snippets.

@parkerl
Created January 13, 2012 23:14
Show Gist options
  • Select an option

  • Save parkerl/1609284 to your computer and use it in GitHub Desktop.

Select an option

Save parkerl/1609284 to your computer and use it in GitHub Desktop.
Dump objects to YAML in home directory
File.open(File.expand_path("~/objects.yml"),"w") {|f| f.puts(objects.to_a.to_yaml)}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment