Rubygems is actually the same as -r ubygems It doesn't mess with your search path, as far as I understand, but I think it doesn't add anything to your -r search path either. I was able to do something like this: ruby -rubygems -r /usr/lib/ruby/gems/myhelpfulclass-0.0.1/lib/MyHelpfulClass -e "puts MyHelpfulClass MyHelpfulClass. Rb exists in the lib directory specified above That kind of sucks, but it at least demonstrates that you can have multiple -r equire directives As a slightly less ugly workaround, you can add additional items to the ruby library search path (colon delimited in *nix, semicolon delimited in windows) export RUBYLIB=/usr/lib/ruby/gems/1.8/gems/myhelpfulclass-0.0.1/lib ruby -rubygems -r MyHelpfulClass -e "puts MyHelpfulClass If you don't want to mess with the environment variable, you can add something to the load path yourself: ruby -I /usr/lib/ruby/gems/1.8/gems/myhelpfulclass-0.0.1/lib \ -rubygems -r MyHelpfulClass -e "puts MyHelpfulClass.
Rubygems is actually the same as -r ubygems. It doesn't mess with your search path, as far as I understand, but I think it doesn't add anything to your -r search path either. I was able to do something like this: ruby -rubygems -r /usr/lib/ruby/gems/myhelpfulclass-0.0.1/lib/MyHelpfulClass -e "puts MyHelpfulClass" MyHelpfulClass.
Rb exists in the lib directory specified above. That kind of sucks, but it at least demonstrates that you can have multiple -r equire directives. As a slightly less ugly workaround, you can add additional items to the ruby library search path (colon delimited in *nix, semicolon delimited in windows).
Export RUBYLIB=/usr/lib/ruby/gems/1.8/gems/myhelpfulclass-0.0.1/lib ruby -rubygems -r MyHelpfulClass -e "puts MyHelpfulClass" If you don't want to mess with the environment variable, you can add something to the load path yourself: ruby -I /usr/lib/ruby/gems/1.8/gems/myhelpfulclass-0.0.1/lib \ -rubygems -r MyHelpfulClass -e "puts MyHelpfulClass.
You're right (observe 'ubygems. Rb' in ruby/site_ruby/1.8), but then why does it fail with the 2 requires? Does it change the load path or something?
– Orion Edwards Sep 23 '08 at 21:44.
Rubygems is actually the same as -r ubygems. It doesn't mess with your search path, as far as I understand, but I think it doesn't add anything to your -r search path either. Rb exists in the lib directory specified above.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.