Sha256: 88c53970567db33032b633697b08ddb2da32aee717646f9af35e7c7ea14d7e6b

Contents?: true

Size: 321 Bytes

Versions: 16

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class Windows < Base
      def version
        ua[/Windows NT\s*([0-9_\.]+)?/, 1] || "0"
      end

      def name
        "Windows"
      end

      def id
        :windows
      end

      def match?
        ua =~ /Windows/
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
browser-4.2.0 lib/browser/platform/windows.rb
browser-4.1.0 lib/browser/platform/windows.rb
browser-4.0.0 lib/browser/platform/windows.rb
browser-3.0.3 lib/browser/platform/windows.rb
browser-3.0.2 lib/browser/platform/windows.rb
browser-3.0.1 lib/browser/platform/windows.rb
browser-3.0.0 lib/browser/platform/windows.rb
browser-2.7.1 lib/browser/platform/windows.rb
browser-2.7.0 lib/browser/platform/windows.rb
browser-2.6.1 lib/browser/platform/windows.rb
browser-2.6.0 lib/browser/platform/windows.rb
browser-2.5.3 lib/browser/platform/windows.rb
browser-2.5.2 lib/browser/platform/windows.rb
browser-2.5.1 lib/browser/platform/windows.rb
browser-2.5.0 lib/browser/platform/windows.rb
browser-2.4.0 lib/browser/platform/windows.rb