class Browser::Safari
Public Instance Methods
full_version()
click to toggle source
# File lib/browser/safari.rb, line 13 def full_version ua[%r{Version/([\d.]+)}, 1] || ua[%r{Safari/([\d.]+)}, 1] || ua[%r{AppleWebKit/([\d.]+)}, 1] || "0.0" end
id()
click to toggle source
# File lib/browser/safari.rb, line 5 def id :safari end
match?()
click to toggle source
# File lib/browser/safari.rb, line 20 def match? ua.include?("Safari") && !ua.match?(/PhantomJS|FxiOS/) && !edge? && !chrome? && !opera? && !samsung_browser? && !huawei_browser? && !miui_browser? && !duck_duck_go? && !yandex? && !sputnik? && !maxthon? && !qq? && !alipay? && !sougou_browser? && !google_search_app? end
name()
click to toggle source
# File lib/browser/safari.rb, line 9 def name "Safari" end