Sha256: 0dfeb4827a78fffec3c53f05ed0018b723b44d6d89fb86a1fc64e671870e084d

Contents?: true

Size: 256 Bytes

Versions: 10

Compression:

Stored size: 256 Bytes

Contents

module OS
  def OS.windows?
    (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
  end

  def OS.mac?
    (/darwin/ =~ RUBY_PLATFORM) != nil
  end

  def OS.unix?
    !OS.windows?
  end

  def OS.linux?
    OS.unix? and not OS.mac?
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
virgil-crypto-2.3.0 lib/virgil/os.rb
virgil-crypto-2.1.2.2 lib/virgil/os.rb
virgil-crypto-2.1.2.1 lib/virgil/os.rb
virgil-crypto-2.1.2 lib/virgil/os.rb
virgil-crypto-2.1.0 lib/virgil/os.rb
virgil-crypto-2.0.7 lib/virgil/os.rb
virgil-crypto-2.0.6r4 lib/virgil/os.rb
virgil-crypto-2.0.6r3 lib/virgil/os.rb
virgil-crypto-2.0.6r2 lib/virgil/os.rb
virgil-crypto-2.0.6r1 lib/virgil/os.rb