Skip to content

Conversation

nbeyer
Copy link
Contributor

@nbeyer nbeyer commented Mar 23, 2018

  • For the special case of 'initalize', handle 'Raises' as the
    indicator of the Returns section.
  • Stop treating Raises lines as multine line text and let them be
    their own paragraphs

According to my interpretation of the TomDoc spec (http://tomdoc.org/), 'Raises' lines are part of the Returns section. The current RDoc TomDoc parser doesn't recognize these lines and treats them as just continuations of an preceding 'Returns' line. Additionally, constructors (#initialize methods) can be documented without a 'Returns' line, but if there's a 'Raises' line it would mean there is a Returns section. This pull request addresses both of these quirks.

Copy link
Member

@aycabta aycabta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense. I want to merge this, but the commit message contains typos.

s/initalize/initialize/
s/multine line/multiline/

Please fix the commit and do push --force.

* For the special case of 'initialize', handle 'Raises' as the
  indicator of the Returns section.
* Stop treating Raises lines as multine text and let them be
  their own paragraphs
@nbeyer
Copy link
Contributor Author

nbeyer commented May 8, 2018

The commit message should be fixed at 54f6e5b.

Copy link
Member

@aycabta aycabta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good. Thank you for your response.

@aycabta aycabta merged commit 364d124 into ruby:master May 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants