>>>>> "R" == Robert Feldt <feldt / ce.chalmers.se> 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

class A
   def a
   end
end
pigeon% 

pigeon% b.rb
A  a
pigeon% 

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


Guy Decoux