Sha256: 7b54c8732c833daba7b53cbc341772f911057bef952c94cbd5d2d732a38cd0ee

Contents?: true

Size: 256 Bytes

Versions: 6

Compression:

Stored size: 256 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

6 entries across 6 versions & 1 rubygems

Version Path
dropcaster-0.0.8 test/extensions/windows.rb
dropcaster-0.0.7 test/extensions/windows.rb
dropcaster-0.0.6 test/extensions/windows.rb
dropcaster-0.0.5 test/extensions/windows.rb
dropcaster-0.0.5.rc3 test/extensions/windows.rb
dropcaster-0.0.5.rc1 test/extensions/windows.rb