Running rdoc on lib/*.rb

    • I tried it on a couple test files and even though the results
      are sparse I was pretty impressed. However, the following dies

cd ruby/lib
rdoc

with the error

ccmc/var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1638:in
parse_class': undefined methodname’ for
#RubyToken::TkSTRING:0x403ea21c (NoMethodError)
from
/var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1518:in parse_statements' from /var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1349:inscan’
from
/var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1348:in catch' from /var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1348:inscan’
from
/var/local/lib/ruby/site_ruby/1.7/rdoc/rdoc.rb:157:in parse_files' from /var/local/lib/ruby/site_ruby/1.7/rdoc/rdoc.rb:151:ineach’
from
/var/local/lib/ruby/site_ruby/1.7/rdoc/rdoc.rb:151:in parse_files' from /var/local/lib/ruby/site_ruby/1.7/rdoc/rdoc.rb:184:indocument’
from
/u/sf/bbense/bin.linux/rdoc:6

when it gets to singleton.rb.

The question I have is should this work? I’m using the latest
rdoc from the cvs tree with version 1.7.2 of ruby. Even just
running rdoc on singleton.rb by itself crashes with the same
error.

    • Booker C. Bense
···

bbense+comp.lang.ruby.Jul.15.02@telemark.stanford.edu writes:

I tried it on a couple test files and even though the results
are sparse I was pretty impressed. However, the following dies

cd ruby/lib
rdoc

with the error

ccmc/var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1638:in
parse_class': undefined methodname’ for
#RubyToken::TkSTRING:0x403ea21c (NoMethodError)

Oops - It got confused by

class << ‘aString’

I’ll fix it and check in tonight.

Dave

In article m2vg7g73fs.fsf@zip.local.thomases.com,

···

Dave Thomas Dave@PragmaticProgrammer.com wrote:

bbense+comp.lang.ruby.Jul.15.02@telemark.stanford.edu writes:

I tried it on a couple test files and even though the results
are sparse I was pretty impressed. However, the following dies

cd ruby/lib
rdoc

with the error

ccmc/var/local/lib/ruby/site_ruby/1.7/rdoc/parsers/parse_rb.rb:1638:in
parse_class': undefined methodname’ for
#RubyToken::TkSTRING:0x403ea21c (NoMethodError)

Oops - It got confused by

class << ‘aString’

I’ll fix it and check in tonight.

  • -Thanks.

    • I was thinking that it would be a nice project to
      "rdoc-ify" the libraries in lib. Is anybody working
      on this, if not I’ll try and coordinate something.
    • Booker C. Bense