class Browser::Opera
Public Instance Methods
full_version()
click to toggle source
# File lib/browser/opera.rb, line 13 def full_version ua[%r{OPR/([\d.]+)}, 1] || ua[%r{Version/([\d.]+)}, 1] || "0.0" end
id()
click to toggle source
# File lib/browser/opera.rb, line 5 def id :opera end
match?()
click to toggle source
# File lib/browser/opera.rb, line 17 def match? ua.match?(%r{(Opera|OPR/)}) end
name()
click to toggle source
# File lib/browser/opera.rb, line 9 def name "Opera" end