Module: Brauser::Chainers
- Included in:
- Query
- Defined in:
- lib/brauser/query.rb
Overview
Methods to chain queries.
Instance Method Summary (collapse)
-
- (Query) accepts(langs = [])
Check if the browser accepts the specified languages.
-
- (Query) is(names = [], versions = {}, platforms = [])
Checks if the browser is a specific name and optionally of a specific version and platform.
-
- (Query) on(platforms = [])
Check if the browser is on a specific platform.
-
- (Query) v(versions = {})
Checks if the browser is a specific version.
Instance Method Details
- (Query) accepts(langs = [])
Check if the browser accepts the specified languages.
48 49 50 51 |
# File 'lib/brauser/query.rb', line 48 def accepts(langs = []) @result = accepts?(langs) self end |
- (Query) is(names = [], versions = {}, platforms = [])
Checks if the browser is a specific name and optionally of a specific version and platform.
20 21 22 23 |
# File 'lib/brauser/query.rb', line 20 def is(names = [], versions = {}, platforms = []) @result = is?(names, versions, platforms) self end |
- (Query) on(platforms = [])
Check if the browser is on a specific platform.
39 40 41 42 |
# File 'lib/brauser/query.rb', line 39 def on(platforms = []) @result = on?(platforms) self end |
- (Query) v(versions = {})
Checks if the browser is a specific version.
30 31 32 33 |
# File 'lib/brauser/query.rb', line 30 def v(versions = {}) @result = v?(versions) self end |