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
@@ -1,529 +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::Browseable::General::ClassMethods
|
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/Browseable/General/ClassMethods.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="../../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span> » <span class='title'><span class='object_link'><a href="../General.html" title="Brauser::Browseable::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::Browseable::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/browseable/general.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
|
-
21
|
258
|
-
22
|
259
|
-
23</pre>
|
260
|
-
</td>
|
261
|
-
<td>
|
262
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browseable/general.rb', line 21</span>
|
263
|
-
|
264
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_browsers'>browsers</span>
|
265
|
-
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:browsers</span><span class='rbracket'>]</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
|
-
49
|
370
|
-
50
|
371
|
-
51
|
372
|
-
52
|
373
|
-
53
|
374
|
-
54
|
375
|
-
55
|
376
|
-
56
|
377
|
-
57
|
378
|
-
58
|
379
|
-
59</pre>
|
380
|
-
</td>
|
381
|
-
<td>
|
382
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browseable/general.rb', line 49</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>
|
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='comma'>,</span> <span class='id identifier rubyid_v2'>v2</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
|
-
39
|
445
|
-
40
|
446
|
-
41</pre>
|
447
|
-
</td>
|
448
|
-
<td>
|
449
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browseable/general.rb', line 39</span>
|
450
|
-
|
451
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_languages'>languages</span>
|
452
|
-
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:languages</span><span class='rbracket'>]</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
|
-
30
|
504
|
-
31
|
505
|
-
32</pre>
|
506
|
-
</td>
|
507
|
-
<td>
|
508
|
-
<pre class="code"><span class="info file"># File 'lib/brauser/browseable/general.rb', line 30</span>
|
509
|
-
|
510
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_platforms'>platforms</span>
|
511
|
-
<span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='symbol'>:platforms</span><span class='rbracket'>]</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 Thu May 22 12:11:28 2014 by
|
524
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
525
|
-
0.8.7.4 (ruby-2.1.2).
|
526
|
-
</div>
|
527
|
-
|
528
|
-
</body>
|
529
|
-
</html>
|