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

Add Warning.warn document #2052

Merged
merged 1 commit into from Dec 24, 2019
Merged

Add Warning.warn document #2052

merged 1 commit into from Dec 24, 2019

Conversation

pocke
Copy link
Member

@pocke pocke commented Dec 15, 2019

Fix #2050

Warning moduleの説明で「Warning#warnをオーバーライドする」となっていたのを「Warning.warnをオーバーライドする」に修正しました。
これはRDocでもそのようになっており、 #warn の方をオーバーライドするのは誤りです。
https://docs.ruby-lang.org/en/2.6.0/Warning.html#method-i-warn

また、それに合わせて Warning.warn メソッドの説明とサンプルコードを追加しています。

スクショ

191215214930

@pocke pocke closed this Dec 24, 2019
@pocke pocke reopened this Dec 24, 2019
@pocke pocke merged commit c18094a into rurema:master Dec 24, 2019
@pocke pocke deleted the warn branch December 24, 2019 12:06
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.

Warning#warn でなく Warning.warn をoverrideするように修正する
1 participant