Hello, Kernel#autoload uses rb_autoload, which is defined in variable.c[1] https://github.com/ruby/ruby/blob/trunk/variable.c#L1570 Beyond that, I'm not sure of the rationale. On Sat, Sep 15, 2012 at 3:22 AM, Xavier Noria <fxn / hashref.com> wrote: > Hi, > > I am trying to decorate Kernel#require. While the wrapper works well with > regular require calls, I have seen it is not called by Kernel#autoload. Is > autoload using a custom C function? If so, is there a rationale for that? >