Merge pull request #17089 from Homebrew/dependabot/bundler/Library/Homebrew/method_source-1.1.0
This commit is contained in:
commit
a2f56fc353
@ -26,7 +26,7 @@ GEM
|
||||
kramdown (2.4.0)
|
||||
rexml
|
||||
language_server-protocol (3.17.0.3)
|
||||
method_source (1.0.0)
|
||||
method_source (1.1.0)
|
||||
minitest (5.22.3)
|
||||
msgpack (1.7.2)
|
||||
netrc (0.11.0)
|
||||
|
||||
@ -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
|
||||
@ -56,7 +56,7 @@ $:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/rexml-3.2.6/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/kramdown-2.4.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/language_server-protocol-3.17.0.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/method_source-1.0.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/method_source-1.1.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/minitest-5.22.3/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/netrc-0.11.0/lib")
|
||||
$:.unshift File.expand_path("#{__dir__}/../#{RUBY_ENGINE}/#{Gem.ruby_api_version}/gems/parallel-1.24.0/lib")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user