[macruby-changes] [2571] MacRuby/trunk/test_vm/module.rb

source_changes at macosforge.org source_changes at macosforge.org
Fri Sep 18 20:48:57 PDT 2009


Revision: 2571
          http://trac.macosforge.org/projects/ruby/changeset/2571
Author:   mattaimonetti at gmail.com
Date:     2009-09-18 20:48:57 -0700 (Fri, 18 Sep 2009)
Log Message:
-----------
added a test for define_method in a module

Modified Paths:
--------------
    MacRuby/trunk/test_vm/module.rb

Modified: MacRuby/trunk/test_vm/module.rb
===================================================================
--- MacRuby/trunk/test_vm/module.rb	2009-09-19 02:22:25 UTC (rev 2570)
+++ MacRuby/trunk/test_vm/module.rb	2009-09-19 03:48:57 UTC (rev 2571)
@@ -23,3 +23,12 @@
   A.extend(C)
   p A.greetings
 }
+
+assert '42', %{
+  module Foo
+    define_method('bar') do
+      42
+    end
+  end
+  Foo.new.bar
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090918/6c423bd5/attachment.html>


More information about the macruby-changes mailing list