Module: Landrush::OS
- Included in:
- Server
- Defined in:
- lib/landrush/os.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
15 16 17 |
# File 'lib/landrush/os.rb', line 15 def self.linux? unix? && !mac? end |
.mac? ⇒ Boolean
7 8 9 |
# File 'lib/landrush/os.rb', line 7 def self.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.unix? ⇒ Boolean
11 12 13 |
# File 'lib/landrush/os.rb', line 11 def self.unix? !windows? end |
.windows? ⇒ Boolean
3 4 5 |
# File 'lib/landrush/os.rb', line 3 def self.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |