summaryrefslogtreecommitdiff
path: root/lib/bundler/source.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-11-27 13:53:55 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-12-21 18:02:10 +0100
commit71a64a2903876338c5bba5cc4843451377cf99d5 (patch)
tree4ed5e3c29fc881c66ecb23691d205782801ab2d5 /lib/bundler/source.rb
parente3f6642127bcb79fcf9e2ed6cabf976d14ab1cc1 (diff)
downloadbundler-71a64a2903876338c5bba5cc4843451377cf99d5.tar.gz
[Source] Add an inspect method
This will avoid printing out every single cached spec
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r--lib/bundler/source.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb
index 9d65d4613b..917e9106e0 100644
--- a/lib/bundler/source.rb
+++ b/lib/bundler/source.rb
@@ -34,5 +34,9 @@ module Bundler
def include?(other)
other == self
end
+
+ def inspect
+ "#<#{self.class}:0x#{object_id} #{self}>"
+ end
end
end