Sha256: c74a7db24297a87535d1b1604f2e71b369a2357531b7b858c2b08fa1bd65a1bf

Contents?: true

Size: 285 Bytes

Versions: 6

Compression:

Stored size: 285 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

6 entries across 6 versions & 2 rubygems

Version Path
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/browser-2.3.0/lib/browser/firefox.rb
browser-2.3.0 lib/browser/firefox.rb
browser-2.2.0 lib/browser/firefox.rb
browser-2.1.0 lib/browser/firefox.rb
browser-2.0.3 lib/browser/firefox.rb
browser-2.0.2 lib/browser/firefox.rb