[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:30:57 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:
----------------------------------+-----------------------------------------
Comment(by watson1978@…):
p_map causes a similar error.
{{{
$ cat p_map.rb
require 'dispatch'
p (0..4).p_map { |i| 10**i } # => [1, 1000, 10, 100, 10000]
}}}
{{{
$ macruby p_map.rb
/Library/Frameworks/MacRuby.framework/Versions/0.7/usr/lib/ruby/1.9.2/dispatch/enumerable.rb:50:in
`p_each_with_index:': 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:57:in
`p_map'
from /Users/watson/tmp/p_map.rb:1:in `<main>'
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/745#comment:1>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list