railsjedi/rails_config — pull request #33 by albertosaurus (2012-05-02 02:40:11+00:00)
Title: A modest proposal to enhance RailsConfig::Options

This implements the ability to use [] operators to access properties. This lets you readily access a setting without necessarily knowing which setting you'll need ahead of time. For example:

config.section['size]
config.section[:size]
config[:section][:size]
config.section.size

all return the same value. You can achieve a similar result by using a hash type, but I think this is a more flexible, intuitive approach.