Rdoc chokes

Dave and/or whomever,

This is not a formal bug report, since
someone may well tell me to upgrade my
Ruby or rdoc or both. :slight_smile:

The rdoc is:
RDoc Vbeta-1: 2002/03/30 16:28:47 (1.60)

On Win98, using Ruby 1.6.6 (mswin32), I
run this little example through rdoc
(I’ve trimmed it to its essentials).

require “gdbm”

class GDBM

alias old_assign []=

def []=(index,obj)
  old_assign(index,obj.to_s)
end

end

The problem is apparently somehow related
to the left bracket.

What it tells me is this:

tryme.rb: c.C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1678:in
parse_method': undefined methodname’ for
#RubyToken::TkfLBRACK:0x2594e78 (NameError)
from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1519:in
parse_statements' from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1612:inparse_class’
from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1505:in
parse_statements' from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1342:inscan’
from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1341:in catch' from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/parse.rb:1341:inscan’
from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/rdoc.rb:160:in
`parse_files’

    from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/rdoc.rb:149:in `each'
    from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/rdoc.rb:149:in

`parse_files’

    from C:/RUBY166/lib/ruby/site_ruby/1.6/rdoc/rdoc.rb:187:in

`document’
from c:\ruby166\bin\rdoc:6

Thanks,
Hal Fulton

“Hal E. Fulton” hal9000@hypermetrics.com writes:

This is not a formal bug report,

Oh yes it is! :slight_smile:

Strange, because I distinctly remember writing code to deal with
operator method names. Oh well, it’s now on the list.

If you want, you can always report rdoc bugs, add feature requests,
and download latest versions, from rdoc.sourceforge.net.

Cheers

Dave

“Hal E. Fulton” hal9000@hypermetrics.com writes:

This is not a formal bug report, since someone may well tell me to
upgrade my Ruby or rdoc or both. :slight_smile:

Fixed in the latest CVS.

Cheers

Dave