From: Andre Nathan Date: 2003-12-26T20:45:38+09:00 Subject: Re: Property files On Fri, 2003-12-26 at 09:06, Robert Klemme wrote: > def method_missing(sym,*args) > s = sym.to_s.freeze Is there a need to freeze s here? If I don't freeze it, I can do this: > if s[-1] == ?= > # setter s.sub!(/=$/, '') > @values[s] = args.size == 1 ? args[0] : args > else This, way, if the property file looks like foo.name = 'Foo' I can access the value with conf = Config.load "conf.rc" puts conf.values['foo'].values['id'] as opposed to puts conf.values['foo'].values['id='] Regards, Andre