class RuboCop::AST::NodePattern::Compiler
def with_temp_variables(*names, &block)
Experimental RBS support (using type sampling data from the type_fusion
project).
def with_temp_variables: (*Array[String] names, ) -> String
This signature was generated using 3 samples from 1 application.
def with_temp_variables(*names, &block) @temp_depth += 1 suffix = @temp_depth if @temp_depth > 1 names = block.parameters.map(&:last) if names.empty? names.map! { |name| "#{name}#{suffix}" } yield(*names) ensure @temp_depth -= 1 end