Ruby Load Path

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

Looks like no one found this one of interest! :frowning:
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 Feb 26, 8:44 am, Bharat R. [email protected] wrote:

Looks like no one found this one of interest! :frowning:
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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs