You have to include first.rb in second.rb. Put this at
the beggining of second.rb (if both files are in the same
directory):
require 'first'
Zeljko
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of boni uday
Sent: Thursday, July 21, 2005 1:04 PM
To: ruby form
Subject: [Wtr-general] Need Help
I've the following classes:
class XMLLogger < CoreLogger
def start_log
end
end
This class is present in first.rb
i've written another calss in second.rb, whose defination is as follows :
class CreateLogger < XMLLogger
# here i'm trying to accessing start_log def.
# but i'm unable to do this...
end
pls help me
thank u
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos.
http://in.photos.yahoo.com
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
