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

Change return value of Module#alias_method #2462

Merged
merged 4 commits into from
Feb 28, 2021

Conversation

osyo-manga
Copy link
Contributor

Ruby 3.0 で Module#alias_method の戻り値が変わったのでドキュメントに追加しました。

参照

@@ -13,6 +30,12 @@ alias との違いは以下の通りです。

@param original 元のメソッド名。[[c:String]] または [[c:Symbol]] で指定します。

#@since 3.0.0
@return メソッド名を表す Symbol を返します。
Copy link
Member

Choose a reason for hiding this comment

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

「メソッド名を表す」だと新旧どちらのメソッド名が返るかパッと分かりづらいかなと思いました。「作成したエイリアスのメソッド名を表す Symbol を返します。」のようにすると明確かなと思うのですがどうでしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ありがとうございます!修正してみました。
257af1c

Copy link
Member

@pocke pocke left a comment

Choose a reason for hiding this comment

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

LGTM 🌟
ありがとうございますー

@pocke pocke merged commit a248c54 into rurema:master Feb 28, 2021
@osyo-manga osyo-manga mentioned this pull request Feb 28, 2021
63 tasks
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