Class: OS

Inherits:
Object
  • Object
show all
Defined in:
lib/msbuild_windows.rb

Class Method Summary collapse

Class Method Details

.is_64bits?Boolean

Returns:

  • (Boolean)


6
7
8
9
10
11
12
# File 'lib/msbuild_windows.rb', line 6

def self.is_64bits?
  if OS.windows?
    return ENV.has_key?('ProgramFiles(x86)')
  else
    return OS.bits == 64
  end
end