HEX
Server: Apache
System: Linux s198.coreserver.jp 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC 2025 x86_64
User: nagasaki (10062)
PHP: 7.1.33
Disabled: NONE
Upload Files
File: //usr/local/rvm/src/ruby-3.0.2/.bundle/gems/rbs-1.0.4/core/warning.rbs
# The [Warning](Warning) module contains a single
# method named [warn](Warning#method-i-warn), and the
# module extends itself, making `Warning.warn` available.
# [\#warn](Warning#method-i-warn) is called for all
# warnings issued by Ruby. By default, warnings are printed to $stderr.
#
# By overriding [\#warn](Warning#method-i-warn), you
# can change how warnings are handled by Ruby, either filtering some
# warnings, and/or outputting warnings somewhere other than $stderr. When
# [\#warn](Warning#method-i-warn) is overridden, super
# can be called to get the default behavior of printing the warning to
# $stderr.
module Warning
  # Writes warning message msg to $stderr, followed by a newline if the message does not end in a newline.
  # This method is called by Ruby for all emitted warnings.
  def warn: (String) -> nil
end