[Nitro] Change settings programmatically

gabriele renzi surrender_it at yahoo.it
Mon Aug 7 15:27:36 EDT 2006

gabriele renzi ha scritto:
> Hi everyone,
> sorry for the dumb question, but is there a way to change the value of a 
> setting/annotation via reflection, given
>   klass="Klass"
>   name="setting"
>   value="foo"
> I could use eval(klass+"."+name+"="+value) or 
> constant(klass).send(name+"=",value) but I recall that there was some 
> less powerful and cleaner way, any ideas?
> Thanks in advance.

ok, for what is worth, I found the way, doing
s.value= new value
Now, if only I could dump Configuration to yaml :/

blog en: http://www.riffraff.info
blog it: http://riffraff.blogsome.com
jabber : rff.rff at gmail dot com

More information about the Nitro-general mailing list