Sha256: 6ee5b7a8e8949354840072f27b57566549fd7d5e1ce68823d8d75c569fd34a4b
Contents?: true
Size: 552 Bytes
Versions: 6
Compression:
Stored size: 552 Bytes
Contents
# -*- encoding: utf-8 -*- require 'rbconfig' module TTY class System class << self # Check if windows platform. # # @return [Boolean] # # @api public def windows? RbConfig::CONFIG['host_os'] =~ /msdos|mswin|djgpp|mingw|windows/ end # Check if unix platform # # @return [Boolean] # # @api public def unix? RbConfig::CONFIG['host_os'] =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i end end end # System end # TTY
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
tty-0.0.7 | lib/tty/system.rb |
tty-0.0.6 | lib/tty/system.rb |
tty-0.0.5 | lib/tty/system.rb |
tty-0.0.4 | lib/tty/system.rb |
tty-0.0.3 | lib/tty/system.rb |
tty-0.0.2 | lib/tty/system.rb |