Class: Hypertube::Utils::OSHelper
- Inherits:
-
Object
- Object
- Hypertube::Utils::OSHelper
- Defined in:
- lib/hypertube-ruby-sdk/utils/os_helper.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
14 15 16 |
# File 'lib/hypertube-ruby-sdk/utils/os_helper.rb', line 14 def self.linux? RbConfig::CONFIG['host_os'] =~ /linux/i end |
.mac? ⇒ Boolean
10 11 12 |
# File 'lib/hypertube-ruby-sdk/utils/os_helper.rb', line 10 def self.mac? RbConfig::CONFIG['host_os'] =~ /darwin/i end |
.os_name ⇒ Object
22 23 24 |
# File 'lib/hypertube-ruby-sdk/utils/os_helper.rb', line 22 def self.os_name RbConfig::CONFIG['host_os'] end |
.unix? ⇒ Boolean
18 19 20 |
# File 'lib/hypertube-ruby-sdk/utils/os_helper.rb', line 18 def self.unix? RbConfig::CONFIG['host_os'] =~ /unix/i end |
.windows? ⇒ Boolean
6 7 8 |
# File 'lib/hypertube-ruby-sdk/utils/os_helper.rb', line 6 def self.windows? RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i end |