From: Robert Feldt Date: 2001-06-18T05:08:25+09:00 Subject: [ruby-talk:16575] Re: Trapping method defs On Sun, 17 Jun 2001, ts wrote: > >>>>> "R" == Robert Feldt writes: > > R> I've managed to do it (by installing Object.method_added and then > R> finding the class by other and bulkier means) but I have to reconstitute > > This is self, i.e. > > pigeon% cat b.rb > #!/usr/bin/ruby > def Object.method_added(id) > puts "#{self} #{id}" > end > Of course, thanks. I worked too long on this to see the obvious. Thanks again! > R> the relevant info from different sources and it doesn't work for methods > R> added in C. > > If I'm right rb_define_method() don't call method_added > Ok, that a shame. /Robert