Module: OS
- Defined in:
- lib/waff/os.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
14 15 16 |
# File 'lib/waff/os.rb', line 14 def OS.linux? OS.unix? and not OS.mac? end |
.mac? ⇒ Boolean
6 7 8 |
# File 'lib/waff/os.rb', line 6 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.windows? ⇒ Boolean
2 3 4 |
# File 'lib/waff/os.rb', line 2 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |