aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-08-03 15:28:26 -0500
committerJack Nagel2014-08-03 15:28:51 -0500
commit4d0e6ca17e0093636ccf255bfc241bd14b799e1c (patch)
treef2cc4f304a35843a62348c9026933691d4874dea
parent31bcf1690215ec0a8786a7460781d43e748feb80 (diff)
downloadhomebrew-4d0e6ca17e0093636ccf255bfc241bd14b799e1c.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