From: Jan Svitok Date: 2006-09-29T06:36:44+09:00 Subject: Re: Ruby apps useing multiple files On 9/28/06, Nigel Wilkinson wrote: > Hi folks > > I'm writing an app in ruby and want to split it into more than one file > to make it more manageable. How do I get the main file to include the > others. Do I use some sort of include, require or load command or is > there some sort of library command like TCL has. > > Cheers > Nigel require 'filename' is the proper one. you can use load 'filename' if you want to reload the file each time load is called (require loads the file only once) $: is load path, where require/load look for files (NB: it's an Array) J.