Skip to content

Rdoc::Parser::Ruby failure on the namespace resolution operator with a block #752

Description

@wowinter13

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions