Sha256: 651f77107eb6f399d27de38f5a2225fbfba874ab2fd25c3c3abf0bf476fb82b8
Contents?: true
Size: 420 Bytes
Versions: 1
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ohai-8.5.1 | spec/support/platform_helpers.rb |