A
ako...
hello,
is there a way to add properties to instances and access them later
just like if they were defined in the object's class?
a.newproperty = 123
puts a.newproperty
i know how to dynamically add newproperty to the class of instance 'a',
but is there a way to do it per instance? or do i have to maintain an
explicit hash table on my objects and access these attributes through
the table?
thanks for the help
konstantin
is there a way to add properties to instances and access them later
just like if they were defined in the object's class?
a.newproperty = 123
puts a.newproperty
i know how to dynamically add newproperty to the class of instance 'a',
but is there a way to do it per instance? or do i have to maintain an
explicit hash table on my objects and access these attributes through
the table?
thanks for the help
konstantin