Class: OS::Underlying

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

Class Method Summary collapse

Class Method Details

.bsd?Boolean

Returns:

  • (Boolean)


166
167
168
# File 'lib/os.rb', line 166

def self.bsd?
  OS.osx?
end

.linux?Boolean

Returns:

  • (Boolean)


174
175
176
# File 'lib/os.rb', line 174

def self.linux?
  OS.host_os =~ /linux/ ? true : false
end

.windows?Boolean

Returns:

  • (Boolean)


170
171
172
# File 'lib/os.rb', line 170

def self.windows?
  ENV['OS'] == 'Windows_NT'
end