Configuration for libraries/plugins

Is there any way to piggy-back off the Rails::Configuration stuff to
set config variables for your own libraries and plugins in
environment.rb? If it’s possible, is it a good idea? If it’s not
possible, are there any other good examples of really neat ways to do
this?

There should really be a standard approach for doing this, given that
the last thing you want to do when looking at new code is struggle to
work out where the config lives. Currently I’m using my own little
library for this, but it’s not very nice, and certainly not very
standard.

The big requirement is that a library or plugin should be able to
define a default value for a config variable, which can then be
easily overridden in environment.rb.

Cheers,

Pete.