RDoc: m(&block) {|x| ... }

From: Tanaka Akira <akr@...17n.org>
Date: 2004-05-05 15:23:15 UTC
List: ruby-core #2845
I found that RDoc generates a method headline which has both a block
parameter and a block such as m(&block) {|x| ... }.

% rm -rf doc
% cat t.rb 
def m(&block)
  yield x
end
% rdoc t.rb 

                               t.rb: .
Generating HTML...

Files:   1
Classes: 0
Modules: 0
Methods: 1
Elapsed: 0.204s
% grep '&amp;block' doc/files/t_rb.html 
                                        <span class="method-name">m</span><span class="method-args">(&amp;block) {|x| ...}</span>
% grep '&amp;block' doc/files/t_rb.html|w3m -T text/html -dump
m(&block) {|x| ...}

I think it should not generate both.
-- 
Tanaka Akira

In This Thread

Prev Next