------art_105191_16366623.1161052691963
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Ok so here is some code that is having the problem with the require. I
tested out some programs from rubyforge, and it gave me the same error.
------------------------------
>
> -----------------------------------
> TestClass two seperate files
> -----------------------------------------------------------------
> class TestClass
>         def testMethod()
>                 return "Hello I am in TestClass"
>         end
> end
>
> -----------------------------------------------------------------
> ClassTester
> -----------------------------------------------------------------
> require 'TestClass'
>
> ob  estClass.new()
> puts("Testing: #{ob.testMethod()}")
> -----------------------------------------------------------------
>

It works for me. Both the program files are in the same folder.

Here's a slightly modified code (normally the () is not there after the
method name. We use lowercase characters for method names and _ character to
separate out the multi-words in a method name. I am also using single-quotes
for plain strings (the first case in your program).

# testclass.rb
class TestClass
  def test_method
    'Hello I am in TestClass'
  end
end

# classtester.rb
require 'testclass'
ob  estClass.new
puts("Testing: #{ob.test_method()}")

The output -
>ruby classtester.rb
Testing: Hello I am in TestClass
>Exit code: 0

Hope this helps.

-- 
Satish Talim
Learning Ruby - http://sitekreator.com/satishtalim/index.html

------art_105191_16366623.1161052691963--