Sha256: 357ac28dfe8d04c608efe62b183c6c0abfd257343acbdafff06cf01d3deb6264
Contents?: true
Size: 639 Bytes
Versions: 7
Compression:
Stored size: 639 Bytes
Contents
## # Deternine the OS for classes which need to perform system commands module Digiproc::OS ## # return true if in a windows env def windows? (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil end ## # return true if in a mac env def mac? (/darwin/ =~ RUBY_PLATFORM) != nil end ## # return true if in a unix env def unix? !windows? end ## # return true if in a linux env def linux? unix? and not mac? end ## # return true if using jruby def ruby? RUBY_ENGINE == 'jruby' end end
Version data entries
7 entries across 7 versions & 1 rubygems