Skip to content

Instantly share code, notes, and snippets.

@JEG2
Created September 15, 2012 17:47
Show Gist options
  • Select an option

  • Save JEG2/3729027 to your computer and use it in GitHub Desktop.

Select an option

Save JEG2/3729027 to your computer and use it in GitHub Desktop.
Simple database usage.
require "yaml/store"
db = YAML::Store.new("db.yml")
email = "james@graysoftinc.com"
db.transaction do
db[email] = [ ]
end
db.transaction do
db[email] << "My Project"
end
db.transaction do
p db[email]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment