Hi --

On Tue, 29 May 2007, Leslie Viljoen wrote:

> Hi people
>
> Where does Ruby get its initial $LOAD_PATH?

I believe it's compiled into the Ruby executable.

> Where is its startup file? ie. what script loads these:
>
>>> $LOADED_FEATURES
> => ["e2mmap.rb", "irb/init.rb", "irb/workspace.rb", "irb/context.rb",
> "irb/extend-command.rb", "irb/output-method.rb", "irb/notifier.rb",
> "irb/slex.rb", "irb/ruby-token.rb", "irb/ruby-lex.rb", "readline.so",

$LOADED_FEATURES gets added to dynamically as you require/load things
at runtime.


David

-- 
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    (See what readers are saying!  http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)