mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* 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
This commit is contained in:
parent
2ea82d336d
commit
4631523baf
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue