Configify
Really simple configuration.
Usage
Basic:
require "configify"
class MyApp
include Configify::Config
end
MyApp.configure do |config|
config.company = "Curve21"
config.website = "http://www.curve21.com"
end
MyApp.config.company
=> "Curve21"
MyApp.config.website
=> "http://www.curve21.com"
You can also set defaults into the sub-class:
class MyApp
include Configify::Config
config.website = "http://www.curve21.com"
end
Bugs
http://c21.lighthouseapp.com/projects/38725-configify/overview
Patches welcome.