Skip to content

Instantly share code, notes, and snippets.

@chef
Forked from sigmonsays/gist:179357
Created September 1, 2009 20:33
Show Gist options
  • Save chef/179369 to your computer and use it in GitHub Desktop.
Save chef/179369 to your computer and use it in GitHub Desktop.
test Mash.new unless attribute? :test
test[:frontend] = {} unless test.attribute? :frontend
test[:frontend][:message] = "message from Xenu"
test[:frontend][:per_node] = "default value" unless test[:frontend].attribute? :per_node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment