Sha256: 7c3ad43c30b9e824a9ab2a82d7db63b9c92092b473f2e89c3418f9931b6a588e

Contents?: true

Size: 320 Bytes

Versions: 3

Compression:

Stored size: 320 Bytes

Contents

# frozen_string_literal: true
module Browser
  class QQ < Base
    def id
      :qq
    end

    def name
      "QQ Browser"
    end

    def full_version
      ua[%r[(?:Mobile MQQBrowser)/([\d.]+)]i, 1] ||
        ua[%r[(?:QQ)/([\d.]+)]i, 1] ||
        "0.0"
    end

    def match?
      ua =~ /QQ/i
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/lib/browser/qq.rb
browser-2.3.0 lib/browser/qq.rb
browser-2.2.0 lib/browser/qq.rb