From: Al Chou Date: 2001-06-18T04:27:07+09:00 Subject: [ruby-talk:16573] Re: Configuration file parsing --- Dave Thomas wrote: > "Anders Johannsen" writes: > > > Is there a preferred way of parsing configuration files in Ruby? I > > suppose yacc/lex is ruled out? > > A cheap way that works in some circumstances is to write the > configuration in Ruby, and then just require the file in: If you can use Windows .ini file format, you may want to look at http://www.Ruby-Lang.org/en/raa-list.rhtml?name=IniFile . There are other entries in the Utility section of the RAA that deal with options and ini, but I haven't looked at them. Al ===== Albert Davidson Chou Get answers to Mac questions at http://www.mac-mgrs.org/ . __________________________________________________ Do You Yahoo!? Spot the hottest trends in music, movies, and more. http://buzz.yahoo.com/