Sha256: a888d8801453779aaba79656e533ae78b503ed0edbc6c9a54c29959d741a2074
Contents?: true
Size: 442 Bytes
Versions: 18
Compression:
Stored size: 442 Bytes
Contents
module Aio::Base::Toolkit module OS class << self def os_family case RUBY_PLATFORM when /ix/i, /ux/i, /gnu/i, /sysv/i, /solaris/i, /sunos/i, /bsd/i "unix" when /win/i, /ming/i "windows" else "other" end end def windows? self.os_family == "windows" ? true : false end def linux? self.os_family == "unix" ? true : false end end end end
Version data entries
18 entries across 18 versions & 1 rubygems