Update RBI files for method_source.

Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
This commit is contained in:
BrewTestBot 2024-04-15 18:21:40 +00:00
parent cb1125e137
commit f58dc9c6b2
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F

View File

@ -4,7 +4,7 @@
# This is an autogenerated file for types exported from the `method_source` gem.
# Please instead update this file by running `bin/tapioca gem method_source`.
# source://method_source//lib/method_source.rb#127
# source://method_source//lib/method_source.rb#163
class Method
include ::MethodSource::SourceLocation::MethodExtensions
include ::MethodSource::MethodExtensions
@ -15,6 +15,11 @@ module MethodSource
extend ::MethodSource::CodeHelpers
class << self
# Clear cache.
#
# source://method_source//lib/method_source.rb#59
def clear_cache; end
# Helper method responsible for opening source file and buffering up
# the comments for a specified method. Defined here to avoid polluting
# `Method` class.
@ -29,7 +34,7 @@ module MethodSource
# @deprecated — use MethodSource::CodeHelpers#expression_at
#
# source://method_source//lib/method_source.rb#66
# source://method_source//lib/method_source.rb#71
def extract_code(source_location); end
# Load a memoized copy of the lines in a file.
@ -55,7 +60,7 @@ module MethodSource
# @deprecated — use MethodSource::CodeHelpers#complete_expression?
# @return [Boolean]
#
# source://method_source//lib/method_source.rb#59
# source://method_source//lib/method_source.rb#64
def valid_expression?(str); end
end
end
@ -154,8 +159,21 @@ MethodSource::CodeHelpers::IncompleteExpression::RBX_ONLY_REGEXPS = T.let(T.unsa
# This module is to be included by `Method` and `UnboundMethod` and
# provides the `#source` functionality
#
# source://method_source//lib/method_source.rb#72
# source://method_source//lib/method_source.rb#77
module MethodSource::MethodExtensions
# Return the comments associated with the method class/module.
#
# @example
# MethodSource::MethodExtensions.method(:included).module_comment
# =>
# # This module is to be included by `Method` and `UnboundMethod` and
# # provides the `#source` functionality
# @raise SourceNotFoundException
# @return [String] The method's comments as a string
#
# source://method_source//lib/method_source.rb#139
def class_comment; end
# Return the comments associated with the method as a string.
#
# @example
@ -165,9 +183,22 @@ module MethodSource::MethodExtensions
# @raise SourceNotFoundException
# @return [String] The method's comments as a string
#
# source://method_source//lib/method_source.rb#121
# source://method_source//lib/method_source.rb#126
def comment; end
# Return the comments associated with the method class/module.
#
# @example
# MethodSource::MethodExtensions.method(:included).module_comment
# =>
# # This module is to be included by `Method` and `UnboundMethod` and
# # provides the `#source` functionality
# @raise SourceNotFoundException
# @return [String] The method's comments as a string
#
# source://method_source//lib/method_source.rb#139
def module_comment; end
# Return the sourcecode for the method as a string
#
# @example
@ -180,7 +211,7 @@ module MethodSource::MethodExtensions
# @raise SourceNotFoundException
# @return [String] The method sourcecode as a string
#
# source://method_source//lib/method_source.rb#109
# source://method_source//lib/method_source.rb#114
def source; end
class << self
@ -191,7 +222,7 @@ module MethodSource::MethodExtensions
#
# @param klass [Class] The class that includes the module.
#
# source://method_source//lib/method_source.rb#79
# source://method_source//lib/method_source.rb#84
def included(klass); end
end
end
@ -259,13 +290,13 @@ class MethodSource::SourceNotFoundError < ::StandardError; end
# source://method_source//lib/method_source/version.rb#2
MethodSource::VERSION = T.let(T.unsafe(nil), String)
# source://method_source//lib/method_source.rb#137
# source://method_source//lib/method_source.rb#173
class Proc
include ::MethodSource::SourceLocation::ProcExtensions
include ::MethodSource::MethodExtensions
end
# source://method_source//lib/method_source.rb#132
# source://method_source//lib/method_source.rb#168
class UnboundMethod
include ::MethodSource::SourceLocation::UnboundMethodExtensions
include ::MethodSource::MethodExtensions