# 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? _, platform, _ = RUBY_PLATFORM.split('-') platform == 'mingw32' end