From: "Carlo E. Prelz" Date: 2013-06-03T14:32:49+09:00 Subject: Re: 'require' is not loading files Subject: 'require' is not loading files Date: lun 03 giu 13 01:25:10 +0900 Sorry for the delay! Quoting Elliot M. (lists@ruby-forum.com): > I am new to ruby and have been teaching it to myself for the past so I > am still very new to Ruby. I have been trying to load external > source-code files into my program but for some reason every time I try > use require to load a file it does not work and I get this message > > LoadError: cannot load such file -- b Recent Ruby does not include the current directory when looking for scripts to load. Either use require './b' or, maybe more expressive, use require_relative 'b' You can also opt to include '.' in the RUBYLIB global variable. Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)