From d5ffa4e9a43ebdd451fb2c46529d301dec03f666 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Tue, 8 Dec 2020 19:32:33 +0900 Subject: [PATCH] [DOC] mentioned category option --- warning.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/warning.rb b/warning.rb index 22acd3424e..764e352296 100644 --- a/warning.rb +++ b/warning.rb @@ -5,7 +5,7 @@ module Kernel module_function # call-seq: - # warn(*msgs, uplevel: nil) -> nil + # warn(*msgs, uplevel: nil, category: nil) -> nil # # If warnings have been disabled (for example with the # -W0 flag), does nothing. Otherwise, @@ -39,6 +39,9 @@ module Kernel # # baz.rb:6: warning: invalid call to foo # + # If the +category+ keyword argument is given, it is passed to + # Warning.warn method. + # def warn(*msgs, uplevel: nil, category: nil) Primitive.rb_warn_m(msgs, uplevel, category) end