From: Karl Voit Date: 2006-10-06T21:05:08+09:00 Subject: Re: Using configuration files (replacing shellscripts) * Jim Crossley wrote: > Hi... Hi! > If I understand what you're asking for, you may want to have a look at > YAML. Your config file can look like this: > > #### > adapter: mysql > database: demodb > username: karl > password: pa$$w0rd > socket: /var/lib/mysql/mysql.sock > #### > > Turning that file into a ruby hash is a one-liner... Thanks for the hint. Is is possible to reduce the redundancy of ,---- | basedir: /this/directory | logdir: /this/directory/log `---- to something like that? ,---- | basedir: /this/directory | logdir: $basedir/log `---- I have to use this in the configs quite often. TNX! -- Karl Voit