as suggested by sunaku

This commit is contained in:
ahmed80dz
2011-10-07 23:55:12 +02:00
parent 595f2af341
commit ad3b4f76aa

View File

@@ -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