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.
> enjoy,
> 
> -jeremy
> 
> --
> ========================================================================
> Jeremy Hinegardner                              jeremy / hinegardner.org 
>