Skip to content

Commit 4ab6ef6

Browse files
authored
Merge pull request #2928 from kyanagi/warning_categories
`Warning.categories`を追加
2 parents bb48d27 + 8102c81 commit 4ab6ef6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

refm/api/src/_builtin/Warning

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@ warn "hoge" # => hoge!!!
8181

8282
@see [[m:Kernel.#warn]], [[m:Warning#warn]]
8383

84+
#@since 3.4
85+
--- categories -> Array
86+
87+
警告カテゴリの一覧を返します。
88+
89+
#@samplecode
90+
Warning.categories # => [:deprecated, :experimental, :performance, :strict_unused_block]
91+
#@end
92+
93+
#@end
94+
8495
== Public Instance Methods
8596

8697
#@since 3.0.0

0 commit comments

Comments
 (0)