Sha256: 43074101b100ad1267250414c491ab09425b070e76e32ae937cc431f21b4d180

Contents?: true

Size: 835 Bytes

Versions: 44

Compression:

Stored size: 835 Bytes

Contents

# 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

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
rbs-2.0.0 core/warning.rbs
rbs-2.0.0.pre2 core/warning.rbs
rbs-2.0.0.pre1 core/warning.rbs
rbs-1.8.1 core/warning.rbs
rbs-1.8.0 core/warning.rbs
rbs-1.7.1 core/warning.rbs
rbs-1.7.0 core/warning.rbs
rbs-1.7.0.beta.5 core/warning.rbs
rbs-1.7.0.beta.4 core/warning.rbs
rbs-1.7.0.beta.3 core/warning.rbs
rbs-1.7.0.beta.2 core/warning.rbs
rbs-1.7.0.beta.1 core/warning.rbs
rbs-1.6.2 core/warning.rbs
rbs-1.6.1 core/warning.rbs
rbs-1.6.0 core/warning.rbs
rbs-1.5.1 core/warning.rbs
rbs-1.5.0 core/warning.rbs
rbs-1.4.0 core/warning.rbs
rbs-1.3.3 core/warning.rbs
rbs-1.3.2 core/warning.rbs