# Help me solve the problem in linux

**URL:** <https://www.ruby-forum.com/t/help-me-solve-the-problem-in-linux/180093>\
**Category:** Ruby\
**Created:** [December 11, 2009, 10:15am UTC](https://www.ruby-forum.com/t/help-me-solve-the-problem-in-linux/180093 "2009-12-11T10:15:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgovinda](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c68b51/32.png) [@kgovinda](https://www.ruby-forum.com/u/kgovinda)\
**Post date:** [December 11, 2009, 10:15am UTC](https://www.ruby-forum.com/t/help-me-solve-the-problem-in-linux/180093/1 "2009-12-11T10:15:20Z")

</div>

below are the command and the error show when compile…

class MyLogger  
private\_class\_method :new  
@@logger = nil  
def MyLogger.create  
@@logger = new unless @@logger  
@@logger  
end  
end

the error shows as follow:

1.rb:9: warning: Object#id will be deprecated; use Object#object\_id

thanx for your help  
and i would like to know about singletons.
