Sha256: 2c0e62e9a199b2361620e71d1be2711304fa1687d856bf82efa1fccb4b56e986
Contents?: true
Size: 713 Bytes
Versions: 4
Compression:
Stored size: 713 Bytes
Contents
module Bixby module Script module Platform def uname RUBY_PLATFORM end def osx? uname =~ /darwin/ end alias_method :darwin?, :osx? alias_method :mac?, :osx? def linux? uname =~ /linux/ end def solaris? uname =~ /solaris/ end def windows? uname =~ /mswin|mingw|bccwin|wince|cygwin/ end alias_method :win?, :windows? def bsd? uname =~ /freebsd|netbsd|openbsd/ end # architectures def amd64? RbConfig::CONFIG['target_cpu'] == "x86_64" end def x86? RbConfig::CONFIG['target_cpu'] =~ /i[3-6]86/ end end end end
Version data entries
4 entries across 4 versions & 1 rubygems