[macruby-changes] [1894] MacRuby/branches/experimental/lib/hotcocoa/graphics.rb
source_changes at macosforge.org
source_changes at macosforge.org
Fri Jun 19 17:47:41 PDT 2009
Revision: 1894
http://trac.macosforge.org/projects/ruby/changeset/1894
Author: lsansonetti at apple.com
Date: 2009-06-19 17:47:41 -0700 (Fri, 19 Jun 2009)
Log Message:
-----------
Array#choice was renamed into #sample
Modified Paths:
--------------
MacRuby/branches/experimental/lib/hotcocoa/graphics.rb
Modified: MacRuby/branches/experimental/lib/hotcocoa/graphics.rb
===================================================================
--- MacRuby/branches/experimental/lib/hotcocoa/graphics.rb 2009-06-20 00:47:20 UTC (rev 1893)
+++ MacRuby/branches/experimental/lib/hotcocoa/graphics.rb 2009-06-20 00:47:41 UTC (rev 1894)
@@ -98,7 +98,7 @@
rand(object.last - object.first + 1) + object.first
end
when Array
- object.choice
+ object.sample
else
object
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090619/a5ec3217/attachment.html>
More information about the macruby-changes
mailing list