Sha256: a30ca42e468174917824602d732403b76eaaebf877e4aab4819a14c6a33d9c14

Contents?: true

Size: 294 Bytes

Versions: 6

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true
module Browser
  class Opera < Base
    def id
      :opera
    end

    def name
      "Opera"
    end

    def full_version
      ua[%r[OPR/([\d.]+)], 1] || ua[%r[Version/([\d.]+)], 1] || "0.0"
    end

    def match?
      ua =~ /(Opera|OPR)/
    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/opera.rb
browser-2.3.0 lib/browser/opera.rb
browser-2.2.0 lib/browser/opera.rb
browser-2.1.0 lib/browser/opera.rb
browser-2.0.3 lib/browser/opera.rb
browser-2.0.2 lib/browser/opera.rb