summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-09 14:52:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-09 14:52:02 +0000
commit4631523baf082ed6d1224e5e39fc90979c02be8d (patch)
treeaf927e3ce8ae164ec828d4c2a4e94ec8f07f69ba /vm_method.c
parent2ea82d336d5aadf0ec679300a1b6585bd69a48fe (diff)
* vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS.
based on the patch from Nikolai Lugovoi. [ruby-core:25949] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index a31fb8b5ac..bed8e61bd6 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -512,7 +512,7 @@ rb_method_boundp(VALUE klass, ID id, int ex)
rb_method_entry_t *me = rb_method_entry(klass, id);
if (me != 0) {
- if (ex && (me->flag & NOEX_PRIVATE)) {
+ if ((ex & ~NOEX_RESPONDS) && (me->flag & NOEX_PRIVATE)) {
return FALSE;
}
if (!me->def) return 0;