From: Scott D_o Date: 2006-10-18T08:59:52+09:00 Subject: Re: using classes problem James Mccarthy wrote: > Scott, > > A couple of things, probably not the cause, but you seem to have some > of the naming conventions mixed... > > assuming that both files are in the same directory, it is good practice > to not use cases in your file names, so I would code them; > > ----------------------------------------------------------------- > testclass.rb > ----------------------------------------------------------------- > class TestClass > def testMethod() > return "Hello I am in TestClass" > end > end > > ----------------------------------------------------------------- > classtester.rb > ----------------------------------------------------------------- > require 'testclass' > > ob = TestClass.new() > puts("Testing: #{ob.testMethod()}") > ----------------------------------------------------------------- > > The require is the filename without the .rb extension. No I used require 'testclass', and I tried running it in freeIDE, and for some reason it actually ran, so I don't know what the deal is when I try to run it from console, it just gives me that rubygem custom require error. -- Posted via http://www.ruby-forum.com/.