[MacRuby-devel] [MacRuby] #745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And p_find_all causes an error.
MacRuby
ruby-noreply at macosforge.org
Sat Jun 12 06:08:24 PDT 2010
#745: README.rdoc has mistake in "Enumerable#p_findall" on "lib/dispach". And
p_find_all causes an error.
----------------------------------+-----------------------------------------
Reporter: watson1978@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords:
----------------------------------+-----------------------------------------
Enumerable#p_findall is a mistake of Enumerable#p_find_all.
And p_find_all causes an error when following scripts are executed. This
script described in README.rdoc.
{{{
$ cat p_find_all.rb
require 'dispatch'
(0..4).p_find_all { |i| i.odd?} # => {3, 1}
}}}
{{{
$ macruby p_find_all.rb
/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/1.9.2/dispatch/enumerable.rb:44:in
`p_each:': undefined local variable or method `size' for 0..4:Range
(NameError)
from
/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/1.9.2/dispatch/enumerable.rb:85:in
`p_find_all'
from /Users/watson/tmp/p_find_all.rb:1:in `<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/745>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list