From: Ayumu Aizawa Date: 2009-12-07T14:45:36+09:00 Subject: Re: A novice's question about load Kernel.load doesn't fill in gap of .rb or .so. Its spec of ruby. Thank you --- Ayumu AIZAWA twitter.com/ayumin 2009/12/7 Donghui Ouyang : > Hello All > > I have two source files in the same directory: a.rb and b.rb > > The content of a.rb is as follow: > > puts "Hello form a.rb" > > and b.rb is > > load 'a' > puts "Hello from b.rb" > load 'a' > puts 'Hello again from b.rb' > > When I run the b.rb, It cause a LoadError: no such file to load > But if I replace 'a' with 'a.rb' in b.rb, the program run successfully. > It really confuse me. > > My ruby version: ruby 1.8.6 > > Thanks in advance for your help! > -- > Posted via http://www.ruby-forum.com/. > >