Forum: Ruby rdoc/usage usage_no_exit error

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Todd S. (Guest)
on 2006-01-10 04:28
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?
David V. (Guest)
on 2006-01-11 19:35
(Received via mailing list)
Todd S. wrote:

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
This topic is locked and can not be replied to.