[前][次][番号順一覧][スレッド一覧]

ruby-changes:64027

From: Nobuyoshi <ko1@a...>
Date: Tue, 8 Dec 2020 22:19:11 +0900 (JST)
Subject: [ruby-changes:64027] d5ffa4e9a4 (master): [DOC] mentioned category option

https://git.ruby-lang.org/ruby.git/commit/?id=d5ffa4e9a4

From d5ffa4e9a43ebdd451fb2c46529d301dec03f666 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 8 Dec 2020 19:32:33 +0900
Subject: [DOC] mentioned category option


diff --git a/warning.rb b/warning.rb
index 22acd34..764e352 100644
--- a/warning.rb
+++ b/warning.rb
@@ -5,7 +5,7 @@ module Kernel https://github.com/ruby/ruby/blob/trunk/warning.rb#L5
   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
   # <code>-W0</code> flag), does nothing.  Otherwise,
@@ -39,6 +39,9 @@ module Kernel https://github.com/ruby/ruby/blob/trunk/warning.rb#L39
   #
   #    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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]