aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-01-04 21:35:20 -0500
committerJack Nagel2015-01-04 21:36:22 -0500
commit2f40ded239362cb0990a5203cd34bf755c805945 (patch)
tree6449a7ef071f7e21e8839ef8e4f77c3cb0a0831c /Library
parentbba14bb9d4dfa42751ecc2817b6748be6124ba91 (diff)
downloadhomebrew-2f40ded239362cb0990a5203cd34bf755c805945.tar.bz2
Include selected spec in Formula#inspect
Diffstat (limited to 'Library')
-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.