puts RUBY_VERSION

puts self       #=>main
puts self.class #=>Object

def hello
end

puts Object.private_methods.grep(/^h/) #=>hello

puts self.singleton_class.instance_methods.include?(:hello)
#=>false

-- 
Posted via http://www.ruby-forum.com/.