diff --git a/Library/Homebrew/sorbet/rbi/gems/method_source@1.0.0.rbi b/Library/Homebrew/sorbet/rbi/gems/method_source@1.1.0.rbi similarity index 86% rename from Library/Homebrew/sorbet/rbi/gems/method_source@1.0.0.rbi rename to Library/Homebrew/sorbet/rbi/gems/method_source@1.1.0.rbi index 039ac9d5d0..4e40c9a7ec 100644 --- a/Library/Homebrew/sorbet/rbi/gems/method_source@1.0.0.rbi +++ b/Library/Homebrew/sorbet/rbi/gems/method_source@1.1.0.rbi @@ -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