Revision
3758
Author
lsansonetti@apple.com
Date
2010-03-12 20:31:34 -0800 (Fri, 12 Mar 2010)

Log Message

fixed #is_a? for NSString subclasses

Modified Paths

Diff

Modified: MacRuby/trunk/object.c (3757 => 3758)


--- MacRuby/trunk/object.c	2010-03-13 04:31:10 UTC (rev 3757)
+++ MacRuby/trunk/object.c	2010-03-13 04:31:34 UTC (rev 3758)
@@ -586,6 +586,9 @@
     }
 
     const long v = RCLASS_VERSION(cl);
+    if (c == rb_cRubyString && (v & RCLASS_IS_STRING_SUBCLASS)) {
+	return Qtrue;
+    }
     if (c == rb_cRubyArray && (v & RCLASS_IS_ARRAY_SUBCLASS)) {
 	return Qtrue;
     }