diff options
| author | Jack Nagel | 2013-06-07 20:36:13 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2013-06-07 20:36:13 -0500 | 
| commit | fd9412868a67a3a684347a3ec99ed3ca1733caa5 (patch) | |
| tree | 75337ae71fb88d117388a18d554d0958f52d4094 /Library/Homebrew | |
| parent | 70b6c30e0223379ff8954ad7a760e0a1674a8edc (diff) | |
| download | homebrew-fd9412868a67a3a684347a3ec99ed3ca1733caa5.tar.bz2 | |
Add Dependency#inspect
Diffstat (limited to 'Library/Homebrew')
| -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  | 
