diff options
| author | Jack Nagel | 2014-11-20 22:29:23 -0600 |
|---|---|---|
| committer | Jack Nagel | 2014-11-20 22:37:47 -0600 |
| commit | 1a1f9aa323ae03ac59ae5ba4c006ef459a586b68 (patch) | |
| tree | f157bca6e396cdaa4d73320c216985291c9c5298 /Library | |
| parent | 6f6484f0d855c051a81b9754024ed34574a81a49 (diff) | |
| download | brew-1a1f9aa323ae03ac59ae5ba4c006ef459a586b68.tar.bz2 | |
Improve inspect output for dependency collections
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependencies.rb | 4 |
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 |
