Sha256: eb0478f768972c478686429eae9f94e4efd54e6e170c6223e20b9c887423d98a
Contents?: true
Size: 754 Bytes
Versions: 14
Compression:
Stored size: 754 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 class <<self alias_method :on_java?, :on_jruby? end end # RuntimeUtils end # ToolRack end #Antrapol
Version data entries
14 entries across 14 versions & 1 rubygems