From: Jeremy Hinegardner Date: 2007-05-24T02:41:43+09:00 Subject: Re: behavior of -rsomegem differs from require 'somegem' On Thu, May 24, 2007 at 02:03:02AM +0900, Logan Capaldo wrote: > On Wed, May 23, 2007 at 04:16:37AM +0900, Jeremy Hinegardner wrote: > > I just encountered something today and I'm not sure if this should be > > the expected behaviour. Most likely I'm doing something odd here. I > > believe this only affects items require'd as gems. > [snip] > > Is this the expected behaviour that -rsomegem behaves differently than > > 'require "somegem"'. Is the handling of -r different than 'require' > > > loading rubygems alters the Kernel#require method. -r doesn't actually > call Kernel#require, it directly invokes the underlying C function(s) > the method calls. Therefore, rubygems is incapable of changing the > behavior of -r. Thanks! -r using the underlying C function(s). That's the clarification I needed. enjoy, -jeremy -- ======================================================================== Jeremy Hinegardner jeremy@hinegardner.org