aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
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.