From: Hugh Sasse Staff Elec Eng Date: 2003-12-01T23:23:07+09:00 Subject: Re: Need library for parsing configuration files On Sat, 29 Nov 2003, Josef 'Jupp' SCHUGT wrote: > Personally I prefer Ruby files to use other Ruby files as their > configuration files. To give an example of a config file: > > Conf = { > 'stars' => true, > 'host' => 'localhost', [...] > 'filerules' => '/home/jupp/.popclient-filerules.rb', > 'logfile' => '/home/jupp/popclient-log', > } The weakness in this is that people can put arbitrary ruby code in there. Granted, exactly how this should/could be limited is difficult, but I'd think disallowing method calls may be a useful sugestion. http://www.rubygarden.org/ruby?RubyAsAConfigurationLanguage contains my preliminary thoughts about this. Hugh