1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05: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:
matz 2009-10-09 14:52:02 +00:00
parent 2ea82d336d
commit 4631523baf
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Fri Oct 9 23:10:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
* vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS.
based on the patch from Nikolai Lugovoi. [ruby-core:25949]
Fri Oct 9 21:14:40 2009 Tanaka Akira <akr@fsij.org>
* lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP): disable

View file

@ -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;