Module: Rake::Win32

Defined in:
lib/rake/win32.rb

Overview

Win 32 interface methods for Rake. Windows specific functionality will be placed here to collect that knowledge in one spot.

Class Method Summary collapse

Class Method Details

.windows? ⇒ Boolean

True if running on a windows system.

Returns:

  • (Boolean)


11
12
13
# File 'lib/rake/win32.rb', line 11

def windows?
  RbConfig::CONFIG["host_os"] =~ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
end