aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-08-03 15:28:26 -0500
committerJack Nagel2014-08-03 15:28:51 -0500
commitcf3c12dd5b23d8b44c56303ba1e4796be8b3b3c0 (patch)
tree37d672be2c10c28c04467d163c5c667980310f82
parent9aac71045c3f138a50d1dd042bb6bd7696f65ba6 (diff)
downloadbrew-cf3c12dd5b23d8b44c56303ba1e4796be8b3b3c0.tar.bz2
Add inspect to CxxStdlib
-rw-r--r--Library/Homebrew/cxxstdlib.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cxxstdlib.rb b/Library/Homebrew/cxxstdlib.rb
index 3326ebac0..7847552ba 100644
--- a/Library/Homebrew/cxxstdlib.rb
+++ b/Library/Homebrew/cxxstdlib.rb
@@ -51,6 +51,10 @@ class CxxStdlib
type.to_s.gsub(/cxx$/, 'c++')
end
+ def inspect
+ "#<#{self.class.name}: #{compiler} #{type}>"
+ end
+
class AppleStdlib < CxxStdlib
def apple_compiler?
true