class Browser::Chrome
Public Instance Methods
chromium_based?()
click to toggle source
# File lib/browser/chrome.rb, line 22 def chromium_based? true end
full_version()
click to toggle source
# File lib/browser/chrome.rb, line 13 def full_version # Each regex on its own line to enforce precedence. ua[%r{Chrome/([\d.]+)}, 1] || ua[%r{CriOS/([\d.]+)}, 1] || ua[%r{Safari/([\d.]+)}, 1] || ua[%r{AppleWebKit/([\d.]+)}, 1] || "0.0" end
id()
click to toggle source
# File lib/browser/chrome.rb, line 5 def id :chrome end
match?()
click to toggle source
# File lib/browser/chrome.rb, line 26 def match? ua.match?(/Chrome|CriOS/) && !ua.match?(/PhantomJS|FxiOS|ArchiveBot/) && !opera? && !edge? && !duck_duck_go? && !yandex? && !sputnik? && !samsung_browser? && !huawei_browser? && !miui_browser? && !maxthon? && !qq? && !sougou_browser? && !google_search_app? end
name()
click to toggle source
# File lib/browser/chrome.rb, line 9 def name "Chrome" end