Class: OS::Underlying

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

Class Method Summary collapse

Class Method Details

.bsd?Boolean

Returns:

  • (Boolean)


161
162
163
# File 'lib/os.rb', line 161

def self.bsd?
  OS.osx?
end

.linux?Boolean

Returns:

  • (Boolean)


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

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

.windows?Boolean

Returns:

  • (Boolean)


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

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