aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-11-20 22:29:23 -0600
committerJack Nagel2014-11-20 22:37:47 -0600
commit2b09f6636251d100985ee286971848540fed67f9 (patch)
tree9fbd05bdbadb24010ae69aa2a4e29807365fbd0f /Library/Homebrew
parentc114c22d213c275f7d091fbce84a8d53e01c72af (diff)
downloadhomebrew-2b09f6636251d100985ee286971848540fed67f9.tar.bz2
Improve inspect output for dependency collections
Diffstat (limited to 'Library/Homebrew')
-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