[Nitro] Change settings programmatically

gabriele renzi surrender_it at yahoo.it
Sun Aug 6 15:56:05 EDT 2006


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.


-- 
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