From: Motohiro KOSAKI Date: 2012-03-03T23:38:25+09:00 Subject: [ruby-core:43065] [ruby-trunk - Bug #6110][Rejected] #respond_to? returns true on 1.9.3 and false on ruby-head Issue #6110 has been updated by Motohiro KOSAKI. Status changed from Open to Rejected Sound intentional change. http://ruby.11.n6.nabble.com/ruby-dev-40461-respond-to-lt-protected-method-name-gt-returns-true-td3535926.html http://stackoverflow.com/questions/2569490/respond-to-and-protected-methods ---------------------------------------- Bug #6110: #respond_to? returns true on 1.9.3 and false on ruby-head https://bugs.ruby-lang.org/issues/6110 Author: Dan Kubb Status: Rejected Priority: Normal Assignee: Category: Target version: ruby -v: ruby 2.0.0dev (2012-03-03 trunk 34887) [x86_64-darwin10.8.0] Under ruby-head, when calling #respond_to? on another object of the same type false is always returned, even though the method can be called. However, this returns true under ruby 1.9.3. Attached is a test that reproduces the problem. -- http://bugs.ruby-lang.org/