From ad3b4f76aadf53ec12b51ee2072123ada2ddedde Mon Sep 17 00:00:00 2001 From: ahmed80dz Date: Fri, 7 Oct 2011 23:55:12 +0200 Subject: [PATCH] as suggested by sunaku --- koans/edgecase.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/koans/edgecase.rb b/koans/edgecase.rb index 03c8f29..d727cd7 100644 --- a/koans/edgecase.rb +++ b/koans/edgecase.rb @@ -4,9 +4,7 @@ require 'test/unit/assertions' begin require 'win32console' - USING_WIN32CONSOLE = true rescue LoadError - USING_WIN32CONSOLE = false end # -------------------------------------------------------------------- # Support code for the Ruby Koans. @@ -124,7 +122,7 @@ module EdgeCase File::ALT_SEPARATOR end def using_win32console - USING_WIN32CONSOLE + defined? Win32::Console end end -- 1.8.0.2