Update RBI files for warning.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
This commit is contained in:
parent
e2da608b26
commit
d60b14d1a3
@ -4,6 +4,7 @@
|
||||
# This is an autogenerated file for types exported from the `warning` gem.
|
||||
# Please instead update this file by running `bin/tapioca gem warning`.
|
||||
|
||||
|
||||
# source://warning//lib/warning.rb#3
|
||||
module Warning
|
||||
extend ::Warning
|
||||
@ -28,17 +29,17 @@ module Warning::Processor
|
||||
# end
|
||||
# # Previous warning state restored when block exists
|
||||
#
|
||||
# source://warning//lib/warning.rb#48
|
||||
# source://warning//lib/warning.rb#49
|
||||
def clear; end
|
||||
|
||||
# Deduplicate warnings, suppress warning messages if the same warning message
|
||||
# has already occurred. Note that this can lead to unbounded memory use
|
||||
# if unique warnings are generated.
|
||||
#
|
||||
# source://warning//lib/warning.rb#79
|
||||
# source://warning//lib/warning.rb#80
|
||||
def dedup; end
|
||||
|
||||
# source://warning//lib/warning.rb#83
|
||||
# source://warning//lib/warning.rb#84
|
||||
def freeze; end
|
||||
|
||||
# Ignore any warning messages matching the given regexp, if they
|
||||
@ -81,7 +82,7 @@ module Warning::Processor
|
||||
# # Ignore all uninitialized instance variable and method redefined warnings in current file
|
||||
# Warning.ignore([:missing_ivar, :method_redefined], __FILE__)
|
||||
#
|
||||
# source://warning//lib/warning.rb#128
|
||||
# source://warning//lib/warning.rb#129
|
||||
def ignore(regexp, path = T.unsafe(nil)); end
|
||||
|
||||
# Handle all warnings starting with the given path, instead of
|
||||
@ -114,7 +115,7 @@ module Warning::Processor
|
||||
# /instance variable @\w+ not initialized/ => proc do |warning|
|
||||
# LOGGER.warning(warning)
|
||||
# end,
|
||||
# /global variable `\$\w+' not initialized/ => proc do |warning|
|
||||
# /global variable [`']\$\w+' not initialized/ => proc do |warning|
|
||||
# LOGGER.error(warning)
|
||||
# end
|
||||
# )
|
||||
@ -125,26 +126,26 @@ module Warning::Processor
|
||||
#
|
||||
# Warning.process(__FILE__, :missing_ivar=>:backtrace, :keyword_separation=>:raise)
|
||||
#
|
||||
# source://warning//lib/warning.rb#179
|
||||
# source://warning//lib/warning.rb#180
|
||||
def process(path = T.unsafe(nil), actions = T.unsafe(nil), &block); end
|
||||
|
||||
# source://warning//lib/warning.rb#220
|
||||
# source://warning//lib/warning.rb#221
|
||||
def warn(str, category: T.unsafe(nil)); end
|
||||
|
||||
private
|
||||
|
||||
# Convert the given Regexp, Symbol, or Array of Symbols into a Regexp.
|
||||
#
|
||||
# source://warning//lib/warning.rb#272
|
||||
# source://warning//lib/warning.rb#273
|
||||
def convert_regexp(regexp); end
|
||||
|
||||
# source://warning//lib/warning.rb#285
|
||||
# source://warning//lib/warning.rb#286
|
||||
def synchronize(&block); end
|
||||
end
|
||||
|
||||
# Map of action symbols to procs that return the symbol
|
||||
#
|
||||
# source://warning//lib/warning.rb#26
|
||||
# source://warning//lib/warning.rb#27
|
||||
Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash)
|
||||
|
||||
# Map of symbols to regexps for warning messages to ignore.
|
Loading…
x
Reference in New Issue
Block a user