Sha256: ddd2b24470059fa01f447ff83aaff210b3c537fcb9c2578ec22c41a4e248ff92

Contents?: true

Size: 217 Bytes

Versions: 1

Compression:

Stored size: 217 Bytes

Contents

require 'rbconfig'

module Pair
  module OS
    def linux?
      !RbConfig::CONFIG['target_os'].match("linux").nil?
    end

    def self.x?
      !RbConfig::CONFIG['target_os'].match("darwin").nil?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pair-0.0.3 lib/pair/os.rb