Hi,
I am using irb and when ever i open IRB session I have to update my
$LOADPATH with my ruby program directory. $LOADPATH << “c:/rb” .How can
I avoid this.becauze I find some paths already set.So I was checking the
environment variables in windows.I didn’t find any loadpath…
Any suggestion
THnks
Chinna
Chinna K. wrote:
Hi,
I am using irb and when ever i open IRB session I have to update my
$LOADPATH with my ruby program directory. $LOADPATH << “c:/rb” .How can
I avoid this.becauze I find some paths already set.So I was checking the
environment variables in windows.I didn’t find any loadpath…
Any suggestion
THnks
Chinna
The env var is RUBYLIB, the global is $LOAD_PATH or $:.
This is on linux but should illustrate the relationship:
$ RUBYLIB=“foo” ruby -e ‘p $LOAD_PATH’
[“foo”, “/usr/local/lib/ruby/site_ruby/1.8”,
“/usr/local/lib/ruby/site_ruby/1.8/i686-linux”,
“/usr/local/lib/ruby/site_ruby”, “/usr/local/lib/ruby/1.8”,
“/usr/local/lib/ruby/1.8/i686-linux”, “.”]
Works .Saved some time for me! Thank you
THnks
Joel VanderWerf wrote:
Chinna K. wrote:
Hi,
I am using irb and when ever i open IRB session I have to update my
$LOADPATH with my ruby program directory. $LOADPATH << “c:/rb” .How can
I avoid this.becauze I find some paths already set.So I was checking the
environment variables in windows.I didn’t find any loadpath…
Any suggestion
THnks
ChinnaThe env var is RUBYLIB, the global is $LOAD_PATH or $:.
This is on linux but should illustrate the relationship:
$ RUBYLIB=“foo” ruby -e ‘p $LOAD_PATH’
[“foo”, “/usr/local/lib/ruby/site_ruby/1.8”,
“/usr/local/lib/ruby/site_ruby/1.8/i686-linux”,
“/usr/local/lib/ruby/site_ruby”, “/usr/local/lib/ruby/1.8”,
“/usr/local/lib/ruby/1.8/i686-linux”, “.”]