git://git.eng.unimelb.edu.au
/
ruby_koans.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
595f2af
)
as suggested by sunaku
author
ahmed80dz
<ounis.ahmed@gmail.com>
Fri, 7 Oct 2011 21:55:12 +0000
(23:55 +0200)
committer
ahmed80dz
<ounis.ahmed@gmail.com>
Fri, 7 Oct 2011 21:55:12 +0000
(23:55 +0200)
koans/edgecase.rb
patch
|
blob
|
history
diff --git
a/koans/edgecase.rb
b/koans/edgecase.rb
index
03c8f29
..
d727cd7
100644
(file)
--- 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