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' require 'test/unit/assertions'
begin begin
require 'win32console' require 'win32console'
USING_WIN32CONSOLE = true
rescue LoadError rescue LoadError
USING_WIN32CONSOLE = false
end end
# -------------------------------------------------------------------- # --------------------------------------------------------------------
# Support code for the Ruby Koans. # Support code for the Ruby Koans.
@@ -124,7 +122,7 @@ module EdgeCase
File::ALT_SEPARATOR File::ALT_SEPARATOR
end end
def using_win32console def using_win32console
USING_WIN32CONSOLE defined? Win32::Console
end end
end end