Sha256: c20b0c9788c1bef4d3dae7b32b365af630e4244fd36ae1aaaf451775a4f47e4a

Contents?: true

Size: 268 Bytes

Versions: 2

Compression:

Stored size: 268 Bytes

Contents

# 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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dropcaster-0.0.4 test/extensions/windows.rb
dropcaster-0.0.3 test/extensions/windows.rb