End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Resolver::Molinillo::UI#debug
debug(depth = 0) { || ... }
lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/resolver/molinillo/lib/molinillo/modules/ui.rb, line 48
def debug(depth = 0)
if debug?
debug_info = yield
debug_info = debug_info.inspect unless debug_info.is_a?(String)
debug_info = debug_info.split("\n").map { |s| ":#{depth.to_s.rjust 4}: #{s}" }
output.puts debug_info
end
end
Conveys debug information to the user.
@param [Integer] depth the current depth of the resolution process. @return [void]