summaryrefslogtreecommitdiff
path: root/ext/strscan
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-13 00:57:36 +0000
commit7e9bd8f72c643b7b7ac3ca90293d96fe8a7e7a2d (patch)
tree053dc44f031cf115f0b4ccdbd62b7e227bd6c235 /ext/strscan
parent56e96b9f73f75a46287358a8097a864b4ab35eb5 (diff)
ext: real class name
* ext/dl/cptr.c (rb_dlptr_inspect): use real class name, not singleton class. * ext/fiddle/pointer.c (rb_fiddle_ptr_inspect): ditto. * ext/strscan/strscan.c (strscan_inspect): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/strscan')
-rw-r--r--ext/strscan/strscan.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 1db6898..177cfdd 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -1159,17 +1159,17 @@ strscan_inspect(VALUE self)
p = check_strscan(self);
if (NIL_P(p->str)) {
- a = rb_sprintf("#<%"PRIsVALUE" (uninitialized)>", CLASS_OF(self));
+ a = rb_sprintf("#<%"PRIsVALUE" (uninitialized)>", rb_obj_class(self));
return infect(a, p);
}
if (EOS_P(p)) {
- a = rb_sprintf("#<%"PRIsVALUE" fin>", CLASS_OF(self));
+ a = rb_sprintf("#<%"PRIsVALUE" fin>", rb_obj_class(self));
return infect(a, p);
}
if (p->curr == 0) {
b = inspect2(p);
a = rb_sprintf("#<%"PRIsVALUE" %ld/%ld @ %"PRIsVALUE">",
- CLASS_OF(self),
+ rb_obj_class(self),
p->curr, S_LEN(p),
b);
return infect(a, p);
@@ -1177,7 +1177,7 @@ strscan_inspect(VALUE self)
a = inspect1(p);
b = inspect2(p);
a = rb_sprintf("#<%"PRIsVALUE" %ld/%ld %"PRIsVALUE" @ %"PRIsVALUE">",
- CLASS_OF(self),
+ rb_obj_class(self),
p->curr, S_LEN(p),
a, b);
return infect(a, p);