summaryrefslogtreecommitdiffstats
path: root/class.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 15:05:27 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-09-02 15:05:27 +0000
commitf215c42dcb65822d6f5033fa8e406bf65d9eaa00 (patch)
tree2d0619ed60d5749e05e9479c5aa1cab82959266e /class.c
parent05e2cba4dc2d2ddd48bbe849acaaa511e181a1a6 (diff)
downloadruby-f215c42dcb65822d6f5033fa8e406bf65d9eaa00.tar.gz
ruby-f215c42dcb65822d6f5033fa8e406bf65d9eaa00.tar.xz
ruby-f215c42dcb65822d6f5033fa8e406bf65d9eaa00.zip
* object.c (Init_Object): move symbol related code to string.c
* string.c (Init_String): Symbol as subclass of String. * parse.y (rb_intern2): handle symbol as strings. * string.c (str_new): substring of symbols are mere strings, not symbols. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'class.c')
-rw-r--r--class.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/class.c b/class.c
index c7aa72344..81956e5fe 100644
--- a/class.c
+++ b/class.c
@@ -489,7 +489,7 @@ ins_methods_push(ID name, long type, VALUE ary, long visi)
break;
}
if (visi) {
- rb_ary_push(ary, rb_str_new2(rb_id2name(name)));
+ rb_ary_push(ary, ID2SYM(name));
}
return ST_CONTINUE;
}