Sha256: 74ffca197fd3370cd6d309245d73512e650470922d0b0d5842c570393dea39d9

Contents?: true

Size: 316 Bytes

Versions: 18

Compression:

Stored size: 316 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Platform
    class ChromeOS < Base
      def match?
        ua =~ /CrOS/
      end

      def name
        "Chrome OS"
      end

      def id
        :chrome_os
      end

      def version
        ua[/CrOS(?: x86_64)? ([\d.]+)/, 1]
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

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