From: Timothy Hunter Date: 2007-02-06T08:52:18+09:00 Subject: Re: require statement clarification Neville Franks wrote: > For require "filename" if the filename doesn't include an extension is > .rb assumed. I've been unable to find any documentation on this. > > Also the Ruby distribution telnet.rb source file includes: > require "socket" > > however I'm unable to find any socket.rb file anywhere, only a socket.c > So what does this file refer to? > > --- > Neville Franks, http://www.getsoft.com http://www.surfulater.com > > If no extension is specified .rb is the default. If Ruby can't find filename.rb it will try to load filename.so. You can specify either .rb or .so explicitly.