Module: Process::Path::OS
- Defined in:
- lib/process/path/os.rb
Overview
Class Method Summary collapse
Class Method Details
.jruby? ⇒ Boolean
23 24 25 |
# File 'lib/process/path/os.rb', line 23 def self.jruby? RUBY_ENGINE == 'jruby' end |
.linux? ⇒ Boolean
19 20 21 |
# File 'lib/process/path/os.rb', line 19 def self.linux? OS.unix? and !OS.mac? end |
.mac? ⇒ Boolean
11 12 13 |
# File 'lib/process/path/os.rb', line 11 def self.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.unix? ⇒ Boolean
15 16 17 |
# File 'lib/process/path/os.rb', line 15 def self.unix? !OS.windows? end |
.windows? ⇒ Boolean
7 8 9 |
# File 'lib/process/path/os.rb', line 7 def self.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |