Module: Rubbr::OS
- Included in:
- Cli
- Defined in:
- lib/rubbr/os.rb
Overview
Detection of OS.
Instance Method Summary collapse
Instance Method Details
#os ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/rubbr/os.rb', line 5 def os if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) :windows else :unix end end |