mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Refactor rb_class_path_cached function (#4485)
This commit is contained in:
parent
1055b37ef5
commit
a2cf0607b0
Notes:
git
2021-06-01 16:35:18 +09:00
Merged-By: k0kubun <takashikkbn@gmail.com>
1 changed files with 1 additions and 2 deletions
|
@ -177,8 +177,7 @@ rb_class_path(VALUE klass)
|
||||||
VALUE
|
VALUE
|
||||||
rb_class_path_cached(VALUE klass)
|
rb_class_path_cached(VALUE klass)
|
||||||
{
|
{
|
||||||
int permanent;
|
return rb_mod_name(klass);
|
||||||
return classname(klass, &permanent);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
|
|
Loading…
Reference in a new issue