Hi,
In message "[ruby-talk:14833] autoload giving me fits"
on 01/05/08, Colin Steele <colin / webg2.com> writes:
|test.rb:
| autoload("Testy", "/home/colin/ruby/code/testy.rb")
| autoload("Grumpy", "/home/colin/ruby/code/grumpy.rb")
| x = Testy
| x = Testy::Grumpy
|
|$ruby test.rb
|test.rb:4: uninitialized constant Grumpy (NameError)
|
|Why?
because "autoload" search currently happens only for toplevel constant.
matz.