mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* expand tabs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5aecf03ec3
commit
28f619e301
1 changed files with 2 additions and 2 deletions
|
@ -433,7 +433,7 @@ rb_path_to_class(VALUE pathname)
|
|||
}
|
||||
c = rb_const_search(c, id, TRUE, FALSE, FALSE);
|
||||
if (c == Qundef) goto undefined_class;
|
||||
if (!rb_namespace_p(c)) {
|
||||
if (!rb_namespace_p(c)) {
|
||||
rb_raise(rb_eTypeError, "%"PRIsVALUE" does not refer to class/module",
|
||||
pathname);
|
||||
}
|
||||
|
@ -3108,7 +3108,7 @@ cvar_front_klass(VALUE klass)
|
|||
{
|
||||
if (FL_TEST(klass, FL_SINGLETON)) {
|
||||
VALUE obj = rb_ivar_get(klass, id__attached__);
|
||||
if (rb_namespace_p(obj)) {
|
||||
if (rb_namespace_p(obj)) {
|
||||
return obj;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue