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

Don't document aliases with trailing :nodoc directive #1090

Merged
merged 1 commit into from
Feb 9, 2024

Conversation

p8
Copy link
Contributor

@p8 p8 commented Feb 8, 2024

Attribute readers and writers can be marked as :nodoc to keep them undocumented:

attr_reader :name # :nodoc:

For aliases this behaviour should be the same:

alias_method :old :new # :nodoc:

Attribute readers and writers can be marked as `:nodoc` to keep them
undocumented:

```ruby
attr_reader :name # :nodoc:
```

For aliases this behaviour should be the same:

```ruby
alias_method :old :new # :nodoc:
```
@nobu nobu merged commit 265d572 into ruby:master Feb 9, 2024
24 checks passed
@p8 p8 deleted the fix/nodoc-for-alias-method branch February 9, 2024 10:01
@p8
Copy link
Contributor Author

p8 commented Feb 9, 2024

Thanks @nobu !

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

Successfully merging this pull request may close these issues.

2 participants