aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2015-01-04 21:35:20 -0500
committerJack Nagel2015-01-04 21:36:22 -0500
commiteec4feccaa06ab909ffc02fcec7d63a3e23fdd2d (patch)
treed50f74f806a06bd0df4cebe1f42bfc8677823139 /Library/Homebrew
parent8535c037ac8e6e8bff50db271de5e2d9c9370890 (diff)
downloadbrew-eec4feccaa06ab909ffc02fcec7d63a3e23fdd2d.tar.bz2
Include selected spec in Formula#inspect
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 98e8ba719..4f1370b10 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -436,7 +436,9 @@ class Formula
end
def inspect
- "#<#{self.class.name}: #{path}>"
+ s = "#<Formula #{name} ("
+ s << if head? then "head" elsif devel? then "devel" else "stable" end
+ s << ") #{path}>"
end
# Standard parameters for CMake builds.