From: Eric Hodel Date: 2005-10-28T13:56:29+09:00 Subject: Re: Stuck with modules/classes/inheritance On Oct 27, 2005, at 9:51 PM, Kev Jackson wrote: > In lib/b.rb, you need to write: > > >> require "base" >> module A >> class B < Base >> end >> end >> >> otherwise your code in b.rb isn't aware of base.rb, and thus >> doesn't know about A::Base. >> > > require 'base' require 'lib/base' then > causes > > ./lib/b.rb:1:in `require': No such file to load -- base (LoadError) > from ./lib/b.rb:1 > from test.rb:1:in `require' > from test.rb:1 > > which is weird as I have done this before with other files, it's > just this one that it won't find > -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04