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:
parent
cb1125e137
commit
f58dc9c6b2
@ -4,7 +4,7 @@
|
|||||||
# This is an autogenerated file for types exported from the `method_source` gem.
|
# 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`.
|
# 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
|
class Method
|
||||||
include ::MethodSource::SourceLocation::MethodExtensions
|
include ::MethodSource::SourceLocation::MethodExtensions
|
||||||
include ::MethodSource::MethodExtensions
|
include ::MethodSource::MethodExtensions
|
||||||
@ -15,6 +15,11 @@ module MethodSource
|
|||||||
extend ::MethodSource::CodeHelpers
|
extend ::MethodSource::CodeHelpers
|
||||||
|
|
||||||
class << self
|
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
|
# Helper method responsible for opening source file and buffering up
|
||||||
# the comments for a specified method. Defined here to avoid polluting
|
# the comments for a specified method. Defined here to avoid polluting
|
||||||
# `Method` class.
|
# `Method` class.
|
||||||
@ -29,7 +34,7 @@ module MethodSource
|
|||||||
|
|
||||||
# @deprecated — use MethodSource::CodeHelpers#expression_at
|
# @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
|
def extract_code(source_location); end
|
||||||
|
|
||||||
# Load a memoized copy of the lines in a file.
|
# Load a memoized copy of the lines in a file.
|
||||||
@ -55,7 +60,7 @@ module MethodSource
|
|||||||
# @deprecated — use MethodSource::CodeHelpers#complete_expression?
|
# @deprecated — use MethodSource::CodeHelpers#complete_expression?
|
||||||
# @return [Boolean]
|
# @return [Boolean]
|
||||||
#
|
#
|
||||||
# source://method_source//lib/method_source.rb#59
|
# source://method_source//lib/method_source.rb#64
|
||||||
def valid_expression?(str); end
|
def valid_expression?(str); end
|
||||||
end
|
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
|
# This module is to be included by `Method` and `UnboundMethod` and
|
||||||
# provides the `#source` functionality
|
# provides the `#source` functionality
|
||||||
#
|
#
|
||||||
# source://method_source//lib/method_source.rb#72
|
# source://method_source//lib/method_source.rb#77
|
||||||
module MethodSource::MethodExtensions
|
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.
|
# Return the comments associated with the method as a string.
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
@ -165,9 +183,22 @@ module MethodSource::MethodExtensions
|
|||||||
# @raise SourceNotFoundException
|
# @raise SourceNotFoundException
|
||||||
# @return [String] The method's comments as a string
|
# @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
|
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
|
# Return the sourcecode for the method as a string
|
||||||
#
|
#
|
||||||
# @example
|
# @example
|
||||||
@ -180,7 +211,7 @@ module MethodSource::MethodExtensions
|
|||||||
# @raise SourceNotFoundException
|
# @raise SourceNotFoundException
|
||||||
# @return [String] The method sourcecode as a string
|
# @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
|
def source; end
|
||||||
|
|
||||||
class << self
|
class << self
|
||||||
@ -191,7 +222,7 @@ module MethodSource::MethodExtensions
|
|||||||
#
|
#
|
||||||
# @param klass [Class] The class that includes the module.
|
# @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
|
def included(klass); end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -259,13 +290,13 @@ class MethodSource::SourceNotFoundError < ::StandardError; end
|
|||||||
# source://method_source//lib/method_source/version.rb#2
|
# source://method_source//lib/method_source/version.rb#2
|
||||||
MethodSource::VERSION = T.let(T.unsafe(nil), String)
|
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
|
class Proc
|
||||||
include ::MethodSource::SourceLocation::ProcExtensions
|
include ::MethodSource::SourceLocation::ProcExtensions
|
||||||
include ::MethodSource::MethodExtensions
|
include ::MethodSource::MethodExtensions
|
||||||
end
|
end
|
||||||
|
|
||||||
# source://method_source//lib/method_source.rb#132
|
# source://method_source//lib/method_source.rb#168
|
||||||
class UnboundMethod
|
class UnboundMethod
|
||||||
include ::MethodSource::SourceLocation::UnboundMethodExtensions
|
include ::MethodSource::SourceLocation::UnboundMethodExtensions
|
||||||
include ::MethodSource::MethodExtensions
|
include ::MethodSource::MethodExtensions
|
||||||
Loading…
x
Reference in New Issue
Block a user