Re: Problem with classes
Brian Candler <[email protected]> Wed, 10 Aug 2005 09:09:55 +0100
| Newsgroups | gmane.comp.apache.mod-ruby |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Aug 09, 2005 at 09:57:25PM +0200, Andi Scharfstein wrote: > > In that case, your definition of class Entry is actually XYZ123456::Entry. > > Try changing the definition to > > class ::Entry > > and see if that makes a difference. > > I'm sorry to report that although this sounded really sensible, it > didn't fix the problem. I'll keep playing around with scopes a little > bit until someone suggests something else, though... feels like the > right place to look. Anyway, thanks for your response! Hmm. Perhaps also wherever you create an instance of Entry you have to use ::Entry. How about trying to make the smallest possible program which demonstrates the problem?