Sha256: 8ee9073d7648ba18178f407c7ff64066b5ef30d4d3eb321d79d101dbe3aa29eb
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
def ruby_19? !!(RUBY_VERSION =~ /^1.9/) end def ruby_18? !!(RUBY_VERSION =~ /^1.8/) end def windows? !!(RUBY_PLATFORM =~ /mswin|mingw|windows/) end # def jruby? def unix? !windows? end def os_x? !!(RUBY_PLATFORM =~ /darwin/) end def solaris? !!(RUBY_PLATFORM =~ /solaris/) end def freebsd? !!(RUBY_PLATFORM =~ /freebsd/) end DEV_NULL = windows? ? "NUL" : "/dev/null"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ohai-8.19.1 | spec/support/platform_helpers.rb |
ohai-8.15.1 | spec/support/platform_helpers.rb |