module Platform

Platform/OS.rb Platform::OS

Platform/OS/linuxQ.rb Platform::OS#linux?

Platform/OS/nt_basedQ.rb Platform::OS#nt_based?

Platform/OS/osxQ.rb Platform::OS#osx?

Platform/OS/windowsQ.rb Platform::OS#windows?

Public Instance Methods

nt_based?() click to toggle source
# File lib/Platform/OS/nt_basedQ.rb, line 8
def nt_based?
  if ENV.has_key?('OS') && ENV['OS'] =~ /nt/i # it's one of the NT-based operating systems (NT, 2000, or XP) (What about Vista, 7, and 8?)
    true
  else # it's one of DOS, Windows 95, 98, or ME
    false
  end
end