Module: Brauser::BrowserMethods::Querying
- Included in:
- Brauser::Browser
- Defined in:
- lib/brauser/browser.rb
Overview
Methods to end querying.
Instance Method Summary collapse
-
#accepts?(langs = []) ⇒ Boolean
Check if the browser accepts the specified languages.
-
#is?(names = [], versions = {}, platforms = []) ⇒ Boolean
Checks if the browser is a specific name and optionally of a specific version and platform.
-
#on?(platforms = []) ⇒ Boolean
Check if the browser is on a specific platform.
-
#v?(versions = {}) ⇒ Boolean
Checks if the browser is a specific version.
Instance Method Details
#accepts?(langs = []) ⇒ Boolean
Check if the browser accepts the specified languages.
634 635 636 |
# File 'lib/brauser/browser.rb', line 634 def accepts?(langs = []) accepts(langs).result end |
#is?(names = [], versions = {}, platforms = []) ⇒ Boolean
Checks if the browser is a specific name and optionally of a specific version and platform.
610 611 612 |
# File 'lib/brauser/browser.rb', line 610 def is?(names = [], versions = {}, platforms = []) is(names, versions, platforms).result end |
#on?(platforms = []) ⇒ Boolean
Check if the browser is on a specific platform.
626 627 628 |
# File 'lib/brauser/browser.rb', line 626 def on?(platforms = []) on(platforms).result end |
#v?(versions = {}) ⇒ Boolean
Checks if the browser is a specific version.
618 619 620 |
# File 'lib/brauser/browser.rb', line 618 def v?(versions = {}) v(versions).result end |