= Configr * Overview * Installation * Usage * Usage (within frameworks) * Contributors == Overview Configr aims to provide a more Ruby-like interface to configuring and reading a set of configuration values. The idea evolved from using a standard hash as a configuration store into a more elegant way to declare and read values from within a hash. == Installation The project is hosted on rubygems.org. Getting it is simple: gem install == Usage There are a variety of ways in which you can use Configr: * Standalone block * From inline YAML * From a YAML file * A mixture of YAML and block configuration The following examples can also be found and run in examples/all.rb. === Standalone Block configuration = Configr::Configuration.configure do |config| config.example_one = "One" config.example_two = "Two" end puts configuration.example_one puts configuration.example_two Conceptually you could continue to nest configuration blocks as far as you wish. They exist to enable you to seperate your configuration values into contexts. Take for example a set of email configuration values: Configr::Configuration.configure do |config| config.email.from_address = "hello@example.com" config.email.from_name = "My Company" config.email.reply_address = "reply@example.com" end === From an inline YAML string yaml = <. See LICENSE for details.