Bug #683
closedrdoc fails on singleton method of Object
Description
=begin
Rdoc gives an error when given this code:
def Object.b
end
The error I see is:
caleb@play:~/tmp$ rdoc ab.rb
ab.rb: .
RDoc failure in ab.rb at or around line 1 column 12
Before reporting this, could you check that the file
you're documenting compiles cleanly--RDoc is not a
full Ruby parser, and gets confused easily if fed
invalid programs.
The internal error was:
/usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1918:in parse_method': undefined method
name' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1636:in parse_statements' from /usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1569:in
parse_toplevel_statements'
from /usr/lib/ruby/1.8/rdoc/parsers/parse_rb.rb:1405:in `scan'
This is occurring for me in ruby 1.8.6 and 1.8.7, but not 1.9.
=end
Updated by shyouhei (Shyouhei Urabe) about 15 years ago
- Assignee set to drbrain (Eric Hodel)
- ruby -v set to -
=begin
=end
Updated by drbrain (Eric Hodel) almost 14 years ago
- Status changed from Open to Rejected
=begin
Upgrade to a newer version of the RDoc gem to fix this in 1.8
=end