5 ms·
Dunno about Ruby, but in Perl and Common Lisp you just rebless the instance into a subclass that you do control. http://www.lispworks.com/documentation/HyperSp
by jrockway 17y ago
Dunno about Ruby, but in Perl and Common Lisp you just rebless the instance into a subclass that you do control.
http://www.lispworks.com/documentation/HyperSpec/Body/f_chg_cl.htm http://www.lispworks.com/documentation/HyperSpec/Body/f_chg_...
http://transfixedbutnotdead.com/2009/07/07/moose-singleton-method-now-without-roles/ http://transfixedbutnotdead.com/2009/07/07/moose-singleton-m...