From 9aac71045c3f138a50d1dd042bb6bd7696f65ba6 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sun, 3 Aug 2014 15:28:26 -0500 Subject: Add inspect to CompilerFailure --- Library/Homebrew/compilers.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Homebrew/compilers.rb b/Library/Homebrew/compilers.rb index 93c52c343..55f8c3fe0 100644 --- a/Library/Homebrew/compilers.rb +++ b/Library/Homebrew/compilers.rb @@ -52,6 +52,10 @@ class CompilerFailure name == compiler.name && version >= compiler.version end + def inspect + "#<#{self.class.name}: #{name} #{version}>" + end + MESSAGES = { :cxx11 => "This compiler does not support C++11" } -- cgit v1.2.3