Class: OSHelper
- Inherits:
-
Object
- Object
- OSHelper
- Defined in:
- lib/javonet-ruby-sdk/utils/os_helper.rb
Class Method Summary collapse
Class Method Details
.linux? ⇒ Boolean
12 13 14 |
# File 'lib/javonet-ruby-sdk/utils/os_helper.rb', line 12 def self.linux? RbConfig::CONFIG['host_os'] =~ /linux/i end |
.mac? ⇒ Boolean
8 9 10 |
# File 'lib/javonet-ruby-sdk/utils/os_helper.rb', line 8 def self.mac? RbConfig::CONFIG['host_os'] =~ /darwin/i end |
.os_name ⇒ Object
20 21 22 |
# File 'lib/javonet-ruby-sdk/utils/os_helper.rb', line 20 def self.os_name RbConfig::CONFIG['host_os'] end |
.unix? ⇒ Boolean
16 17 18 |
# File 'lib/javonet-ruby-sdk/utils/os_helper.rb', line 16 def self.unix? RbConfig::CONFIG['host_os'] =~ /unix/i end |
.windows? ⇒ Boolean
4 5 6 |
# File 'lib/javonet-ruby-sdk/utils/os_helper.rb', line 4 def self.windows? RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/i end |