Simple question re: require

Ok, I have a class that compiles called OutlookContact. In another class,
called DBConn, I want to create an instance of that class.

So in DBConn, I have:

require 'win32ole’
require ‘OutlookContact’
#… and then I start my code.

When I try to compile DBConn – I get the following:

D:/Apps/Ruby/projects/DbConn.rb:2:in `require’: ./OutlookContact.rb:19:
parse error (SyntaxError)
from D:/Apps/Ruby/projects/DbConn.rb:2

For clarification, line 2 is the require statement for OutlookContact above.

Any help sorting this out would be appreciated. I did read the section
called “Including Other Files” in
http://www.rubycentral.com/book/tut_modules.html … but I’m probably
thinking too much like java.

-Dwayne

Hi,

···

In message “simple question re: require” on 03/01/31, “Dwayne Smurdon @ DNA Media Pro” smurdon@dnamediapro.com writes:

So in DBConn, I have:

require ‘win32ole’
require ‘OutlookContact’
#… and then I start my code.

When I try to compile DBConn – I get the following:

D:/Apps/Ruby/projects/DbConn.rb:2:in `require’: ./OutlookContact.rb:19: parse error (SyntaxError)
from D:/Apps/Ruby/projects/DbConn.rb:2

For clarification, line 2 is the require statement for OutlookContact above.

You have a syntax error in ./OutlookContact.rb line 19.

						matz.