Gustav Munkby
2/20/2006 1:42:00 PM
here is my solution,
i wrote it before people asked specific questions about the semantics
of some operations, which means the semantics doesn't exactly map to
the ones later specified by ara. [somehow shows some of the
disadvantages with test-driven development =)]. none of the things
mentioned should be particularly hard to change though.
anyway, it's not terribly long, not terribly short, and i haven't
tested the performance, but i've tried to layer my solution on top of
attr_accessor, instead of defining completely new methods, and by my
quick look through the other responses, not so many other decided to
it that way.
!g