-
Notifications
You must be signed in to change notification settings - Fork 444
Closed
Description
https://github.com/wowinter13/terrasms_api/blob/master/lib/terrasms_api/request.rb
I have a Gem, which contains a method called with_handled_errors
.
If I rewrote the method body from:
TerrasmsApi::Error.call { yield }
to:
TerrasmsApi::Error::() { yield } # functional way, etc-etc.
It still would be a correct ruby code, but:
gem install terrasms_api
Successfully installed terrasms_api-0.1.0
Parsing documentation for terrasms_api-0.1.0
RDoc::Parser::Ruby failure around line 51 of
lib/terrasms_api/request.rb
TerrasmsApi::Error::() { yield }
Before reporting this, could you check that the file you're documenting
has proper syntax:
.../.rbenv/versions/2.6.5/bin/ruby -c lib/terrasms_api/request.rb
RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
The internal error was:
(RDoc::Error) Invalid class or module definition: TerrasmsApi::Error
ERROR: While executing gem ... (RDoc::Error)
Invalid class or module definition: TerrasmsApi::Error
________
.../.rbenv/versions/2.6.5/bin/ruby -c lib/terrasms_api/request.rb
Syntax OK
Metadata
Metadata
Assignees
Labels
No labels