Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created January 23, 2012 20:40
Show Gist options
  • Select an option

  • Save practicingruby/1665430 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/1665430 to your computer and use it in GitHub Desktop.
module ExpenseTracker
Environment = Object.new
class << Environment
def configure
@configuration = yield Configuration.new
end
attr_reader :configuration
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment