From: Daniel Brockman Date: 2005-07-13T02:21:26+09:00 Subject: Re: adding attributes (attr_*-style) to single objects Joel VanderWerf writes: > Maybe something like > > my_attr_accessor :x > > to add an accessor to the current self, rather than to instances of > the current self. I'd prefer `singleton_attr_accessor'. I always define my own accessor-defining methods because I think the non-word `attr' is just too damn ugly. Among others, I have these: define-reader define-writer define-accessors So I'd add `define-singleton-accessors'. By the way, I also do this: define-aliases :new-1 => :old-1, :new-2 => :old-2 The arrow helps me remember which parameter is which. -- Daniel Brockman