Project

General

Profile

Actions

Bug #683

closed

rdoc fails on singleton method of Object

Added by coatl (caleb clausen) over 15 years ago. Updated almost 13 years ago.

Status:
Rejected
ruby -v:
-
[ruby-core:19512]

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

Actions #1

Updated by shyouhei (Shyouhei Urabe) about 15 years ago

  • Assignee set to drbrain (Eric Hodel)
  • ruby -v set to -

=begin

=end

Actions #2

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

Actions

Also available in: Atom PDF

Like0
Like0Like0