Sha256: 28065341fc5b8083ac4aaf410d145fbf52a3b37b3d7f127dd0b5206715cd5e8b
Contents?: true
Size: 461 Bytes
Versions: 2
Compression:
Stored size: 461 Bytes
Contents
require 'rbconfig' module Buff module Platform require_relative 'platform/version' extend self # @return [Boolean] def windows? (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) ? true : false end # @return [Boolean] def osx? (RbConfig::CONFIG['host_os'] =~ /darwin/) ? true : false end # @return [Boolean] def linux? (RbConfig::CONFIG['host_os'] =~ /linux/) ? true : false end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
buff-platform-1.0.0 | lib/buff/platform.rb |
buff-platform-0.1.0 | lib/buff/platform.rb |