diff options
| author | Jack Nagel | 2014-03-13 19:51:24 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-13 21:35:41 -0500 |
| commit | c91c2c10d8f4850c7d82434e3832beb7fdd2d187 (patch) | |
| tree | 484af9b62c8ba35a851b930118da00057b4a9220 /Library | |
| parent | a5a78ce3c6ad2d26707e7e159c74c3bbc1189341 (diff) | |
| download | brew-c91c2c10d8f4850c7d82434e3832beb7fdd2d187.tar.bz2 | |
Add inspect methods to patch classes
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/patch.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 9e830c3ce..95171840e 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -78,6 +78,10 @@ class IOPatch < Patch # in case we are indirectly referenced by an exception later. @io = nil end + + def inspect + "#<#{self.class}: #{strip.inspect}>" + end end class ExternalPatch < Patch @@ -108,6 +112,10 @@ class ExternalPatch < Patch safe_system "/usr/bin/patch", "-g", "0", "-f", "-d", dir, "-#{strip}", "-i", patchfile end end + + def inspect + "#<#{self.class}: #{strip.inspect} #{url.inspect}>" + end end # Legacy patches have no checksum and are not cached |
