Ilmari Heikkinen
12/23/2004 12:05:00 PM
On 22.12.2004, at 18:47, Piergiuliano Bossi wrote:
> Newbee question: where should I put help.rb?
Somewhere in your $LOAD_PATH, one of the site_ruby -ones there would be
the standard place. My fault, sorry about the lack of installer.
If you want to load it automatically in irb, add require 'help' in
irbrc (don't know what it is in windows, sorry :I), and if that seems
to make irb startup take too long, one hack is to change it to
Thread.new{ require 'help' } (just beware that using #help fails when
the lib is still loading)
> I have put it in C:\Apps\ruby18\lib\ruby\1.8 (where C:\Apps\ruby18 is
> ruby home) and it works, but I wonder what other people do, especially
> considering future upgrade.
What I do is keep a code/-dir with all the little tidbits of code, and
have it in my RUBYLIB env variable (again, don't know about windows.)
> Btw, nice job! :-)
Thanks! :-)