From: Love U Ruby Date: 2013-03-13T17:46:26+09:00 Subject: Re: Confusion with some Module methods. Hans Mackowiak wrote in post #1101355: > does not work, because autoload use require, not require_relative, your > `mylibrary.rb` is not in the LOAD_PATH, so the normal require cant find > it, thats why autoload does not work.. > > but as you can see, the accessing of an non-existing constant does > result in an require That means I need to put it any one of the directory as found below: irb(main):003:0> $LOAD_PATH => ["C:/Ruby193/lib/ruby/site_ruby/1.9.1", "C:/Ruby193/lib/ruby/site_ruby/1.9.1/ i386-msvcrt", "C:/Ruby193/lib/ruby/site_ruby", "C:/Ruby193/lib/ruby/vendor_ruby/ 1.9.1", "C:/Ruby193/lib/ruby/vendor_ruby/1.9.1/i386-msvcrt", "C:/Ruby193/lib/rub y/vendor_ruby", "C:/Ruby193/lib/ruby/1.9.1", "C:/Ruby193/lib/ruby/1.9.1/i386-min gw32"] Thanks for your hints. I will give it a try. -- Posted via http://www.ruby-forum.com/.