[rubygems/rubygems] Define a few inspect methods to help debugging

https://github.com/rubygems/rubygems/commit/ad26ccde38
This commit is contained in:
David Rodríguez 2024-11-14 10:54:15 +01:00 committed by git
parent 0914da52e0
commit b56aacba78
3 changed files with 12 additions and 0 deletions

View File

@ -120,6 +120,10 @@ module Bundler
@remote_specification = spec
end
def inspect
"#<#{self.class} @name=\"#{name}\" (#{full_name.delete_prefix("#{name}-")})>"
end
private
def _remote_specification

View File

@ -161,6 +161,10 @@ module Bundler
search
end
def inspect
"#<#{self.class} @name=\"#{name}\" (#{full_name.delete_prefix("#{name}-")})>"
end
def to_s
lock_name
end

View File

@ -116,6 +116,10 @@ module Bundler
stub.raw_require_paths
end
def inspect
"#<#{self.class} @name=\"#{name}\" (#{full_name.delete_prefix("#{name}-")})>"
end
private
def _remote_specification