mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
object.c: two literals
* object.c (rb_mod_to_s): concatenate two literals. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a16c576fac
commit
e4ebf6d946
1 changed files with 1 additions and 2 deletions
3
object.c
3
object.c
|
@ -1349,10 +1349,9 @@ rb_mod_to_s(VALUE klass)
|
|||
VALUE refined_class, defined_at;
|
||||
|
||||
if (FL_TEST(klass, FL_SINGLETON)) {
|
||||
VALUE s = rb_usascii_str_new2("#<");
|
||||
VALUE s = rb_usascii_str_new2("#<Class:");
|
||||
VALUE v = rb_iv_get(klass, "__attached__");
|
||||
|
||||
rb_str_cat2(s, "Class:");
|
||||
switch (TYPE(v)) {
|
||||
case T_CLASS: case T_MODULE:
|
||||
rb_str_append(s, rb_inspect(v));
|
||||
|
|
Loading…
Reference in a new issue