From: "Carlo E. Prelz" Date: 2007-12-31T02:41:46+09:00 Subject: Re: newbie question - how to use multiple source files Subject: newbie question - how to use multiple source files Date: lun 31 dic 07 02:36:28 +0900 Quoting Ben Hoffmann (bensshop@skypoint.com): > I'm coming from Java, and am trying to understand how to break upo code > into more than one file. So in this example, I have one class in the first > file, another in the second file, and I want to create an object from the > first class, but from the second file. Environment - Aptana on XP machine. In the second file, before referring to the FirstClassFile class, you must add require 'first_class_file' and first_class_file.rb has to be either in your current directory, or in a directory included in your search path. 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)