[macruby-changes] [2555] MacRuby/trunk/string.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Sep 17 14:42:24 PDT 2009


Revision: 2555
          http://trac.macosforge.org/projects/ruby/changeset/2555
Author:   lsansonetti at apple.com
Date:     2009-09-17 14:42:21 -0700 (Thu, 17 Sep 2009)
Log Message:
-----------
expose Symbol.all_symbols

Modified Paths:
--------------
    MacRuby/trunk/string.c

Modified: MacRuby/trunk/string.c
===================================================================
--- MacRuby/trunk/string.c	2009-09-17 05:14:05 UTC (rev 2554)
+++ MacRuby/trunk/string.c	2009-09-17 21:42:21 UTC (rev 2555)
@@ -5795,7 +5795,7 @@
 
     rb_undef_alloc_func(rb_cSymbol);
     rb_undef_method(CLASS_OF(rb_cSymbol), "new");
-    rb_define_singleton_method(rb_cSymbol, "all_symbols", rb_sym_all_symbols, 0); /* in parse.y */
+    rb_objc_define_method(*(VALUE *)rb_cSymbol, "all_symbols", rb_sym_all_symbols, 0); /* in parse.y */
 
     rb_objc_define_method(rb_cSymbol, "==", sym_equal, 1);
     rb_objc_define_method(rb_cSymbol, "eql?", sym_equal, 1);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090917/9c50ead8/attachment.html>


More information about the macruby-changes mailing list