module OpenRemote::OS
Detect operating system
Public Instance Methods
os_name()
click to toggle source
# File lib/or-browser.rb, line 4 def os_name if (/darwin/ =~ RUBY_PLATFORM) != nil "mac" elsif (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil "dos" else "nix" end end