Module: Platform
- Defined in:
- lib/Platform/OS.rb,
lib/Platform/OS/OSX.rb,
lib/Platform/OS/osxQ.rb,
lib/Platform/OS/linuxQ.rb,
lib/Platform/OS/windowsQ.rb,
lib/Platform/OS/nt_basedQ.rb,
lib/Platform/OS/OSX/SystemProfiler.rb
Overview
Platform/OS/nt_basedQ.rb Platform::OS#nt_based?
Defined Under Namespace
Modules: OS
Class Method Summary collapse
Class Method Details
.nt_based? ⇒ Boolean
8 9 10 11 12 13 14 |
# 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 |