Ben Lovell
5/11/2009 9:09:00 AM
[Note: parts of this message were removed to make it a legal post.]
On Mon, May 11, 2009 at 9:42 AM, Thangappan Mohana sundaram <
thangappanmohan@gmail.com> wrote:
>
> I am new to Ruby.
> Is there any way to include the module in normal ruby file?
>
> For an example,
>
> Test.rb
>
> Class Test.rb
> ........
> end
>
> testing.rb
>
> object = Test.new # It tells error.
>
In your testing.rb add a require like so:
require "Test"
at the top of the file.
Ben