Class: OS::Underlying
- Inherits:
-
Object
- Object
- OS::Underlying
- Defined in:
- lib/os.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
169 170 171 |
# File 'lib/os.rb', line 169 def self.linux? OS.host_os =~ /linux/ ? true : false end |
.windows? ⇒ Boolean
165 166 167 |
# File 'lib/os.rb', line 165 def self.windows? ENV['OS'] == 'Windows_NT' end |