brauser 1.0.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- 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,134 @@
|
|
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::General
|
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 (G)</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">General</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::General
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
<dt class="r1">Extended by:</dt>
|
77
|
+
<dd class="r1">ActiveSupport::Concern</dd>
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
<dt class="r2">Included in:</dt>
|
85
|
+
<dd class="r2"><span class='object_link'><a href="../Browser.html" title="Brauser::Browser (class)">Brauser::Browser</a></span></dd>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
<dt class="r1 last">Defined in:</dt>
|
90
|
+
<dd class="r1 last">lib/brauser/browser.rb</dd>
|
91
|
+
|
92
|
+
</dl>
|
93
|
+
<div class="clear"></div>
|
94
|
+
|
95
|
+
<h2>Overview</h2><div class="docstring">
|
96
|
+
<div class="discussion">
|
97
|
+
<p>General methods.</p>
|
98
|
+
|
99
|
+
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
<div class="tags">
|
103
|
+
|
104
|
+
|
105
|
+
</div><h2>Defined Under Namespace</h2>
|
106
|
+
<p class="children">
|
107
|
+
|
108
|
+
|
109
|
+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="General/ClassMethods.html" title="Brauser::BrowserMethods::General::ClassMethods (module)">ClassMethods</a></span>
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
</p>
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
</div>
|
126
|
+
|
127
|
+
<div id="footer">
|
128
|
+
Generated on Sat Feb 2 17:47:19 2013 by
|
129
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
+
0.8.3 (ruby-1.9.3).
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</body>
|
134
|
+
</html>
|
@@ -0,0 +1,529 @@
|
|
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::General::ClassMethods
|
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 (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="../../BrowserMethods.html" title="Brauser::BrowserMethods (module)">BrowserMethods</a></span></span> » <span class='title'><span class='object_link'><a href="../General.html" title="Brauser::BrowserMethods::General (module)">General</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">ClassMethods</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::General::ClassMethods
|
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/browser.rb</dd>
|
83
|
+
|
84
|
+
</dl>
|
85
|
+
<div class="clear"></div>
|
86
|
+
|
87
|
+
<h2>Overview</h2><div class="docstring">
|
88
|
+
<div class="discussion">
|
89
|
+
<p>Class methods.</p>
|
90
|
+
|
91
|
+
|
92
|
+
</div>
|
93
|
+
</div>
|
94
|
+
<div class="tags">
|
95
|
+
|
96
|
+
|
97
|
+
</div>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<h2>
|
106
|
+
Instance Method Summary
|
107
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
108
|
+
</h2>
|
109
|
+
|
110
|
+
<ul class="summary">
|
111
|
+
|
112
|
+
<li class="public ">
|
113
|
+
<span class="summary_signature">
|
114
|
+
|
115
|
+
<a href="#browsers-instance_method" title="#browsers (instance method)">- (Hash) <strong>browsers</strong> </a>
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
</span>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<span class="summary_desc"><div class='inline'><p>Returns the list of browser that can be recognized.</p>
|
130
|
+
</div></span>
|
131
|
+
|
132
|
+
</li>
|
133
|
+
|
134
|
+
|
135
|
+
<li class="public ">
|
136
|
+
<span class="summary_signature">
|
137
|
+
|
138
|
+
<a href="#compare_versions-instance_method" title="#compare_versions (instance method)">- (Boolean) <strong>compare_versions</strong>(v1 = "", operator = :eq, v2 = "") </a>
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
</span>
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
<span class="summary_desc"><div class='inline'><p>Compares two versions.</p>
|
153
|
+
</div></span>
|
154
|
+
|
155
|
+
</li>
|
156
|
+
|
157
|
+
|
158
|
+
<li class="public ">
|
159
|
+
<span class="summary_signature">
|
160
|
+
|
161
|
+
<a href="#languages-instance_method" title="#languages (instance method)">- (Hash) <strong>languages</strong> </a>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
</span>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
<span class="summary_desc"><div class='inline'><p>Returns the list of languages that can be recognized.</p>
|
176
|
+
</div></span>
|
177
|
+
|
178
|
+
</li>
|
179
|
+
|
180
|
+
|
181
|
+
<li class="public ">
|
182
|
+
<span class="summary_signature">
|
183
|
+
|
184
|
+
<a href="#platforms-instance_method" title="#platforms (instance method)">- (Hash) <strong>platforms</strong> </a>
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
</span>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
<span class="summary_desc"><div class='inline'><p>Returns the list of platforms that can be recognized.</p>
|
199
|
+
</div></span>
|
200
|
+
|
201
|
+
</li>
|
202
|
+
|
203
|
+
|
204
|
+
</ul>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
<div id="instance_method_details" class="method_details_list">
|
210
|
+
<h2>Instance Method Details</h2>
|
211
|
+
|
212
|
+
|
213
|
+
<div class="method_details first">
|
214
|
+
<h3 class="signature first" id="browsers-instance_method">
|
215
|
+
|
216
|
+
- (<tt>Hash</tt>) <strong>browsers</strong>
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
</h3><div class="docstring">
|
223
|
+
<div class="discussion">
|
224
|
+
<p>Returns the list of browser that can be recognized.</p>
|
225
|
+
|
226
|
+
<p>The keys are the browser name, the values are arrays of the name matcher, the version match and the label.</p>
|
227
|
+
|
228
|
+
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
<div class="tags">
|
232
|
+
|
233
|
+
<p class="tag_title">Returns:</p>
|
234
|
+
<ul class="return">
|
235
|
+
|
236
|
+
<li>
|
237
|
+
|
238
|
+
|
239
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
—
|
244
|
+
<div class='inline'><p>The list of browser that can be recognized.</p>
|
245
|
+
</div>
|
246
|
+
|
247
|
+
</li>
|
248
|
+
|
249
|
+
</ul>
|
250
|
+
|
251
|
+
</div><table class="source_code">
|
252
|
+
<tr>
|
253
|
+
<td>
|
254
|
+
<pre class="lines">
|
255
|
+
|
256
|
+
|
257
|
+
320
|
258
|
+
321
|
259
|
+
322</pre>
|
260
|
+
</td>
|
261
|
+
<td>
|
262
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 320</span>
|
263
|
+
|
264
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_browsers'>browsers</span>
|
265
|
+
<span class='id identifier rubyid_registered_to_hash'>registered_to_hash</span><span class='lparen'>(</span><span class='ivar'>@browsers</span><span class='rparen'>)</span>
|
266
|
+
<span class='kw'>end</span></pre>
|
267
|
+
</td>
|
268
|
+
</tr>
|
269
|
+
</table>
|
270
|
+
</div>
|
271
|
+
|
272
|
+
<div class="method_details ">
|
273
|
+
<h3 class="signature " id="compare_versions-instance_method">
|
274
|
+
|
275
|
+
- (<tt>Boolean</tt>) <strong>compare_versions</strong>(v1 = "", operator = :eq, v2 = "")
|
276
|
+
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
</h3><div class="docstring">
|
282
|
+
<div class="discussion">
|
283
|
+
<p>Compares two versions.</p>
|
284
|
+
|
285
|
+
|
286
|
+
</div>
|
287
|
+
</div>
|
288
|
+
<div class="tags">
|
289
|
+
<p class="tag_title">Parameters:</p>
|
290
|
+
<ul class="param">
|
291
|
+
|
292
|
+
<li>
|
293
|
+
|
294
|
+
<span class='name'>v1</span>
|
295
|
+
|
296
|
+
|
297
|
+
<span class='type'>(<tt>String</tt>)</span>
|
298
|
+
|
299
|
+
|
300
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
301
|
+
|
302
|
+
|
303
|
+
—
|
304
|
+
<div class='inline'><p>The first versions to compare.</p>
|
305
|
+
</div>
|
306
|
+
|
307
|
+
</li>
|
308
|
+
|
309
|
+
<li>
|
310
|
+
|
311
|
+
<span class='name'>operator</span>
|
312
|
+
|
313
|
+
|
314
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
315
|
+
|
316
|
+
|
317
|
+
<em class="default">(defaults to: <tt>:eq</tt>)</em>
|
318
|
+
|
319
|
+
|
320
|
+
—
|
321
|
+
<div class='inline'><p>The operator to use for comparison, can be one of <code>[:lt, :lte, :eq, :gte, :gt]</code>.</p>
|
322
|
+
</div>
|
323
|
+
|
324
|
+
</li>
|
325
|
+
|
326
|
+
<li>
|
327
|
+
|
328
|
+
<span class='name'>v2</span>
|
329
|
+
|
330
|
+
|
331
|
+
<span class='type'>(<tt>Symbol</tt>)</span>
|
332
|
+
|
333
|
+
|
334
|
+
<em class="default">(defaults to: <tt>""</tt>)</em>
|
335
|
+
|
336
|
+
|
337
|
+
—
|
338
|
+
<div class='inline'><p>The second version to compare.</p>
|
339
|
+
</div>
|
340
|
+
|
341
|
+
</li>
|
342
|
+
|
343
|
+
</ul>
|
344
|
+
|
345
|
+
<p class="tag_title">Returns:</p>
|
346
|
+
<ul class="return">
|
347
|
+
|
348
|
+
<li>
|
349
|
+
|
350
|
+
|
351
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
—
|
356
|
+
<div class='inline'><p>true if comparison is valid, <code>false</code> otherwise.</p>
|
357
|
+
</div>
|
358
|
+
|
359
|
+
</li>
|
360
|
+
|
361
|
+
</ul>
|
362
|
+
|
363
|
+
</div><table class="source_code">
|
364
|
+
<tr>
|
365
|
+
<td>
|
366
|
+
<pre class="lines">
|
367
|
+
|
368
|
+
|
369
|
+
348
|
370
|
+
349
|
371
|
+
350
|
372
|
+
351
|
373
|
+
352
|
374
|
+
353
|
375
|
+
354
|
376
|
+
355
|
377
|
+
356
|
378
|
+
357
|
379
|
+
358</pre>
|
380
|
+
</td>
|
381
|
+
<td>
|
382
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 348</span>
|
383
|
+
|
384
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_compare_versions'>compare_versions</span><span class='lparen'>(</span><span class='id identifier rubyid_v1'>v1</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_operator'>operator</span> <span class='op'>=</span> <span class='symbol'>:eq</span><span class='comma'>,</span> <span class='id identifier rubyid_v2'>v2</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
385
|
+
<span class='id identifier rubyid_valid_results'>valid_results</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='label'>lt:</span> <span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>lte:</span> <span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='comma'>,</span> <span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>eq:</span> <span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>gte:</span> <span class='lbracket'>[</span><span class='int'>0</span><span class='comma'>,</span> <span class='int'>1</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='label'>gt:</span> <span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='id identifier rubyid_operator'>operator</span><span class='comma'>,</span> <span class='lbracket'>[</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
386
|
+
|
387
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_valid_results'>valid_results</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='op'>&&</span> <span class='id identifier rubyid_v1'>v1</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_present?'>present?</span> <span class='kw'>then</span>
|
388
|
+
<span class='id identifier rubyid_p1'>p1</span><span class='comma'>,</span> <span class='id identifier rubyid_p2'>p2</span> <span class='op'>=</span> <span class='id identifier rubyid_find_relevant_tokens'>find_relevant_tokens</span><span class='lparen'>(</span><span class='id identifier rubyid_v1'>v1</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='comma'>,</span> <span class='id identifier rubyid_v2'>v2</span><span class='period'>.</span><span class='id identifier rubyid_ensure_string'>ensure_string</span><span class='period'>.</span><span class='id identifier rubyid_strip'>strip</span><span class='rparen'>)</span>
|
389
|
+
<span class='id identifier rubyid_p1'>p1</span><span class='comma'>,</span> <span class='id identifier rubyid_p2'>p2</span> <span class='op'>=</span> <span class='id identifier rubyid_normalize_tokens'>normalize_tokens</span><span class='lparen'>(</span><span class='id identifier rubyid_p1'>p1</span><span class='comma'>,</span> <span class='id identifier rubyid_p2'>p2</span><span class='rparen'>)</span>
|
390
|
+
<span class='id identifier rubyid_valid_results'>valid_results</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_p1'>p1</span> <span class='op'><=></span> <span class='id identifier rubyid_p2'>p2</span><span class='rparen'>)</span>
|
391
|
+
<span class='kw'>else</span>
|
392
|
+
<span class='kw'>false</span>
|
393
|
+
<span class='kw'>end</span>
|
394
|
+
<span class='kw'>end</span></pre>
|
395
|
+
</td>
|
396
|
+
</tr>
|
397
|
+
</table>
|
398
|
+
</div>
|
399
|
+
|
400
|
+
<div class="method_details ">
|
401
|
+
<h3 class="signature " id="languages-instance_method">
|
402
|
+
|
403
|
+
- (<tt>Hash</tt>) <strong>languages</strong>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</h3><div class="docstring">
|
410
|
+
<div class="discussion">
|
411
|
+
<p>Returns the list of languages that can be recognized.</p>
|
412
|
+
|
413
|
+
<p>The keys are the languages code, the values the labels.</p>
|
414
|
+
|
415
|
+
|
416
|
+
</div>
|
417
|
+
</div>
|
418
|
+
<div class="tags">
|
419
|
+
|
420
|
+
<p class="tag_title">Returns:</p>
|
421
|
+
<ul class="return">
|
422
|
+
|
423
|
+
<li>
|
424
|
+
|
425
|
+
|
426
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
—
|
431
|
+
<div class='inline'><p>The list of languages that can be recognized.</p>
|
432
|
+
</div>
|
433
|
+
|
434
|
+
</li>
|
435
|
+
|
436
|
+
</ul>
|
437
|
+
|
438
|
+
</div><table class="source_code">
|
439
|
+
<tr>
|
440
|
+
<td>
|
441
|
+
<pre class="lines">
|
442
|
+
|
443
|
+
|
444
|
+
338
|
445
|
+
339
|
446
|
+
340</pre>
|
447
|
+
</td>
|
448
|
+
<td>
|
449
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 338</span>
|
450
|
+
|
451
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_languages'>languages</span>
|
452
|
+
<span class='ivar'>@languages</span>
|
453
|
+
<span class='kw'>end</span></pre>
|
454
|
+
</td>
|
455
|
+
</tr>
|
456
|
+
</table>
|
457
|
+
</div>
|
458
|
+
|
459
|
+
<div class="method_details ">
|
460
|
+
<h3 class="signature " id="platforms-instance_method">
|
461
|
+
|
462
|
+
- (<tt>Hash</tt>) <strong>platforms</strong>
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
|
468
|
+
</h3><div class="docstring">
|
469
|
+
<div class="discussion">
|
470
|
+
<p>Returns the list of platforms that can be recognized.</p>
|
471
|
+
|
472
|
+
<p>The keys are the platform name, values are arrays of the matcher and the label.</p>
|
473
|
+
|
474
|
+
|
475
|
+
</div>
|
476
|
+
</div>
|
477
|
+
<div class="tags">
|
478
|
+
|
479
|
+
<p class="tag_title">Returns:</p>
|
480
|
+
<ul class="return">
|
481
|
+
|
482
|
+
<li>
|
483
|
+
|
484
|
+
|
485
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
486
|
+
|
487
|
+
|
488
|
+
|
489
|
+
—
|
490
|
+
<div class='inline'><p>The list of platform that can be recognized.</p>
|
491
|
+
</div>
|
492
|
+
|
493
|
+
</li>
|
494
|
+
|
495
|
+
</ul>
|
496
|
+
|
497
|
+
</div><table class="source_code">
|
498
|
+
<tr>
|
499
|
+
<td>
|
500
|
+
<pre class="lines">
|
501
|
+
|
502
|
+
|
503
|
+
329
|
504
|
+
330
|
505
|
+
331</pre>
|
506
|
+
</td>
|
507
|
+
<td>
|
508
|
+
<pre class="code"><span class="info file"># File 'lib/brauser/browser.rb', line 329</span>
|
509
|
+
|
510
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_platforms'>platforms</span>
|
511
|
+
<span class='id identifier rubyid_registered_to_hash'>registered_to_hash</span><span class='lparen'>(</span><span class='ivar'>@platforms</span><span class='rparen'>)</span>
|
512
|
+
<span class='kw'>end</span></pre>
|
513
|
+
</td>
|
514
|
+
</tr>
|
515
|
+
</table>
|
516
|
+
</div>
|
517
|
+
|
518
|
+
</div>
|
519
|
+
|
520
|
+
</div>
|
521
|
+
|
522
|
+
<div id="footer">
|
523
|
+
Generated on Sat Feb 2 17:47:19 2013 by
|
524
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
525
|
+
0.8.3 (ruby-1.9.3).
|
526
|
+
</div>
|
527
|
+
|
528
|
+
</body>
|
529
|
+
</html>
|