rdoc/usage usage_no_exit error

Discussion in 'Ruby' started by Todd S., Jan 10, 2006.

  1. Todd S.

    Todd S. Guest

    I'm trying to integrate rdoc/usage.rb into my ruby script for the usage
    paramaters, however it doesn't seem to work.

    when I call RDoc::usage I get this...

    /usr/local/lib/ruby/1.8/rdoc/usage.rb:105:in `usage_no_exit': private
    method `gsub' called for nil:NilClass (NoMethodError)

    Is there any way to fix this?

    --
    Posted via http://www.ruby-forum.com/.
     
    Todd S., Jan 10, 2006
    #1
    1. Advertising

  2. Todd S. wrote:

    >I'm trying to integrate rdoc/usage.rb into my ruby script for the usage
    >paramaters, however it doesn't seem to work.
    >
    >when I call RDoc::usage I get this...
    >
    >/usr/local/lib/ruby/1.8/rdoc/usage.rb:105:in `usage_no_exit': private
    >method `gsub' called for nil:NilClass (NoMethodError)
    >
    >Is there any way to fix this?
    >
    >
    >

    Check for the REALLY dumb errors. From a look at the usage.rb source, it
    seems that find_usage fails to find your usage information at all. Check
    for typos, or how you comment out the documentation comments -
    #find_comment in usage.rb doesn't seem to recognize =begin [ ... ] =end
    blocks.
     
    David Vallner, Jan 11, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andreas Schwarz
    Replies:
    6
    Views:
    263
    Randy W. Sims
    Jan 1, 2004
  2. Brian Schröder
    Replies:
    5
    Views:
    146
    Dave Thomas
    Sep 18, 2004
  3. Daniel Berger
    Replies:
    1
    Views:
    147
    Dave Thomas
    Nov 2, 2004
  4. Iwan van der Kleyn

    rdoc: how to add readme.rdoc as index.html?

    Iwan van der Kleyn, Apr 26, 2005, in forum: Ruby
    Replies:
    1
    Views:
    245
    Stefan Lang
    Apr 26, 2005
  5. Paul Van Delst

    How to use rdoc parsers outside of rdoc?

    Paul Van Delst, Jul 27, 2006, in forum: Ruby
    Replies:
    0
    Views:
    111
    Paul Van Delst
    Jul 27, 2006
Loading...

Share This Page