[Nitro] Change settings programmatically

George Moschovitis george.moschovitis at gmail.com
Sun Aug 6 16:19:57 EDT 2006

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

how about:

klass = MyClass
name = :mysetting
value = 25
Configuration[klass][name].value = value



More information about the Nitro-general mailing list