I am trying to understand my Ruby Load Path settings. I am on Fedora Core 5 Linux machine. I load irb and print the load path as follows: irb(main):001:0> puts $: /usr/lib/ruby/site_ruby/1.8 /usr/lib/ruby/site_ruby/1.8/i386-linux /usr/lib/ruby/site_ruby /usr/lib/site_ruby/1.8 /usr/lib/site_ruby/1.8/i386-linux /usr/lib/site_ruby /usr/lib/ruby/1.8 /usr/lib/ruby/1.8/i386-linux . => nil It was awhile ago, but I believe I rpm installed ruby on my machine. At that time, I had no idea what load path was all about. Now that I am learning about it, I am puzzled to what I see when I print the load path stored in global variable "$:" Why are "site_ruby" entries duplicated? That is, if we factor out /usr/lib folders, I have site_ruby by itself and also under ruby? Does that make sense? Everything seems to be working fine in my hacking trips, but I will be the first one to admit it is more by luck than deliberate design. Thanks in advance. Bharat
on 2007-02-25 04:41
on 2007-02-26 14:44
Looks like no one found this one of interest! :( If someone will be kind enough to point me where to look up the Load Path information, I will do it myself. Thanks again. Bharat
on 2007-02-26 17:45
On Feb 26, 8:44 am, Bharat Ruparel <brupa...@mercury.com> wrote: > Looks like no one found this one of interest! :( > If someone will be kind enough to point me where to look up the Load > Path information, I will do it myself. > Thanks again. > Bharat > > -- > Posted viahttp://www.ruby-forum.com/. Look in the Programming Ruby book.