abstract class Browser::Base
- Browser::Base
- Reference
- Object
Included Modules
Direct Known Subclasses
- Browser::Alipay
- Browser::BlackBerry
- Browser::Chrome
- Browser::DuckDuckGo
- Browser::Electron
- Browser::Facebook
- Browser::Firefox
- Browser::Instagram
- Browser::InternetExplorer
- Browser::MicroMessenger
- Browser::Nokia
- Browser::Opera
- Browser::Otter
- Browser::PhantomJS
- Browser::QQ
- Browser::Safari
- Browser::Snapchat
- Browser::Sputnik
- Browser::UCBrowser
- Browser::Unknown
- Browser::Weibo
- Browser::Yandex
Defined in:
browser/base.crConstructors
Instance Method Summary
-
#accept_language : Array(AcceptLanguage)
Return an array with all preferred languages that this browser accepts.
- #adobe_air?
- #alipay?(expected_version = nil)
- #android?
- #blackberry?
- #blackberry_playbook?
-
#bot
Return the bot info.
-
#bot?
Detect if current user agent is from a bot.
-
#chrome?(expected_version = nil)
Detect if browser is Chrome.
- #chrome_os?
- #compatibility_view?
- #console?
-
#core_media?(expected_version = nil)
Detect if browser is Apple CoreMedia.
-
#device
Return the device info.
-
#duck_duck_go?(expected_version = nil)
Detect if browser is DuckDuckGo.
-
#edge?(expected_version = nil)
Detect if browser is Microsoft Edge.
-
#electron?(expected_version = nil)
Detect if the browser is Electron.
-
#facebook?(expected_version = nil)
Detect if browser if Facebook.
-
#firefox?(expected_version = nil)
Detect if browser is Firefox.
- #firefox_os?
- #full_version : String
- #id : String
-
#ie?(expected_version = nil)
Detect if browser is Microsoft Internet Explorer.
-
#instagram?(expected_version = nil)
Detect if browser is Instagram.
- #ios?
- #ios_app?
- #ios_webview?
- #ipad?
- #iphone?
- #ipod_touch?
- #kindle?
- #kindle_fire?
- #known?
- #linux?
- #mac?
- #match? : Bool
-
#meta
Return a meta info about this browser.
-
#micro_messenger?(expected_version = nil)
Detect if browser is MicroMessenger.
- #mobile?
- #msie_full_version
- #msie_version
- #name : String
- #nintendo?
- #nintendo_switch?
- #nintendo_wii?
- #nintendo_wiiu?
-
#nokia?(expected_version = nil)
Detect if browser is Nokia S40 Ovi Browser.
-
#opera?(expected_version = nil)
Detect if browser is Opera.
-
#opera_mini?(expected_version = nil)
Detect if browser is Opera Mini.
-
#otter?(expected_version = nil)
Detect if browser is Otter.
-
#phantom_js?(expected_version = nil)
Detect if browser is PhantomJS
-
#platform
Return the platform.
- #playbook?
- #playstation3?
- #playstation4?
- #playstation?
- #playstation_vita?
-
#proxy?
Detect if browser is a proxy browser.
- #ps3?
- #ps4?
- #psp?
- #psp_vita?
-
#quicktime?(expected_version = nil)
Detect if browser is QuickTime
-
#safari?(expected_version = nil)
Detect if browser is Safari.
- #safari_webapp_mode?
-
#samsung_browser?(expected_version = nil)
Detect if browser is Samsung.
- #silk?
-
#snapchat?(expected_version = nil)
Detect if browser is Snapchat.
-
#sputnik?(expected_version = nil)
Detect if browser is Sputnik.
- #surface?
- #tablet?
- #to_a
-
#to_s
Return meta representation as string.
- #tv?
- #ua : String
-
#uc_browser?(expected_version = nil)
Detect if browser is UCBrowser.
- #unknown?
- #version
- #vita?
-
#webkit?(expected_version = nil)
Detect if browser is WebKit-based.
- #webkit_full_version
-
#wechat?
Detect if browser is MicroMessenger.
- #weibo?(expected_version = nil)
- #wii?
- #wiiu?
- #windows10?
- #windows7?
- #windows8?
- #windows8_1?
- #windows?
- #windows_mobile?
- #windows_phone?
- #windows_rt?
- #windows_touchscreen_desktop?
- #windows_vista?
- #windows_wow64?
- #windows_x64?
- #windows_x64_inclusive?
- #windows_xp?
- #xbox?
- #xbox_360?
- #xbox_one?
-
#yandex?(expected_version = nil)
Detect if browser is Yandex.
- #yandex_browser?
Constructor Detail
Instance Method Detail
Return an array with all preferred languages that this browser accepts.