test/extensions/windows.rb in dropcaster-0.0.4 vs test/extensions/windows.rb in dropcaster-0.0.5.rc1

- old
+ new

@@ -1,12 +1,12 @@ -# Returns true if we run on a windows platform -# -# Sample: -# -# puts "Windows" if Kernel.is_windows? -# -# http://snippets.dzone.com/posts/show/2112 -# -def Kernel.is_windows? - processor, platform, *rest = RUBY_PLATFORM.split("-") - platform == 'mingw32' -end +# Returns true if we run on a windows platform +# +# Sample: +# +# puts "Windows" if Kernel.is_windows? +# +# http://snippets.dzone.com/posts/show/2112 +# +def Kernel.is_windows? + processor, platform, *rest = RUBY_PLATFORM.split("-") + platform == 'mingw32' +end