* Philip Mak (pmak / animeglobe.com) wrote: > Cfg = OpenStruct.new > with Cfg do > host = 'localhost' > user = 'shoujoai' > database = 'shoujoai' > end What about: Cfg.set( :host => 'localhost', :user => 'shoujoai', :database => 'shoujoai' ) set() just needs to accept a hash and iterate over it, calling send(key + '=', value) over each pair -- Thomas 'Freaky' Hurst - freaky / aagh.net - http://www.aagh.net/ - A government that is big enough to give you all you want is big enough to take it all away. -- Barry Goldwater