mirror of
https://github.com/edgecase/ruby_koans.git
synced 2026-04-15 07:23:19 -04:00
as suggested by sunaku
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user