[Newbies] adding methods to a class at runtime
mark at ociweb.com
Mon Aug 13 14:54:48 UTC 2007
Is it possible to write code that adds methods to a class at runtime.
In particular I'm thinking about something like attr_accessor in Ruby
which adds get and set methods for instance variables so you don't
have to write them.
Thanks to everybody who has answered my questions so far!
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners