1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* variable.c (rb_const_get_0): should not look for superclasses if

the second optional argument is given for #const_get().
  fix [Bug #3422] [Bug #3423]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2011-06-29 05:20:37 +00:00
parent 3cd9a01e6f
commit e6540a035e
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Wed Jun 29 13:55:36 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
* variable.c (rb_const_get_0): should not look for superclasses if
the second optional argument is given for #const_get().
fix [Bug #3422] [Bug #3423]
Wed Jun 29 12:07:27 2011 Eric Hodel <drbrain@segment7.net>
* math.c: Attach documentation for Math.

View file

@ -1613,7 +1613,7 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse, int visibility)
}
return value;
}
if (!recurse && klass != rb_cObject) break;
if (!recurse) break;
tmp = RCLASS_SUPER(tmp);
}
if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {