From: David Alan Black Date: 2001-03-06T07:17:15+09:00 Subject: [ruby-talk:12065] Re: SV: hooking/wrapping all of a classes methods Hello -- On Tue, 6 Mar 2001, Dennis Decker Jensen wrote: > David Alan Black wrote: > > Pitfalls? (I sense there might > > be some in connection with argument handling, though the few tests > > I've done have been OK.) More concise ways? > > A pitfall in the argument handling. How about this? (not tested) [...] > - t.mtwo # ArgumentError > + t.mtwo(12) # Thing#mtwo needs an argument That was actually a test, to see if it would raise the exception. (It did :-) The basic thing I was trying to do, it turns out, is done in Avi's advice.c (see his earlier response). Now to follow the trail and figure out what Aspect Oriented Programming is.... David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav