Sha256: e21f99faf8b9d31a0578d288362b95f5a920f8cd4e7a1046ba8713bcdeabe899

Contents?: true

Size: 291 Bytes

Versions: 6

Compression:

Stored size: 291 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.match?(/Firefox|FxiOS/)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browser-6.2.0 lib/browser/firefox.rb
browser-6.1.0 lib/browser/firefox.rb
browser-6.0.0 lib/browser/firefox.rb
browser-5.3.1 lib/browser/firefox.rb
browser-5.3.0 lib/browser/firefox.rb
browser-5.2.0 lib/browser/firefox.rb