Hi,
In message "Re: How to test for existence of instance variable?"
on 03/02/20, Brian Candler <B.Candler / pobox.com> writes:
|I want a general method to add a member to the class dynamically, so if
|there were
| Struct#add_member
|I would happily use it.
Ah, probably you have misunderstood Ruby's Struct. It is a fixed
array with symbolic index. Members should *not* be added dynamically.
Use Objects and attributes instead for dynamic slots.
matz.