diff options
| author | Jack Nagel | 2013-06-07 20:36:13 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-06-07 20:36:13 -0500 | 
| commit | 9a2a43b558a30c4b0fc9a98bc036f98c8e350e19 (patch) | |
| tree | a52491dfb7186fbf98e746d13e764153369cfa96 /Library | |
| parent | d596303199a9688b9ef5a21871ded58f77e52feb (diff) | |
| download | brew-9a2a43b558a30c4b0fc9a98bc036f98c8e350e19.tar.bz2 | |
Add Dependency#inspect
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/dependency.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index 91def8442..f0ad27cf0 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -59,6 +59,10 @@ class Dependency      env_proc.call unless env_proc.nil?    end +  def inspect +    "#<#{self.class}: #{name.inspect} #{tags.inspect}>" +  end +    class << self      # Expand the dependencies of dependent recursively, optionally yielding      # [dependent, dep] pairs to allow callers to apply arbitrary filters to | 
