Sha256: d43cbf2b7003c8bf26a5c566ff660dd73f5016c779b160144821069b4986b907
Contents?: true
Size: 295 Bytes
Versions: 2
Compression:
Stored size: 295 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
browser-2.5.0 | lib/browser/opera.rb |
browser-2.4.0 | lib/browser/opera.rb |