Skip to content

Instantly share code, notes, and snippets.

@gnufied
Created February 9, 2012 11:00
Show Gist options
  • Save gnufied/1779296 to your computer and use it in GitHub Desktop.
Save gnufied/1779296 to your computer and use it in GitHub Desktop.
module Foo
class Config
def method_missing(*args,&block)
method_name = args.first
configatron.send(method_name)
end
def app_domain
configatron.app_domain || 'foo.com'
end
end
def self.config
return @@foo_config if defined?(@@foo_config)
@@foo_config = Foo::Config.new()
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment