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.
|
# This is an autogenerated file for types exported from the `warning` gem.
|
||||||
# Please instead update this file by running `bin/tapioca gem warning`.
|
# Please instead update this file by running `bin/tapioca gem warning`.
|
||||||
|
|
||||||
|
|
||||||
# source://warning//lib/warning.rb#3
|
# source://warning//lib/warning.rb#3
|
||||||
module Warning
|
module Warning
|
||||||
extend ::Warning
|
extend ::Warning
|
||||||
@ -28,17 +29,17 @@ module Warning::Processor
|
|||||||
# end
|
# end
|
||||||
# # Previous warning state restored when block exists
|
# # Previous warning state restored when block exists
|
||||||
#
|
#
|
||||||
# source://warning//lib/warning.rb#48
|
# source://warning//lib/warning.rb#49
|
||||||
def clear; end
|
def clear; end
|
||||||
|
|
||||||
# Deduplicate warnings, suppress warning messages if the same warning message
|
# Deduplicate warnings, suppress warning messages if the same warning message
|
||||||
# has already occurred. Note that this can lead to unbounded memory use
|
# has already occurred. Note that this can lead to unbounded memory use
|
||||||
# if unique warnings are generated.
|
# if unique warnings are generated.
|
||||||
#
|
#
|
||||||
# source://warning//lib/warning.rb#79
|
# source://warning//lib/warning.rb#80
|
||||||
def dedup; end
|
def dedup; end
|
||||||
|
|
||||||
# source://warning//lib/warning.rb#83
|
# source://warning//lib/warning.rb#84
|
||||||
def freeze; end
|
def freeze; end
|
||||||
|
|
||||||
# Ignore any warning messages matching the given regexp, if they
|
# 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
|
# # Ignore all uninitialized instance variable and method redefined warnings in current file
|
||||||
# Warning.ignore([:missing_ivar, :method_redefined], __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
|
def ignore(regexp, path = T.unsafe(nil)); end
|
||||||
|
|
||||||
# Handle all warnings starting with the given path, instead of
|
# 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|
|
# /instance variable @\w+ not initialized/ => proc do |warning|
|
||||||
# LOGGER.warning(warning)
|
# LOGGER.warning(warning)
|
||||||
# end,
|
# end,
|
||||||
# /global variable `\$\w+' not initialized/ => proc do |warning|
|
# /global variable [`']\$\w+' not initialized/ => proc do |warning|
|
||||||
# LOGGER.error(warning)
|
# LOGGER.error(warning)
|
||||||
# end
|
# end
|
||||||
# )
|
# )
|
||||||
@ -125,26 +126,26 @@ module Warning::Processor
|
|||||||
#
|
#
|
||||||
# Warning.process(__FILE__, :missing_ivar=>:backtrace, :keyword_separation=>:raise)
|
# 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
|
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
|
def warn(str, category: T.unsafe(nil)); end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# Convert the given Regexp, Symbol, or Array of Symbols into a Regexp.
|
# 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
|
def convert_regexp(regexp); end
|
||||||
|
|
||||||
# source://warning//lib/warning.rb#285
|
# source://warning//lib/warning.rb#286
|
||||||
def synchronize(&block); end
|
def synchronize(&block); end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Map of action symbols to procs that return the symbol
|
# 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)
|
Warning::Processor::ACTION_PROC_MAP = T.let(T.unsafe(nil), Hash)
|
||||||
|
|
||||||
# Map of symbols to regexps for warning messages to ignore.
|
# Map of symbols to regexps for warning messages to ignore.
|
Loading…
x
Reference in New Issue
Block a user