brauser 4.1.2 → 4.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.rubocop.yml +6 -1
- data/.travis-gemfile +2 -2
- data/.travis.yml +5 -3
- data/.yardopts +1 -1
- data/Gemfile +1 -1
- data/LICENSE.md +21 -0
- data/README.md +20 -22
- data/Rakefile +1 -1
- data/brauser.gemspec +2 -2
- data/default_definitions/browsers.rb +1 -1
- data/default_definitions/languages.rb +1 -1
- data/default_definitions/platforms.rb +1 -1
- data/{doc → docs}/Brauser.html +1 -1
- data/docs/Brauser/Browser.html +5542 -0
- data/{doc → docs}/Brauser/Definitions.html +23 -27
- data/{doc → docs}/Brauser/Definitions/Base.html +14 -16
- data/docs/Brauser/Definitions/Browser.html +1031 -0
- data/{doc → docs}/Brauser/Definitions/Language.html +35 -38
- data/{doc → docs}/Brauser/Definitions/Platform.html +67 -71
- data/{doc → docs}/Brauser/Hooks.html +1 -1
- data/{doc → docs}/Brauser/Hooks/RubyOnRails.html +8 -10
- data/{doc → docs}/Brauser/Parser.html +22 -25
- data/{doc → docs}/Brauser/Value.html +38 -42
- data/{doc → docs}/Brauser/Version.html +5 -9
- data/{doc → docs}/_index.html +1 -1
- data/{doc → docs}/class_list.html +0 -0
- data/{doc → docs}/css/common.css +0 -0
- data/{doc → docs}/css/full_list.css +0 -0
- data/{doc → docs}/css/style.css +0 -0
- data/{doc → docs}/file.README.html +9 -7
- data/{doc → docs}/file_list.html +0 -0
- data/{doc → docs}/frames.html +0 -0
- data/{doc → docs}/index.html +9 -7
- data/{doc → docs}/js/app.js +0 -0
- data/{doc → docs}/js/full_list.js +0 -0
- data/{doc → docs}/js/jquery.js +0 -0
- data/{doc → docs}/method_list.html +0 -0
- data/{doc → docs}/top-level-namespace.html +1 -1
- data/lib/brauser.rb +1 -1
- data/lib/brauser/browser.rb +1 -1
- data/lib/brauser/definitions/base.rb +1 -1
- data/lib/brauser/definitions/browser.rb +1 -1
- data/lib/brauser/definitions/language.rb +1 -1
- data/lib/brauser/definitions/platform.rb +1 -1
- data/lib/brauser/hooks.rb +1 -1
- data/lib/brauser/parser.rb +1 -1
- data/lib/brauser/value.rb +1 -1
- data/lib/brauser/version.rb +2 -2
- data/spec/brauser/browser_spec.rb +1 -1
- data/spec/brauser/default_definitions_spec.rb +1 -1
- data/spec/brauser/definitions/base_spec.rb +1 -1
- data/spec/brauser/definitions/browser_spec.rb +1 -1
- data/spec/brauser/definitions/language_spec.rb +1 -1
- data/spec/brauser/definitions/platform_spec.rb +1 -1
- data/spec/brauser/hooks_spec.rb +1 -1
- data/spec/brauser/parser_spec.rb +1 -1
- data/spec/brauser/value_spec.rb +1 -1
- data/spec/coverage_helper.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +30 -46
- data/doc/Brauser/Browseable.html +0 -127
- data/doc/Brauser/Browseable/Attributes.html +0 -489
- data/doc/Brauser/Browseable/DefaultDefinitions.html +0 -389
- data/doc/Brauser/Browseable/General.html +0 -134
- data/doc/Brauser/Browseable/General/ClassMethods.html +0 -529
- data/doc/Brauser/Browseable/Parsing.html +0 -350
- data/doc/Brauser/Browseable/PartialQuerying.html +0 -625
- data/doc/Brauser/Browseable/Querying.html +0 -694
- data/doc/Brauser/Browseable/Register.html +0 -134
- data/doc/Brauser/Browseable/Register/ClassMethods.html +0 -516
- data/doc/Brauser/Browser.html +0 -5557
- data/doc/Brauser/Definition.html +0 -1235
- data/doc/Brauser/Definitions/Browser.html +0 -1036
- data/doc/Brauser/Query.html +0 -512
- data/doc/Brauser/Queryable.html +0 -127
- data/doc/Brauser/Queryable/Chainers.html +0 -598
- data/doc/Brauser/Queryable/Queries.html +0 -598
data/doc/Brauser/Queryable.html
DELETED
@@ -1,127 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Brauser::Queryable
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.4
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Brauser/Queryable.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../_index.html">Index (Q)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../Brauser.html" title="Brauser (module)">Brauser</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Queryable</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Brauser::Queryable
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
<dt class="r1 last">Defined in:</dt>
|
82
|
-
<dd class="r1 last">lib/brauser/queryable/queries.rb<span class="defines">,<br />
|
83
|
-
lib/brauser/queryable/chainers.rb</span>
|
84
|
-
</dd>
|
85
|
-
|
86
|
-
</dl>
|
87
|
-
<div class="clear"></div>
|
88
|
-
|
89
|
-
<h2>Overview</h2><div class="docstring">
|
90
|
-
<div class="discussion">
|
91
|
-
<p>The interface of brauser queries.</p>
|
92
|
-
|
93
|
-
|
94
|
-
</div>
|
95
|
-
</div>
|
96
|
-
<div class="tags">
|
97
|
-
|
98
|
-
|
99
|
-
</div><h2>Defined Under Namespace</h2>
|
100
|
-
<p class="children">
|
101
|
-
|
102
|
-
|
103
|
-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="Queryable/Chainers.html" title="Brauser::Queryable::Chainers (module)">Chainers</a></span>, <span class='object_link'><a href="Queryable/Queries.html" title="Brauser::Queryable::Queries (module)">Queries</a></span>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
</p>
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
</div>
|
119
|
-
|
120
|
-
<div id="footer">
|
121
|
-
Generated on Thu May 22 12:11:27 2014 by
|
122
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
123
|
-
0.8.7.4 (ruby-2.1.2).
|
124
|
-
</div>
|
125
|
-
|
126
|
-
</body>
|
127
|
-
</html>
|
@@ -1,598 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>
|
7
|
-
Module: Brauser::Queryable::Chainers
|
8
|
-
|
9
|
-
— Documentation by YARD 0.8.7.4
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
hasFrames = window.top.frames.main ? true : false;
|
19
|
-
relpath = '../../';
|
20
|
-
framesUrl = "../../frames.html#!Brauser/Queryable/Chainers.html";
|
21
|
-
</script>
|
22
|
-
|
23
|
-
|
24
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
25
|
-
|
26
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
27
|
-
|
28
|
-
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="header">
|
32
|
-
<div id="menu">
|
33
|
-
|
34
|
-
<a href="../../_index.html">Index (C)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> » <span class='title'><span class='object_link'><a href="../Queryable.html" title="Brauser::Queryable (module)">Queryable</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Chainers</span>
|
38
|
-
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
-
</div>
|
42
|
-
|
43
|
-
<div id="search">
|
44
|
-
|
45
|
-
<a class="full_list_link" id="class_list_link"
|
46
|
-
href="../../class_list.html">
|
47
|
-
Class List
|
48
|
-
</a>
|
49
|
-
|
50
|
-
<a class="full_list_link" id="method_list_link"
|
51
|
-
href="../../method_list.html">
|
52
|
-
Method List
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../../file_list.html">
|
57
|
-
File List
|
58
|
-
</a>
|
59
|
-
|
60
|
-
</div>
|
61
|
-
<div class="clear"></div>
|
62
|
-
</div>
|
63
|
-
|
64
|
-
<iframe id="search_frame"></iframe>
|
65
|
-
|
66
|
-
<div id="content"><h1>Module: Brauser::Queryable::Chainers
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
<dt class="r1">Included in:</dt>
|
81
|
-
<dd class="r1"><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Brauser::Query</a></span></dd>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
<dt class="r2 last">Defined in:</dt>
|
86
|
-
<dd class="r2 last">lib/brauser/queryable/chainers.rb</dd>
|
87
|
-
|
88
|
-
</dl>
|
89
|
-
<div class="clear"></div>
|
90
|
-
|
91
|
-
<h2>Overview</h2><div class="docstring">
|
92
|
-
<div class="discussion">
|
93
|
-
<p>Methods to chain queries.</p>
|
94
|
-
|
95
|
-
|
96
|
-
</div>
|
97
|
-
</div>
|
98
|
-
<div class="tags">
|
99
|
-
|
100
|
-
|
101
|
-
</div>
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
<h2>
|
110
|
-
Instance Method Summary
|
111
|
-
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
112
|
-
</h2>
|
113
|
-
|
114
|
-
<ul class="summary">
|
115
|
-
|
116
|
-
<li class="public ">
|
117
|
-
<span class="summary_signature">
|
118
|
-
|
119
|
-
<a href="#accepts-instance_method" title="#accepts (instance method)">- (Query) <strong>accepts</strong>(langs = []) </a>
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
</span>
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
<span class="summary_desc"><div class='inline'><p>Check if the browser accepts the specified languages.</p>
|
134
|
-
</div></span>
|
135
|
-
|
136
|
-
</li>
|
137
|
-
|
138
|
-
|
139
|
-
<li class="public ">
|
140
|
-
<span class="summary_signature">
|
141
|
-
|
142
|
-
<a href="#is-instance_method" title="#is (instance method)">- (Query) <strong>is</strong>(names = [], versions = {}, platforms = []) </a>
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
</span>
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<span class="summary_desc"><div class='inline'><p>Checks if the browser is a specific name and optionally of a specific version and platform.</p>
|
157
|
-
</div></span>
|
158
|
-
|
159
|
-
</li>
|
160
|
-
|
161
|
-
|
162
|
-
<li class="public ">
|
163
|
-
<span class="summary_signature">
|
164
|
-
|
165
|
-
<a href="#on-instance_method" title="#on (instance method)">- (Query) <strong>on</strong>(platforms = []) </a>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
</span>
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
<span class="summary_desc"><div class='inline'><p>Check if the browser is on a specific platform.</p>
|
180
|
-
</div></span>
|
181
|
-
|
182
|
-
</li>
|
183
|
-
|
184
|
-
|
185
|
-
<li class="public ">
|
186
|
-
<span class="summary_signature">
|
187
|
-
|
188
|
-
<a href="#version-instance_method" title="#version (instance method)">- (Query) <strong>version</strong>(versions = {}) </a>
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
(also: #v)
|
193
|
-
|
194
|
-
</span>
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
<span class="summary_desc"><div class='inline'><p>Checks if the browser is a specific version.</p>
|
205
|
-
</div></span>
|
206
|
-
|
207
|
-
</li>
|
208
|
-
|
209
|
-
|
210
|
-
</ul>
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
<div id="instance_method_details" class="method_details_list">
|
216
|
-
<h2>Instance Method Details</h2>
|
217
|
-
|
218
|
-
|
219
|
-
<div class="method_details first">
|
220
|
-
<h3 class="signature first" id="accepts-instance_method">
|
221
|
-
|
222
|
-
- (<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>) <strong>accepts</strong>(langs = [])
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
</h3><div class="docstring">
|
229
|
-
<div class="discussion">
|
230
|
-
<p>Check if the browser accepts the specified languages.</p>
|
231
|
-
|
232
|
-
|
233
|
-
</div>
|
234
|
-
</div>
|
235
|
-
<div class="tags">
|
236
|
-
<p class="tag_title">Parameters:</p>
|
237
|
-
<ul class="param">
|
238
|
-
|
239
|
-
<li>
|
240
|
-
|
241
|
-
<span class='name'>langs</span>
|
242
|
-
|
243
|
-
|
244
|
-
<span class='type'>(<tt>String|Array</tt>)</span>
|
245
|
-
|
246
|
-
|
247
|
-
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
248
|
-
|
249
|
-
|
250
|
-
—
|
251
|
-
<div class='inline'><p>A list of languages to match against.</p>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
</li>
|
255
|
-
|
256
|
-
</ul>
|
257
|
-
|
258
|
-
<p class="tag_title">Returns:</p>
|
259
|
-
<ul class="return">
|
260
|
-
|
261
|
-
<li>
|
262
|
-
|
263
|
-
|
264
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>)</span>
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
—
|
269
|
-
<div class='inline'><p>The query itself.</p>
|
270
|
-
</div>
|
271
|
-
|
272
|
-
</li>
|
273
|
-
|
274
|
-
</ul>
|
275
|
-
|
276
|
-
</div><table class="source_code">
|
277
|
-
<tr>
|
278
|
-
<td>
|
279
|
-
<pre class="lines">
|
280
|
-
|
281
|
-
|
282
|
-
50
|
283
|
-
51
|
284
|
-
52
|
285
|
-
53</pre>
|
286
|
-
</td>
|
287
|
-
<td>
|
288
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/queryable/chainers.rb', line 50</span>
|
289
|
-
|
290
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_accepts'>accepts</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
291
|
-
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_accepts?'>accepts?</span><span class='lparen'>(</span><span class='id identifier rubyid_langs'>langs</span><span class='rparen'>)</span>
|
292
|
-
<span class='kw'>self</span>
|
293
|
-
<span class='kw'>end</span></pre>
|
294
|
-
</td>
|
295
|
-
</tr>
|
296
|
-
</table>
|
297
|
-
</div>
|
298
|
-
|
299
|
-
<div class="method_details ">
|
300
|
-
<h3 class="signature " id="is-instance_method">
|
301
|
-
|
302
|
-
- (<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>) <strong>is</strong>(names = [], versions = {}, platforms = [])
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
</h3><div class="docstring">
|
309
|
-
<div class="discussion">
|
310
|
-
<p>Checks if the browser is a specific name and optionally of a specific version and platform.</p>
|
311
|
-
|
312
|
-
|
313
|
-
</div>
|
314
|
-
</div>
|
315
|
-
<div class="tags">
|
316
|
-
<p class="tag_title">Parameters:</p>
|
317
|
-
<ul class="param">
|
318
|
-
|
319
|
-
<li>
|
320
|
-
|
321
|
-
<span class='name'>names</span>
|
322
|
-
|
323
|
-
|
324
|
-
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
325
|
-
|
326
|
-
|
327
|
-
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
328
|
-
|
329
|
-
|
330
|
-
—
|
331
|
-
<div class='inline'><p>A list of specific names to match. Also, this meta-names are supported: <code>:capable</code> and <code>:tablet</code>.</p>
|
332
|
-
</div>
|
333
|
-
|
334
|
-
</li>
|
335
|
-
|
336
|
-
<li>
|
337
|
-
|
338
|
-
<span class='name'>versions</span>
|
339
|
-
|
340
|
-
|
341
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
342
|
-
|
343
|
-
|
344
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
345
|
-
|
346
|
-
|
347
|
-
—
|
348
|
-
<div class='inline'><p>An hash with specific version to match against. Need to be in any form that <span class='object_link'><a href="#v-instance_method" title="Brauser::Queryable::Chainers#v (method)">#v</a></span> understands.</p>
|
349
|
-
</div>
|
350
|
-
|
351
|
-
</li>
|
352
|
-
|
353
|
-
<li>
|
354
|
-
|
355
|
-
<span class='name'>platforms</span>
|
356
|
-
|
357
|
-
|
358
|
-
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
359
|
-
|
360
|
-
|
361
|
-
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
362
|
-
|
363
|
-
|
364
|
-
—
|
365
|
-
<div class='inline'><p>A list of specific platform to match. Valid values are all those possible for the platform attribute.</p>
|
366
|
-
</div>
|
367
|
-
|
368
|
-
</li>
|
369
|
-
|
370
|
-
</ul>
|
371
|
-
|
372
|
-
<p class="tag_title">Returns:</p>
|
373
|
-
<ul class="return">
|
374
|
-
|
375
|
-
<li>
|
376
|
-
|
377
|
-
|
378
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>)</span>
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
—
|
383
|
-
<div class='inline'><p>The query itself.</p>
|
384
|
-
</div>
|
385
|
-
|
386
|
-
</li>
|
387
|
-
|
388
|
-
</ul>
|
389
|
-
|
390
|
-
<p class="tag_title">See Also:</p>
|
391
|
-
<ul class="see">
|
392
|
-
|
393
|
-
<li>#version?</li>
|
394
|
-
|
395
|
-
<li>#on?</li>
|
396
|
-
|
397
|
-
</ul>
|
398
|
-
|
399
|
-
</div><table class="source_code">
|
400
|
-
<tr>
|
401
|
-
<td>
|
402
|
-
<pre class="lines">
|
403
|
-
|
404
|
-
|
405
|
-
21
|
406
|
-
22
|
407
|
-
23
|
408
|
-
24</pre>
|
409
|
-
</td>
|
410
|
-
<td>
|
411
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/queryable/chainers.rb', line 21</span>
|
412
|
-
|
413
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_is'>is</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
414
|
-
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_is?'>is?</span><span class='lparen'>(</span><span class='id identifier rubyid_names'>names</span><span class='comma'>,</span> <span class='id identifier rubyid_versions'>versions</span><span class='comma'>,</span> <span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span>
|
415
|
-
<span class='kw'>self</span>
|
416
|
-
<span class='kw'>end</span></pre>
|
417
|
-
</td>
|
418
|
-
</tr>
|
419
|
-
</table>
|
420
|
-
</div>
|
421
|
-
|
422
|
-
<div class="method_details ">
|
423
|
-
<h3 class="signature " id="on-instance_method">
|
424
|
-
|
425
|
-
- (<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>) <strong>on</strong>(platforms = [])
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
</h3><div class="docstring">
|
432
|
-
<div class="discussion">
|
433
|
-
<p>Check if the browser is on a specific platform.</p>
|
434
|
-
|
435
|
-
|
436
|
-
</div>
|
437
|
-
</div>
|
438
|
-
<div class="tags">
|
439
|
-
<p class="tag_title">Parameters:</p>
|
440
|
-
<ul class="param">
|
441
|
-
|
442
|
-
<li>
|
443
|
-
|
444
|
-
<span class='name'>platforms</span>
|
445
|
-
|
446
|
-
|
447
|
-
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
448
|
-
|
449
|
-
|
450
|
-
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
451
|
-
|
452
|
-
|
453
|
-
—
|
454
|
-
<div class='inline'><p>A list of specific platform to match.</p>
|
455
|
-
</div>
|
456
|
-
|
457
|
-
</li>
|
458
|
-
|
459
|
-
</ul>
|
460
|
-
|
461
|
-
<p class="tag_title">Returns:</p>
|
462
|
-
<ul class="return">
|
463
|
-
|
464
|
-
<li>
|
465
|
-
|
466
|
-
|
467
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>)</span>
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
—
|
472
|
-
<div class='inline'><p>The query itself.</p>
|
473
|
-
</div>
|
474
|
-
|
475
|
-
</li>
|
476
|
-
|
477
|
-
</ul>
|
478
|
-
|
479
|
-
</div><table class="source_code">
|
480
|
-
<tr>
|
481
|
-
<td>
|
482
|
-
<pre class="lines">
|
483
|
-
|
484
|
-
|
485
|
-
41
|
486
|
-
42
|
487
|
-
43
|
488
|
-
44</pre>
|
489
|
-
</td>
|
490
|
-
<td>
|
491
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/queryable/chainers.rb', line 41</span>
|
492
|
-
|
493
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_on'>on</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
494
|
-
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_on?'>on?</span><span class='lparen'>(</span><span class='id identifier rubyid_platforms'>platforms</span><span class='rparen'>)</span>
|
495
|
-
<span class='kw'>self</span>
|
496
|
-
<span class='kw'>end</span></pre>
|
497
|
-
</td>
|
498
|
-
</tr>
|
499
|
-
</table>
|
500
|
-
</div>
|
501
|
-
|
502
|
-
<div class="method_details ">
|
503
|
-
<h3 class="signature " id="version-instance_method">
|
504
|
-
|
505
|
-
- (<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>) <strong>version</strong>(versions = {})
|
506
|
-
|
507
|
-
|
508
|
-
|
509
|
-
<span class="aliases">Also known as:
|
510
|
-
<span class="names"><span id='v-instance_method'>v</span></span>
|
511
|
-
</span>
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
</h3><div class="docstring">
|
516
|
-
<div class="discussion">
|
517
|
-
<p>Checks if the browser is a specific version.</p>
|
518
|
-
|
519
|
-
|
520
|
-
</div>
|
521
|
-
</div>
|
522
|
-
<div class="tags">
|
523
|
-
<p class="tag_title">Parameters:</p>
|
524
|
-
<ul class="param">
|
525
|
-
|
526
|
-
<li>
|
527
|
-
|
528
|
-
<span class='name'>versions</span>
|
529
|
-
|
530
|
-
|
531
|
-
<span class='type'>(<tt>String|Hash</tt>)</span>
|
532
|
-
|
533
|
-
|
534
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
535
|
-
|
536
|
-
|
537
|
-
—
|
538
|
-
<div class='inline'><p>A string in the form <code>operator version && ...</code> (example: <code>>= 7 && < 4</code>) or an hash with specific version to match against,
|
539
|
-
in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
540
|
-
</div>
|
541
|
-
|
542
|
-
</li>
|
543
|
-
|
544
|
-
</ul>
|
545
|
-
|
546
|
-
<p class="tag_title">Returns:</p>
|
547
|
-
<ul class="return">
|
548
|
-
|
549
|
-
<li>
|
550
|
-
|
551
|
-
|
552
|
-
<span class='type'>(<tt><span class='object_link'><a href="../Query.html" title="Brauser::Query (class)">Query</a></span></tt>)</span>
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
—
|
557
|
-
<div class='inline'><p>The query itself.</p>
|
558
|
-
</div>
|
559
|
-
|
560
|
-
</li>
|
561
|
-
|
562
|
-
</ul>
|
563
|
-
|
564
|
-
</div><table class="source_code">
|
565
|
-
<tr>
|
566
|
-
<td>
|
567
|
-
<pre class="lines">
|
568
|
-
|
569
|
-
|
570
|
-
31
|
571
|
-
32
|
572
|
-
33
|
573
|
-
34</pre>
|
574
|
-
</td>
|
575
|
-
<td>
|
576
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/queryable/chainers.rb', line 31</span>
|
577
|
-
|
578
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_version'>version</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
579
|
-
<span class='ivar'>@result</span> <span class='op'>=</span> <span class='id identifier rubyid_version?'>version?</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span><span class='rparen'>)</span>
|
580
|
-
<span class='kw'>self</span>
|
581
|
-
<span class='kw'>end</span></pre>
|
582
|
-
</td>
|
583
|
-
</tr>
|
584
|
-
</table>
|
585
|
-
</div>
|
586
|
-
|
587
|
-
</div>
|
588
|
-
|
589
|
-
</div>
|
590
|
-
|
591
|
-
<div id="footer">
|
592
|
-
Generated on Thu May 22 12:11:27 2014 by
|
593
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
594
|
-
0.8.7.4 (ruby-2.1.2).
|
595
|
-
</div>
|
596
|
-
|
597
|
-
</body>
|
598
|
-
</html>
|