Module: Brauser::BrowserMethods::Querying
- Included in:
- Brauser::Browser
- Defined in:
- lib/brauser/browser.rb
Overview
Methods to end querying.
Instance Method Summary (collapse)
-
- (Boolean) accepts?(langs = [])
Check if the browser accepts the specified languages.
-
- (Boolean) is?(names = [], versions = {}, platforms = [])
Checks if the browser is a specific name and optionally of a specific version and platform.
-
- (Boolean) on?(platforms = [])
Check if the browser is on a specific platform.
-
- (Boolean) v?(versions = {})
Checks if the browser is a specific version.
Instance Method Details
- (Boolean) accepts?(langs = [])
Check if the browser accepts the specified languages.
706 707 708 |
# File 'lib/brauser/browser.rb', line 706 def accepts?(langs = []) self.accepts(langs).result end |
- (Boolean) is?(names = [], versions = {}, platforms = [])
Checks if the browser is a specific name and optionally of a specific version and platform.
682 683 684 |
# File 'lib/brauser/browser.rb', line 682 def is?(names = [], versions = {}, platforms = []) self.is(names, versions, platforms).result end |
- (Boolean) on?(platforms = [])
Check if the browser is on a specific platform.
698 699 700 |
# File 'lib/brauser/browser.rb', line 698 def on?(platforms = []) self.on(platforms).result end |
- (Boolean) v?(versions = {})
Checks if the browser is a specific version.
690 691 692 |
# File 'lib/brauser/browser.rb', line 690 def v?(versions = {}) self.v(versions).result end |