Sha256: 486366ada9173d919b2e5d525a0444d84d7cf98639867aa90e5ac32f5c106f5e
Contents?: true
Size: 681 Bytes
Versions: 6
Compression:
Stored size: 681 Bytes
Contents
module Antrapol module ToolRack module RuntimeUtils def RuntimeUtils.on_windows? (RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|mingw|bccwin|wince|emx/) != nil end def RuntimeUtils.on_mac? (RbConfig::CONFIG['host_os'] =~ /darwin|mac/) != nil end def RuntimeUtils.on_linux? (RbConfig::CONFIG['host_os'] =~ /linux/) != nil end def RuntimeUtils.os_string RbConfig::CONFIG['host_os'] end def RuntimeUtils.on_ruby? not on_jruby? end def RuntimeUtils.on_jruby? (RUBY_PLATFORM =~ /java/) != nil end end # RuntimeUtils end # ToolRack end #Antrapol
Version data entries
6 entries across 6 versions & 1 rubygems