--- MacRuby/branches/experimental/string.c 2009-03-26 03:18:03 UTC (rev 1157)
+++ MacRuby/branches/experimental/string.c 2009-03-26 03:21:33 UTC (rev 1158)
@@ -4926,7 +4926,9 @@
static VALUE
sym_inspect(VALUE sym, SEL sel)
{
- assert(RSTRING_LEN(sym) > 0);
+ if (RSTRING_LEN(sym) == 0) {
+ return rb_str_new2(":\"\"");
+ }
CFCharacterSetRef letters =
CFCharacterSetGetPredefined(kCFCharacterSetLetter);