Hi, (12/02/12 4:26), Daniel Cadenas wrote: > So, is there a way in which I can get the class where the > RUBY_EVENT_CALL is ran instead of the class/module where it's defined? The receiver will be passed to the hook function as the 3rd argument, So you can use rb_obj_class(). Such dirty hack like real_class() is never needed. Also, use rb_class_real() if you want to get real class from ICLASS/singleton class. -- Nobu Nakada