From: Govinda Khanal Date: 2009-12-11T18:22:04+09:00 Subject: solve this ruby problem below are the command and the error shows by complier: class MyLogger private_class_method :new @@logger = nil def MyLogger.create @@logger = new unless @@logger @@logger end end MyLogger.create.id the error is like this 1.rb:9: warning: Object#id will be deprecated; use Object#object_id thank you for you help and i want to know more about Singletons -- Posted via http://www.ruby-forum.com/.