Sha256: 691f877c655e4d0ea707b5e4fd8c4c9ed040d4dc3b0b35b2ce391e25bb66bee4

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

module VirtualBox
  class Platform
    class << self
      def mac?
        platform.include?("darwin")
      end

      def windows?
        platform.include?("mswin") || platform.include?("mingw") || platform.include?("cygwin")
      end

      def linux?
        platform.include?("linux")
      end

      def solaris?
        platform.include?("solaris")
      end

      def platform
        RUBY_PLATFORM.downcase
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
virtualbox-0.7.6 lib/virtualbox/ext/platform.rb