Sha256: 41642a5fda37cd756cde6fccf586cba04b95c0386fafcf1842a0fd7058b25c43

Contents?: true

Size: 303 Bytes

Versions: 6

Compression:

Stored size: 303 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.match?(%r{(Opera|OPR/)})
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

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