test/extensions/windows.rb in dropcaster-0.0.8 vs test/extensions/windows.rb in dropcaster-1.0.0
- old
+ new
@@ -1,12 +1,14 @@
+# frozen_string_literal: true
+
# 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, _ = RUBY_PLATFORM.split('-')
platform == 'mingw32'
end