diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-11-27 13:53:55 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-12-21 18:02:10 +0100 |
commit | 71a64a2903876338c5bba5cc4843451377cf99d5 (patch) | |
tree | 4ed5e3c29fc881c66ecb23691d205782801ab2d5 /lib/bundler/source.rb | |
parent | e3f6642127bcb79fcf9e2ed6cabf976d14ab1cc1 (diff) | |
download | bundler-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.rb | 4 |
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 |