aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-11-20 22:29:23 -0600
committerJack Nagel2014-11-20 22:37:47 -0600
commit1a1f9aa323ae03ac59ae5ba4c006ef459a586b68 (patch)
treef157bca6e396cdaa4d73320c216985291c9c5298 /Library
parent6f6484f0d855c051a81b9754024ed34574a81a49 (diff)
downloadbrew-1a1f9aa323ae03ac59ae5ba4c006ef459a586b68.tar.bz2
Improve inspect output for dependency collections
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/dependencies.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dependencies.rb b/Library/Homebrew/dependencies.rb
index db28c7af3..bcfba0478 100644
--- a/Library/Homebrew/dependencies.rb
+++ b/Library/Homebrew/dependencies.rb
@@ -51,6 +51,10 @@ class Dependencies
deps == other.deps
end
alias_method :eql?, :==
+
+ def inspect
+ "#<#{self.class.name}: #{to_a.inspect}>"
+ end
end
class Requirements