On Wed, Apr 7, 2010 at 8:20 PM, Oyvind P.
Posted via http://www.ruby-forum.com/.
I think the book Ruby in Practice has a section on this (I left it at
so I can’t check for you, sorry).
I was looking at Configliere the other day, and it looks pretty cool,
http://github.com/mrflip/configliere It looks like you can use it to
the place of optparse too (at least thats how I interpreted it).
You might also check out http://github.com/binarylogic/settingslogic
is by binarylogic, the author of AuthLogic (a rather popular
gem for Rails). Looking through the tests and source, though, it doesn’t
appear to have a way to save the settings back to the file. It uses
like Intransition suggested. But it’s only about 150 lines, you could
scratch that itch.