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

{Method,UnboundMethod}#{public?,private?,protected?} の説明を追加 #2896

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions refm/api/src/_builtin/Method
Original file line number Diff line number Diff line change
Expand Up @@ -700,3 +700,17 @@ C.new.method(:bar).original_name # => :foo

@see [[m:UnboundMethod#original_name]]
#@end

#@if (version == "3.1.0")
--- public? -> bool

self が public であるかどうかを返します。

--- protected? -> bool

self が protected であるかどうかを返します。

--- private? -> bool

self が private であるかどうかを返します。
#@end
14 changes: 14 additions & 0 deletions refm/api/src/_builtin/UnboundMethod
Original file line number Diff line number Diff line change
Expand Up @@ -297,3 +297,17 @@ C.instance_method(:bar).original_name # => :foo

@see [[m:Method#original_name]]
#@end

#@if (version == "3.1.0")
--- public? -> bool

self が public であるかどうかを返します。

--- protected? -> bool

self が protected であるかどうかを返します。

--- private? -> bool

self が private であるかどうかを返します。
#@end
2 changes: 1 addition & 1 deletion refm/doc/news/3_1_0.rd
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ C.subclasses #=> []

* [[c:Method]] / [[c:UnboundMethod]]
* 新規メソッド
* Method#public?, Method#private?, Method#protected?, UnboundMethod#public?, UnboundMethod#private?, UnboundMethod#protected? が追加されました。 [[feature:11689]]
* [[m:Method#public?]], [[m:Method#private?]], [[m:Method#protected?]], [[m:UnboundMethod#public?]], [[m:UnboundMethod#private?]], [[m:UnboundMethod#protected?]] が追加されました。 [[feature:11689]]

* [[c:Module]]
* 変更されたメソッド
Expand Down