2011/10/7 Intransition <transfire / gmail.com>:

> =A0 =A0$ ruby -ransi -e'"x".ansi(:red)'
> =A0 =A0$ ruby -rubygems -ransi -e'"x".ansi(:red)'

The -r option uses two C functions, add_modules and require_libraries
in ruby.c.
add_modules adds each argument of -r to internal req_list
then eventually require_libraries loads them all in series.

ubygems.rb redefines Kernel#require method whose implementation is
rb_f_require in eval.c.
It does not affect how -r works.

btw, RUBYOPT is evaluated *after* parsing options (so -T can forbit it)

--=20
OZAWA Sakuro

"I think we can agree, the past is over." - George W. Bush