Sha256: 79392b5f531afa657979935052221c1c19c171f215526439f8e8a485bf3a5491

Contents?: true

Size: 286 Bytes

Versions: 10

Compression:

Stored size: 286 Bytes

Contents

# frozen_string_literal: true

module Browser
  class Firefox < Base
    def id
      :firefox
    end

    def name
      "Firefox"
    end

    def full_version
      ua[%r{(?:Firefox|FxiOS)/([\d.]+)}, 1] || "0.0"
    end

    def match?
      ua =~ /Firefox|FxiOS/
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
browser-5.1.0 lib/browser/firefox.rb
browser-5.0.0 lib/browser/firefox.rb
browser-4.2.0 lib/browser/firefox.rb
browser-4.1.0 lib/browser/firefox.rb
browser-4.0.0 lib/browser/firefox.rb
browser-3.0.3 lib/browser/firefox.rb
browser-3.0.2 lib/browser/firefox.rb
browser-3.0.1 lib/browser/firefox.rb
browser-3.0.0 lib/browser/firefox.rb
browser-2.7.1 lib/browser/firefox.rb