Sha256: b11e862cc5ff33f2f4d75c5d8aede7daf3040461910b0bfd728262986249c13c

Contents?: true

Size: 836 Bytes

Versions: 22

Compression:

Stored size: 836 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

22 entries across 22 versions & 2 rubygems

Version Path
rbs-0.13.1 stdlib/builtin/warning.rbs
rbs-0.13.0 stdlib/builtin/warning.rbs
rbs-0.12.2 stdlib/builtin/warning.rbs
rbs-0.12.1 stdlib/builtin/warning.rbs
rbs-0.12.0 stdlib/builtin/warning.rbs
rbs-0.11.0 stdlib/builtin/warning.rbs
rbs-0.10.0 stdlib/builtin/warning.rbs
rbs-0.9.1 stdlib/builtin/warning.rbs
rbs-0.9.0 stdlib/builtin/warning.rbs
rbs-0.8.0 stdlib/builtin/warning.rbs
rbs-0.7.0 stdlib/builtin/warning.rbs
rbs-0.6.0 stdlib/builtin/warning.rbs
rbs-0.5.0 stdlib/builtin/warning.rbs
rbs-0.4.0 stdlib/builtin/warning.rbs
rbs-0.3.1 stdlib/builtin/warning.rbs
rbs-0.3.0 stdlib/builtin/warning.rbs
rbs-0.2.0 stdlib/builtin/warning.rbs
steep-0.16.0 vendor/ruby-signature/stdlib/builtin/warning.rbs
steep-0.15.0 vendor/ruby-signature/stdlib/builtin/warning.rbs
steep-0.14.0 vendor/ruby-signature/stdlib/builtin/warning.rbs