Sha256: d3576638e50c97a3d88b671ab7032f5d20e363853651f09e691d9d8a7138d13c
Contents?: true
Size: 459 Bytes
Versions: 4
Compression:
Stored size: 459 Bytes
Contents
require 'rbconfig' module Jinx # Operating system methods. module OS include Config # @return [System] the operating system type +:windows+, +:linux+, +:mac+, +:solaris+, or +:other+ def self.os_type case CONFIG['host_os'] when /mswin|windows/i then :windows when /linux/i then :linux when /darwin/i then :mac when /sunos|solaris/i then :solaris else :other end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
jinx-2.1.4 | lib/jinx/helpers/os.rb |
jinx-2.1.3 | lib/jinx/helpers/os.rb |
jinx-2.1.2 | lib/jinx/helpers/os.rb |
jinx-2.1.1 | lib/jinx/helpers/os.rb |