From: Jamey Cribbs Date: 2005-08-31T05:28:46+09:00 Subject: Re: Question about Inheritance Michael Jessop wrote: > I have two simple classes. One inherits from the other and calls > "super()" in its initialize method. But the super does not seem to do > what I expect it to do. I expect the super() to initialize two > variables, but when I call the method to display the initialized > errors, I do not get the value (it things @errmsg is nil). Here they > are: > > class DBBase > def initalize > @failed = false > @errmsg = 'n/a' > end The initialize method in class DBBase is spelled incorrectly. Jamey Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.