From: 7stud -- Date: 2011-05-13T03:53:58+09:00 Subject: Re: where does the pure method defined when starting irb Also: puts RUBY_VERSION #=>1.8.6 puts self #=>main puts self.class #=>Object def hello end puts Object.private_instance_methods.grep(/^h/) #=>hello puts self.public_methods.include?("hello") #=>false #puts self.singleton_class.instance_methods.include?(:hello) -- Posted via http://www.ruby-forum.com/.