diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 14:02:26 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-02-13 14:02:26 +0000 |
commit | 23473d1f9fc33151f0d5804e0cca824794a0bfe6 (patch) | |
tree | d18f506bf0d26b9a3847b3f9064456773274eb20 /NEWS | |
parent | 261400e7a9b4e8774a058e9a6f53fc885329c5f8 (diff) | |
download | ruby-23473d1f9fc33151f0d5804e0cca824794a0bfe6.tar.gz |
* vm_method.c (rb_method_boundp):
obj.respond_to?(:a_protected_method) should return false because
calling a protected method may cause NoMethodError if called
from outside the class inheritance tree. Kernel#respond_to? is
mostly used to test if it is safe to call a method, so the false
positive should be avoided. [ruby-dev:40461] [ruby-dev:41739]
[ruby-dev:41837]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
0 files changed, 0 insertions, 0 deletions