Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] Change to handling of aliases #7340

Merged
merged 1 commit into from Feb 19, 2023
Merged

[DOC] Change to handling of aliases #7340

merged 1 commit into from Feb 19, 2023

Conversation

BurdetteLamar
Copy link
Member

RDoc now automatically mentions aliases, so no need to mention explicitly.

@BurdetteLamar BurdetteLamar added the Documentation Improvements to documentation. label Feb 19, 2023
@BurdetteLamar BurdetteLamar changed the title Change to handling of aliases [DOC] Change to handling of aliases Feb 19, 2023
Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

Looks good, but I think we should clarify one point.

@@ -328,7 +327,7 @@ Return types:

Aliases:

- Omit aliases from the `call-seq`, but mention them near the end (see below).
- Omit aliases from the `call-seq`.
Copy link
Contributor

Choose a reason for hiding this comment

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

I would clarify that in rare circumstances aliases can be listed in the call-seq. @zverok provided an example for String#-@ and String#dedup. In this case (operator and normal method are aliases), it probably makes sense to list both. In this case, the operator and method can both be listed.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure how to characterize the exceptional cases. Would you please add something to the doc?

Copy link
Contributor

@jeremyevans jeremyevans left a comment

Choose a reason for hiding this comment

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

This is fine for now. I'll update the guide to mention handling exceptional cases later.

@BurdetteLamar BurdetteLamar merged commit ea50765 into ruby:master Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Improvements to documentation.
2 participants