From: OZAWA Sakuro Date: 2011-10-07T16:20:40+09:00 Subject: Re: don't understand -r 2011/10/7 Intransition : >    $ ruby -ransi -e'"x".ansi(:red)' >    $ 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) -- OZAWA Sakuro "I think we can agree, the past is over." - George W. Bush