* 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:
parent
3cd9a01e6f
commit
e6540a035e
@ -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>
|
Wed Jun 29 12:07:27 2011 Eric Hodel <drbrain@segment7.net>
|
||||||
|
|
||||||
* math.c: Attach documentation for Math.
|
* math.c: Attach documentation for Math.
|
||||||
|
@ -1613,7 +1613,7 @@ rb_const_get_0(VALUE klass, ID id, int exclude, int recurse, int visibility)
|
|||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
if (!recurse && klass != rb_cObject) break;
|
if (!recurse) break;
|
||||||
tmp = RCLASS_SUPER(tmp);
|
tmp = RCLASS_SUPER(tmp);
|
||||||
}
|
}
|
||||||
if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {
|
if (!exclude && !mod_retry && BUILTIN_TYPE(klass) == T_MODULE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user