[macruby-changes] [3758] MacRuby/trunk/object.c
source_changes at macosforge.org
source_changes at macosforge.org
Fri Mar 12 20:31:34 PST 2010
Revision: 3758
http://trac.macosforge.org/projects/ruby/changeset/3758
Author: lsansonetti at apple.com
Date: 2010-03-12 20:31:34 -0800 (Fri, 12 Mar 2010)
Log Message:
-----------
fixed #is_a? for NSString subclasses
Modified Paths:
--------------
MacRuby/trunk/object.c
Modified: MacRuby/trunk/object.c
===================================================================
--- 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;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100312/d1105b69/attachment.html>
More information about the macruby-changes
mailing list