Sha256: 1828c07713f220c00ff6884dc3b58233587473c7f9eb78e52f0dce18cf0aec54
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
module Antrapol module ToolRack module RuntimeUtils def RuntimeUtils.on_window? (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.on_ruby? not on_jruby? end def RuntimeUtils.on_jruby? (RUBY_PLATFORM =~ /java/) != nil end end # RuntimeUtils end # ToolRack end #Antrapol
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
toolrack-0.4.0 | lib/toolrack/runtime_utils.rb |