class DeviceDetector::Browser
Constants
- AVAILABLE_BROWSERS
- BROWSER_FULL_TO_SHORT
- KNOWN_BROWSER_TO_NAME
- MOBILE_ONLY_BROWSERS
- NAME_TO_KNOWN_BROWSERS
Public Class Methods
mobile_only_browser?(name)
click to toggle source
# File lib/device_detector/browser.rb, line 684 def self.mobile_only_browser?(name) return true if MOBILE_ONLY_BROWSERS.include?(name) short = BROWSER_FULL_TO_SHORT[name] MOBILE_ONLY_BROWSERS.include?(short) end