From: Patrick Spence Date: 2006-05-18T00:13:01+09:00 Subject: Re: Module, class and methods confusion Robert Klemme wrote: > No, it's a method. The error is more likely here: > > module MHIQErrorLogger > > class ErrorLogger > > def PostError(ex,dbh) > > Should be > > def self.PostError(ex,dbh) > > Cheers > > robert Made the change in the method definition, but getting same error: "ErrorLogger is not a class/module" Now I'm confused as to how it should be called... MHIQErrorLogger::ErrorLogger.PostError.new(ex, dbh) or MHIQErrorLogger::ErrorLogger::PostError.new(ex, dbh) -- Posted via http://www.ruby-forum.com/.