[macruby-changes] [4578] MacRuby/trunk/lib/benchmark.rb

source_changes at macosforge.org source_changes at macosforge.org
Mon Oct 4 21:44:46 PDT 2010


Revision: 4578
          http://trac.macosforge.org/projects/ruby/changeset/4578
Author:   watson1978 at gmail.com
Date:     2010-10-04 21:44:45 -0700 (Mon, 04 Oct 2010)
Log Message:
-----------
Fixed the NameError with Benchmark::Tms#add!.

Modified Paths:
--------------
    MacRuby/trunk/lib/benchmark.rb

Modified: MacRuby/trunk/lib/benchmark.rb
===================================================================
--- MacRuby/trunk/lib/benchmark.rb	2010-10-05 01:04:41 UTC (rev 4577)
+++ MacRuby/trunk/lib/benchmark.rb	2010-10-05 04:44:45 UTC (rev 4578)
@@ -439,7 +439,7 @@
     # 
     # An in-place version of #add.
     # 
-    def add!
+    def add!(&blk)
       t = Benchmark::measure(&blk) 
       @utime  = utime + t.utime
       @stime  = stime + t.stime
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20101004/3748fb56/attachment.html>


More information about the macruby-changes mailing list