Module: OS
- Included in:
- Browser
- Defined in:
- lib/config.rb
Overview
detect operating system
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
14 15 16 |
# File 'lib/config.rb', line 14 def OS.linux? not (OS.windows? or OS.mac?) end |
.mac? ⇒ Boolean
10 11 12 |
# File 'lib/config.rb', line 10 def OS.mac? (/darwin/ =~ RUBY_PLATFORM) != nil end |
.windows? ⇒ Boolean
6 7 8 |
# File 'lib/config.rb', line 6 def OS.windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end |