Cunfug
A very small, lightweight and efficient configuration DSL for Ruby modules and classes.
Prerequisites
Cunfug has been tested and confirmed as working on Ruby 1.9.2, Ruby 1.8.7, JRuby 1.6.0.rc1 and Rubinius 1.2.1.dev.
Installation
If you're using Bundler, you should add Cunfug to your Gemfile
:
gem "cunfug"
Usage
module MyApplication
include Cunfug::Configuration
end
MyApplication.configure do |config|
config.test_value = :test
config.foo = [ :a, :b ]
end
MyApplication.test_value # => :test
Contributing
Running the tests is possible via rake spec
or just rake
.
You're invited to send a pull request :)