Venkat Akkineni wrote: > I have created a class with a class method. I am trying to call it > from a different class and I get the "uninitialized constant" error. You need to show the *exact* error message you get, and point out which line of the source this corresponds to. Posting hundreds of lines of irrelevant source is not a good idea. Keep removing lines until you have a 10-line program which still has the problem. > # To change this template, choose Tools | Templates > # and open the template in the editor. > > #require "rubygems" > require "webrick" > require "log4r" > require "monitor" > #require "XELogger" > require "rexml/document" You commented out 'require "XELogger"' above. So if the constant (class) XELogger is defined in that file, and the error message is saying that constant XELogger is unknown, why are you surprised? -- Posted via http://www.ruby-forum.com/.