brauser 1.0.7 → 2.0.0
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.
- data/.travis.yml +1 -1
- data/Gemfile +1 -1
- data/README.md +6 -3
- data/Rakefile +1 -1
- data/brauser.gemspec +10 -8
- data/doc/Brauser.html +4 -4
- data/doc/Brauser/Browser.html +1722 -3546
- data/doc/Brauser/BrowserMethods.html +125 -0
- data/doc/Brauser/BrowserMethods/Attributes.html +484 -0
- data/doc/Brauser/BrowserMethods/General.html +134 -0
- data/doc/Brauser/BrowserMethods/General/ClassMethods.html +529 -0
- data/doc/Brauser/BrowserMethods/Parsing.html +350 -0
- data/doc/Brauser/BrowserMethods/PartialQuerying.html +629 -0
- data/doc/Brauser/BrowserMethods/Querying.html +583 -0
- data/doc/Brauser/BrowserMethods/Register.html +134 -0
- data/doc/Brauser/BrowserMethods/Register/ClassMethods.html +1081 -0
- data/doc/Brauser/Hooks.html +3 -3
- data/doc/Brauser/Hooks/RubyOnRails.html +3 -3
- data/doc/Brauser/Query.html +470 -52
- data/doc/Brauser/Version.html +5 -5
- data/doc/_index.html +102 -4
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +11 -8
- data/doc/frames.html +1 -1
- data/doc/index.html +11 -8
- data/doc/method_list.html +61 -61
- data/doc/top-level-namespace.html +3 -3
- data/lib/brauser.rb +1 -1
- data/lib/brauser/browser.rb +725 -674
- data/lib/brauser/hooks.rb +1 -1
- data/lib/brauser/query.rb +6 -4
- data/lib/brauser/version.rb +3 -3
- data/spec/brauser/browser_spec.rb +15 -38
- data/spec/brauser/hooks_spec.rb +1 -1
- data/spec/brauser/query_spec.rb +1 -1
- data/spec/brauser_spec.rb +1 -1
- data/spec/coverage_helper.rb +1 -1
- data/spec/frameworks_helper.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +25 -22
@@ -0,0 +1,583 @@
|
|
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::BrowserMethods::Querying
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.3
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" 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#!" + escape(window.location.href);
|
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> » <span class='title'><span class='object_link'><a href="../BrowserMethods.html" title="Brauser::BrowserMethods (module)">BrowserMethods</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Querying</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::BrowserMethods::Querying
|
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="../Browser.html" title="Brauser::Browser (class)">Brauser::Browser</a></span></dd>
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
<dt class="r2 last">Defined in:</dt>
|
86
|
+
<dd class="r2 last">lib/brauser/browser.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 end querying.</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%3F-instance_method" title="#accepts? (instance method)">- (Boolean) <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%3F-instance_method" title="#is? (instance method)">- (Boolean) <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%3F-instance_method" title="#on? (instance method)">- (Boolean) <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="#v%3F-instance_method" title="#v? (instance method)">- (Boolean) <strong>v?</strong>(versions = {}) </a>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
</span>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<span class="summary_desc"><div class='inline'><p>Checks if the brower is a specific version.</p>
|
203
|
+
</div></span>
|
204
|
+
|
205
|
+
</li>
|
206
|
+
|
207
|
+
|
208
|
+
</ul>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<div id="instance_method_details" class="method_details_list">
|
214
|
+
<h2>Instance Method Details</h2>
|
215
|
+
|
216
|
+
|
217
|
+
<div class="method_details first">
|
218
|
+
<h3 class="signature first" id="accepts?-instance_method">
|
219
|
+
|
220
|
+
- (<tt>Boolean</tt>) <strong>accepts?</strong>(langs = [])
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</h3><div class="docstring">
|
227
|
+
<div class="discussion">
|
228
|
+
<p>Check if the browser accepts the specified languages.</p>
|
229
|
+
|
230
|
+
|
231
|
+
</div>
|
232
|
+
</div>
|
233
|
+
<div class="tags">
|
234
|
+
<p class="tag_title">Parameters:</p>
|
235
|
+
<ul class="param">
|
236
|
+
|
237
|
+
<li>
|
238
|
+
|
239
|
+
<span class='name'>langs</span>
|
240
|
+
|
241
|
+
|
242
|
+
<span class='type'>(<tt>String|Array</tt>)</span>
|
243
|
+
|
244
|
+
|
245
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
246
|
+
|
247
|
+
|
248
|
+
—
|
249
|
+
<div class='inline'><p>A list of languages to match against.</p>
|
250
|
+
</div>
|
251
|
+
|
252
|
+
</li>
|
253
|
+
|
254
|
+
</ul>
|
255
|
+
|
256
|
+
<p class="tag_title">Returns:</p>
|
257
|
+
<ul class="return">
|
258
|
+
|
259
|
+
<li>
|
260
|
+
|
261
|
+
|
262
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
—
|
267
|
+
<div class='inline'><p><code>true</code> if current browser matches, <code>false</code> otherwise.</p>
|
268
|
+
</div>
|
269
|
+
|
270
|
+
</li>
|
271
|
+
|
272
|
+
</ul>
|
273
|
+
|
274
|
+
</div><table class="source_code">
|
275
|
+
<tr>
|
276
|
+
<td>
|
277
|
+
<pre class="lines">
|
278
|
+
|
279
|
+
|
280
|
+
700
|
281
|
+
701
|
282
|
+
702</pre>
|
283
|
+
</td>
|
284
|
+
<td>
|
285
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 700</span>
|
286
|
+
|
287
|
+
<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>
|
288
|
+
<span class='kw'>self</span><span class='period'>.</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><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
289
|
+
<span class='kw'>end</span></pre>
|
290
|
+
</td>
|
291
|
+
</tr>
|
292
|
+
</table>
|
293
|
+
</div>
|
294
|
+
|
295
|
+
<div class="method_details ">
|
296
|
+
<h3 class="signature " id="is?-instance_method">
|
297
|
+
|
298
|
+
- (<tt>Boolean</tt>) <strong>is?</strong>(names = [], versions = {}, platforms = [])
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
|
304
|
+
</h3><div class="docstring">
|
305
|
+
<div class="discussion">
|
306
|
+
<p>Checks if the browser is a specific name and optionally of a specific version and platform.</p>
|
307
|
+
|
308
|
+
|
309
|
+
</div>
|
310
|
+
</div>
|
311
|
+
<div class="tags">
|
312
|
+
<p class="tag_title">Parameters:</p>
|
313
|
+
<ul class="param">
|
314
|
+
|
315
|
+
<li>
|
316
|
+
|
317
|
+
<span class='name'>names</span>
|
318
|
+
|
319
|
+
|
320
|
+
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
321
|
+
|
322
|
+
|
323
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
324
|
+
|
325
|
+
|
326
|
+
—
|
327
|
+
<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>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
</li>
|
331
|
+
|
332
|
+
<li>
|
333
|
+
|
334
|
+
<span class='name'>versions</span>
|
335
|
+
|
336
|
+
|
337
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
338
|
+
|
339
|
+
|
340
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
341
|
+
|
342
|
+
|
343
|
+
—
|
344
|
+
<div class='inline'><p>An hash with specific version to match against. Need to be in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
345
|
+
</div>
|
346
|
+
|
347
|
+
</li>
|
348
|
+
|
349
|
+
<li>
|
350
|
+
|
351
|
+
<span class='name'>platforms</span>
|
352
|
+
|
353
|
+
|
354
|
+
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
355
|
+
|
356
|
+
|
357
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
358
|
+
|
359
|
+
|
360
|
+
—
|
361
|
+
<div class='inline'><p>A list of specific platform to match. Valid values are all those possible for the platform attribute.</p>
|
362
|
+
</div>
|
363
|
+
|
364
|
+
</li>
|
365
|
+
|
366
|
+
</ul>
|
367
|
+
|
368
|
+
<p class="tag_title">Returns:</p>
|
369
|
+
<ul class="return">
|
370
|
+
|
371
|
+
<li>
|
372
|
+
|
373
|
+
|
374
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
—
|
379
|
+
<div class='inline'><p><code>true</code> if current browser matches, <code>false</code> otherwise.</p>
|
380
|
+
</div>
|
381
|
+
|
382
|
+
</li>
|
383
|
+
|
384
|
+
</ul>
|
385
|
+
|
386
|
+
<p class="tag_title">See Also:</p>
|
387
|
+
<ul class="see">
|
388
|
+
|
389
|
+
<li><span class='object_link'><a href="#v%3F-instance_method" title="Brauser::BrowserMethods::Querying#v? (method)">#v?</a></span></li>
|
390
|
+
|
391
|
+
<li><span class='object_link'><a href="#on%3F-instance_method" title="Brauser::BrowserMethods::Querying#on? (method)">#on?</a></span></li>
|
392
|
+
|
393
|
+
</ul>
|
394
|
+
|
395
|
+
</div><table class="source_code">
|
396
|
+
<tr>
|
397
|
+
<td>
|
398
|
+
<pre class="lines">
|
399
|
+
|
400
|
+
|
401
|
+
676
|
402
|
+
677
|
403
|
+
678</pre>
|
404
|
+
</td>
|
405
|
+
<td>
|
406
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 676</span>
|
407
|
+
|
408
|
+
<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>
|
409
|
+
<span class='kw'>self</span><span class='period'>.</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><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
410
|
+
<span class='kw'>end</span></pre>
|
411
|
+
</td>
|
412
|
+
</tr>
|
413
|
+
</table>
|
414
|
+
</div>
|
415
|
+
|
416
|
+
<div class="method_details ">
|
417
|
+
<h3 class="signature " id="on?-instance_method">
|
418
|
+
|
419
|
+
- (<tt>Boolean</tt>) <strong>on?</strong>(platforms = [])
|
420
|
+
|
421
|
+
|
422
|
+
|
423
|
+
|
424
|
+
|
425
|
+
</h3><div class="docstring">
|
426
|
+
<div class="discussion">
|
427
|
+
<p>Check if the browser is on a specific platform.</p>
|
428
|
+
|
429
|
+
|
430
|
+
</div>
|
431
|
+
</div>
|
432
|
+
<div class="tags">
|
433
|
+
<p class="tag_title">Parameters:</p>
|
434
|
+
<ul class="param">
|
435
|
+
|
436
|
+
<li>
|
437
|
+
|
438
|
+
<span class='name'>platforms</span>
|
439
|
+
|
440
|
+
|
441
|
+
<span class='type'>(<tt>Symbol|Array</tt>)</span>
|
442
|
+
|
443
|
+
|
444
|
+
<em class="default">(defaults to: <tt>[]</tt>)</em>
|
445
|
+
|
446
|
+
|
447
|
+
—
|
448
|
+
<div class='inline'><p>A list of specific platform to match.</p>
|
449
|
+
</div>
|
450
|
+
|
451
|
+
</li>
|
452
|
+
|
453
|
+
</ul>
|
454
|
+
|
455
|
+
<p class="tag_title">Returns:</p>
|
456
|
+
<ul class="return">
|
457
|
+
|
458
|
+
<li>
|
459
|
+
|
460
|
+
|
461
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
—
|
466
|
+
<div class='inline'><p><code>true</code> if current browser matches, <code>false</code> otherwise.</p>
|
467
|
+
</div>
|
468
|
+
|
469
|
+
</li>
|
470
|
+
|
471
|
+
</ul>
|
472
|
+
|
473
|
+
</div><table class="source_code">
|
474
|
+
<tr>
|
475
|
+
<td>
|
476
|
+
<pre class="lines">
|
477
|
+
|
478
|
+
|
479
|
+
692
|
480
|
+
693
|
481
|
+
694</pre>
|
482
|
+
</td>
|
483
|
+
<td>
|
484
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 692</span>
|
485
|
+
|
486
|
+
<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>
|
487
|
+
<span class='kw'>self</span><span class='period'>.</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><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
488
|
+
<span class='kw'>end</span></pre>
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
</table>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
<div class="method_details ">
|
495
|
+
<h3 class="signature " id="v?-instance_method">
|
496
|
+
|
497
|
+
- (<tt>Boolean</tt>) <strong>v?</strong>(versions = {})
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
|
502
|
+
|
503
|
+
</h3><div class="docstring">
|
504
|
+
<div class="discussion">
|
505
|
+
<p>Checks if the brower is a specific version.</p>
|
506
|
+
|
507
|
+
|
508
|
+
</div>
|
509
|
+
</div>
|
510
|
+
<div class="tags">
|
511
|
+
<p class="tag_title">Parameters:</p>
|
512
|
+
<ul class="param">
|
513
|
+
|
514
|
+
<li>
|
515
|
+
|
516
|
+
<span class='name'>versions</span>
|
517
|
+
|
518
|
+
|
519
|
+
<span class='type'>(<tt>String|Hash</tt>)</span>
|
520
|
+
|
521
|
+
|
522
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
523
|
+
|
524
|
+
|
525
|
+
—
|
526
|
+
<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, in form <code>{:operator => version}</code>, where operator is one of <code>:lt, :lte, :eq, :gt, :gte</code>.</p>
|
527
|
+
</div>
|
528
|
+
|
529
|
+
</li>
|
530
|
+
|
531
|
+
</ul>
|
532
|
+
|
533
|
+
<p class="tag_title">Returns:</p>
|
534
|
+
<ul class="return">
|
535
|
+
|
536
|
+
<li>
|
537
|
+
|
538
|
+
|
539
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
540
|
+
|
541
|
+
|
542
|
+
|
543
|
+
—
|
544
|
+
<div class='inline'><p><code>true</code> if current browser matches, <code>false</code> otherwise.</p>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
</li>
|
548
|
+
|
549
|
+
</ul>
|
550
|
+
|
551
|
+
</div><table class="source_code">
|
552
|
+
<tr>
|
553
|
+
<td>
|
554
|
+
<pre class="lines">
|
555
|
+
|
556
|
+
|
557
|
+
684
|
558
|
+
685
|
559
|
+
686</pre>
|
560
|
+
</td>
|
561
|
+
<td>
|
562
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 684</span>
|
563
|
+
|
564
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_v?'>v?</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>
|
565
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_v'>v</span><span class='lparen'>(</span><span class='id identifier rubyid_versions'>versions</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_result'>result</span>
|
566
|
+
<span class='kw'>end</span></pre>
|
567
|
+
</td>
|
568
|
+
</tr>
|
569
|
+
</table>
|
570
|
+
</div>
|
571
|
+
|
572
|
+
</div>
|
573
|
+
|
574
|
+
</div>
|
575
|
+
|
576
|
+
<div id="footer">
|
577
|
+
Generated on Sat Feb 2 17:47:19 2013 by
|
578
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
579
|
+
0.8.3 (ruby-1.9.3).
|
580
|
+
</div>
|
581
|
+
|
582
|
+
</body>
|
583
|
+
</html>
|