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.
Files changed (78) hide show
  1. checksums.yaml +5 -5
  2. data/.rubocop.yml +6 -1
  3. data/.travis-gemfile +2 -2
  4. data/.travis.yml +5 -3
  5. data/.yardopts +1 -1
  6. data/Gemfile +1 -1
  7. data/LICENSE.md +21 -0
  8. data/README.md +20 -22
  9. data/Rakefile +1 -1
  10. data/brauser.gemspec +2 -2
  11. data/default_definitions/browsers.rb +1 -1
  12. data/default_definitions/languages.rb +1 -1
  13. data/default_definitions/platforms.rb +1 -1
  14. data/{doc → docs}/Brauser.html +1 -1
  15. data/docs/Brauser/Browser.html +5542 -0
  16. data/{doc → docs}/Brauser/Definitions.html +23 -27
  17. data/{doc → docs}/Brauser/Definitions/Base.html +14 -16
  18. data/docs/Brauser/Definitions/Browser.html +1031 -0
  19. data/{doc → docs}/Brauser/Definitions/Language.html +35 -38
  20. data/{doc → docs}/Brauser/Definitions/Platform.html +67 -71
  21. data/{doc → docs}/Brauser/Hooks.html +1 -1
  22. data/{doc → docs}/Brauser/Hooks/RubyOnRails.html +8 -10
  23. data/{doc → docs}/Brauser/Parser.html +22 -25
  24. data/{doc → docs}/Brauser/Value.html +38 -42
  25. data/{doc → docs}/Brauser/Version.html +5 -9
  26. data/{doc → docs}/_index.html +1 -1
  27. data/{doc → docs}/class_list.html +0 -0
  28. data/{doc → docs}/css/common.css +0 -0
  29. data/{doc → docs}/css/full_list.css +0 -0
  30. data/{doc → docs}/css/style.css +0 -0
  31. data/{doc → docs}/file.README.html +9 -7
  32. data/{doc → docs}/file_list.html +0 -0
  33. data/{doc → docs}/frames.html +0 -0
  34. data/{doc → docs}/index.html +9 -7
  35. data/{doc → docs}/js/app.js +0 -0
  36. data/{doc → docs}/js/full_list.js +0 -0
  37. data/{doc → docs}/js/jquery.js +0 -0
  38. data/{doc → docs}/method_list.html +0 -0
  39. data/{doc → docs}/top-level-namespace.html +1 -1
  40. data/lib/brauser.rb +1 -1
  41. data/lib/brauser/browser.rb +1 -1
  42. data/lib/brauser/definitions/base.rb +1 -1
  43. data/lib/brauser/definitions/browser.rb +1 -1
  44. data/lib/brauser/definitions/language.rb +1 -1
  45. data/lib/brauser/definitions/platform.rb +1 -1
  46. data/lib/brauser/hooks.rb +1 -1
  47. data/lib/brauser/parser.rb +1 -1
  48. data/lib/brauser/value.rb +1 -1
  49. data/lib/brauser/version.rb +2 -2
  50. data/spec/brauser/browser_spec.rb +1 -1
  51. data/spec/brauser/default_definitions_spec.rb +1 -1
  52. data/spec/brauser/definitions/base_spec.rb +1 -1
  53. data/spec/brauser/definitions/browser_spec.rb +1 -1
  54. data/spec/brauser/definitions/language_spec.rb +1 -1
  55. data/spec/brauser/definitions/platform_spec.rb +1 -1
  56. data/spec/brauser/hooks_spec.rb +1 -1
  57. data/spec/brauser/parser_spec.rb +1 -1
  58. data/spec/brauser/value_spec.rb +1 -1
  59. data/spec/coverage_helper.rb +1 -1
  60. data/spec/spec_helper.rb +1 -1
  61. metadata +30 -46
  62. data/doc/Brauser/Browseable.html +0 -127
  63. data/doc/Brauser/Browseable/Attributes.html +0 -489
  64. data/doc/Brauser/Browseable/DefaultDefinitions.html +0 -389
  65. data/doc/Brauser/Browseable/General.html +0 -134
  66. data/doc/Brauser/Browseable/General/ClassMethods.html +0 -529
  67. data/doc/Brauser/Browseable/Parsing.html +0 -350
  68. data/doc/Brauser/Browseable/PartialQuerying.html +0 -625
  69. data/doc/Brauser/Browseable/Querying.html +0 -694
  70. data/doc/Brauser/Browseable/Register.html +0 -134
  71. data/doc/Brauser/Browseable/Register/ClassMethods.html +0 -516
  72. data/doc/Brauser/Browser.html +0 -5557
  73. data/doc/Brauser/Definition.html +0 -1235
  74. data/doc/Brauser/Definitions/Browser.html +0 -1036
  75. data/doc/Brauser/Query.html +0 -512
  76. data/doc/Brauser/Queryable.html +0 -127
  77. data/doc/Brauser/Queryable/Chainers.html +0 -598
  78. data/doc/Brauser/Queryable/Queries.html +0 -598
@@ -1,134 +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::Register
8
-
9
- &mdash; 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/Register.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 (R)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span>
36
- &raquo;
37
- <span class="title">Register</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::Register
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/browseable/register.rb</dd>
91
-
92
- </dl>
93
- <div class="clear"></div>
94
-
95
- <h2>Overview</h2><div class="docstring">
96
- <div class="discussion">
97
- <p>Methods for register recognized browsers, versions and platforms.</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="Register/ClassMethods.html" title="Brauser::Browseable::Register::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 Thu May 22 12:11:28 2014 by
129
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
130
- 0.8.7.4 (ruby-2.1.2).
131
- </div>
132
-
133
- </body>
134
- </html>
@@ -1,516 +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::Register::ClassMethods
8
-
9
- &mdash; 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/Register/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> &raquo;
35
- <span class='title'><span class='object_link'><a href="../../../Brauser.html" title="Brauser (module)">Brauser</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../../Browseable.html" title="Brauser::Browseable (module)">Browseable</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Register.html" title="Brauser::Browseable::Register (module)">Register</a></span></span>
36
- &raquo;
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::Register::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/register.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="#add-instance_method" title="#add (instance method)">- (Boolean) <strong>add</strong>(type, definition) </a>
116
-
117
-
118
-
119
- </span>
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
-
128
-
129
- <span class="summary_desc"><div class='inline'><p>Adds a definitions for recognition.</p>
130
- </div></span>
131
-
132
- </li>
133
-
134
-
135
- <li class="public ">
136
- <span class="summary_signature">
137
-
138
- <a href="#add_default_browsers-instance_method" title="#add_default_browsers (instance method)">- (Boolean) <strong>add_default_browsers</strong> </a>
139
-
140
-
141
-
142
- </span>
143
-
144
-
145
-
146
-
147
-
148
-
149
-
150
-
151
-
152
- <span class="summary_desc"><div class='inline'><p>Adds definitions for a default list of browsers that can be recognized.</p>
153
- </div></span>
154
-
155
- </li>
156
-
157
-
158
- <li class="public ">
159
- <span class="summary_signature">
160
-
161
- <a href="#add_default_languages-instance_method" title="#add_default_languages (instance method)">- (Boolean) <strong>add_default_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>Adds a default 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="#add_default_platforms-instance_method" title="#add_default_platforms (instance method)">- (Boolean) <strong>add_default_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>Adds a default 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="add-instance_method">
215
-
216
- - (<tt>Boolean</tt>) <strong>add</strong>(type, definition)
217
-
218
-
219
-
220
-
221
-
222
- </h3><div class="docstring">
223
- <div class="discussion">
224
- <p>Adds a definitions for recognition.</p>
225
-
226
-
227
- </div>
228
- </div>
229
- <div class="tags">
230
- <p class="tag_title">Parameters:</p>
231
- <ul class="param">
232
-
233
- <li>
234
-
235
- <span class='name'>type</span>
236
-
237
-
238
- <span class='type'>(<tt>Symbol</tt>)</span>
239
-
240
-
241
-
242
- &mdash;
243
- <div class='inline'><p>The type of the definition. Can be <code>:browsers</code>, <code>:platforms</code> or <code>:languages</code>.</p>
244
- </div>
245
-
246
- </li>
247
-
248
- <li>
249
-
250
- <span class='name'>definition</span>
251
-
252
-
253
- <span class='type'>(<tt><span class='object_link'><a href="../../Definition.html" title="Brauser::Definition (class)">Definition</a></span>|Array</tt>)</span>
254
-
255
-
256
-
257
- &mdash;
258
- <div class='inline'><p>The definition to add. Can be also an array of definitions.</p>
259
- </div>
260
-
261
- </li>
262
-
263
- </ul>
264
-
265
- <p class="tag_title">Returns:</p>
266
- <ul class="return">
267
-
268
- <li>
269
-
270
-
271
- <span class='type'>(<tt>Boolean</tt>)</span>
272
-
273
-
274
-
275
- &mdash;
276
- <div class='inline'><p><code>true</code> if at least one definition has been added, <code>false</code> otherwise.</p>
277
- </div>
278
-
279
- </li>
280
-
281
- </ul>
282
-
283
- </div><table class="source_code">
284
- <tr>
285
- <td>
286
- <pre class="lines">
287
-
288
-
289
- 21
290
- 22
291
- 23
292
- 24
293
- 25
294
- 26
295
- 27
296
- 28
297
- 29
298
- 30
299
- 31
300
- 32
301
- 33
302
- 34
303
- 35</pre>
304
- </td>
305
- <td>
306
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 21</span>
307
-
308
- <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='comma'>,</span> <span class='id identifier rubyid_definition'>definition</span><span class='rparen'>)</span>
309
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>false</span>
310
-
311
- <span class='kw'>if</span> <span class='lbracket'>[</span><span class='symbol'>:browsers</span><span class='comma'>,</span> <span class='symbol'>:platforms</span><span class='comma'>,</span> <span class='symbol'>:languages</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
312
- <span class='id identifier rubyid_prepare_definitions_for'>prepare_definitions_for</span><span class='lparen'>(</span><span class='id identifier rubyid_type'>type</span><span class='rparen'>)</span>
313
-
314
- <span class='id identifier rubyid_definition'>definition</span><span class='period'>.</span><span class='id identifier rubyid_ensure_array'>ensure_array</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_d'>d</span><span class='op'>|</span>
315
- <span class='kw'>next</span> <span class='kw'>unless</span> <span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='rparen'>)</span>
316
- <span class='ivar'>@definitions</span><span class='lbracket'>[</span><span class='id identifier rubyid_type'>type</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_d'>d</span><span class='period'>.</span><span class='id identifier rubyid_tag'>tag</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_d'>d</span>
317
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='kw'>true</span>
318
- <span class='kw'>end</span>
319
- <span class='kw'>end</span>
320
-
321
- <span class='id identifier rubyid_rv'>rv</span>
322
- <span class='kw'>end</span></pre>
323
- </td>
324
- </tr>
325
- </table>
326
- </div>
327
-
328
- <div class="method_details ">
329
- <h3 class="signature " id="add_default_browsers-instance_method">
330
-
331
- - (<tt>Boolean</tt>) <strong>add_default_browsers</strong>
332
-
333
-
334
-
335
-
336
-
337
- </h3><div class="docstring">
338
- <div class="discussion">
339
- <p>Adds definitions for a default list of browsers that can be recognized.</p>
340
-
341
-
342
- </div>
343
- </div>
344
- <div class="tags">
345
-
346
- <p class="tag_title">Returns:</p>
347
- <ul class="return">
348
-
349
- <li>
350
-
351
-
352
- <span class='type'>(<tt>Boolean</tt>)</span>
353
-
354
-
355
-
356
- &mdash;
357
- <div class='inline'><p><code>true</code> if at least one browser has been added, <code>false</code> otherwise.</p>
358
- </div>
359
-
360
- </li>
361
-
362
- </ul>
363
-
364
- </div><table class="source_code">
365
- <tr>
366
- <td>
367
- <pre class="lines">
368
-
369
-
370
- 40
371
- 41
372
- 42
373
- 43
374
- 44
375
- 45</pre>
376
- </td>
377
- <td>
378
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 40</span>
379
-
380
- <span class='kw'>def</span> <span class='id identifier rubyid_add_default_browsers'>add_default_browsers</span>
381
- <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:browsers</span><span class='comma'>,</span> <span class='lparen'>(</span>
382
- <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MOBILE_BROWSERS</span> <span class='op'>+</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MAJOR_DESKTOP_BROWSERS</span> <span class='op'>+</span>
383
- <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MSIE_BROWSERS</span> <span class='op'>+</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>MINOR_DESKTOP_BROWSERS</span>
384
- <span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_browser'>browser</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:new</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_browser'>browser</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
385
- <span class='kw'>end</span></pre>
386
- </td>
387
- </tr>
388
- </table>
389
- </div>
390
-
391
- <div class="method_details ">
392
- <h3 class="signature " id="add_default_languages-instance_method">
393
-
394
- - (<tt>Boolean</tt>) <strong>add_default_languages</strong>
395
-
396
-
397
-
398
-
399
-
400
- </h3><div class="docstring">
401
- <div class="discussion">
402
- <p>Adds a default list of languages that can be recognized.</p>
403
-
404
-
405
- </div>
406
- </div>
407
- <div class="tags">
408
-
409
- <p class="tag_title">Returns:</p>
410
- <ul class="return">
411
-
412
- <li>
413
-
414
-
415
- <span class='type'>(<tt>Boolean</tt>)</span>
416
-
417
-
418
-
419
- &mdash;
420
- <div class='inline'><p><code>true</code> if at least one language has been added, <code>false</code> otherwise.</p>
421
- </div>
422
-
423
- </li>
424
-
425
- </ul>
426
-
427
- </div><table class="source_code">
428
- <tr>
429
- <td>
430
- <pre class="lines">
431
-
432
-
433
- 57
434
- 58
435
- 59</pre>
436
- </td>
437
- <td>
438
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 57</span>
439
-
440
- <span class='kw'>def</span> <span class='id identifier rubyid_add_default_languages'>add_default_languages</span>
441
- <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:languages</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>LANGUAGES</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_code'>code</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_code'>code</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
442
- <span class='kw'>end</span></pre>
443
- </td>
444
- </tr>
445
- </table>
446
- </div>
447
-
448
- <div class="method_details ">
449
- <h3 class="signature " id="add_default_platforms-instance_method">
450
-
451
- - (<tt>Boolean</tt>) <strong>add_default_platforms</strong>
452
-
453
-
454
-
455
-
456
-
457
- </h3><div class="docstring">
458
- <div class="discussion">
459
- <p>Adds a default list of platforms that can be recognized.</p>
460
-
461
-
462
- </div>
463
- </div>
464
- <div class="tags">
465
-
466
- <p class="tag_title">Returns:</p>
467
- <ul class="return">
468
-
469
- <li>
470
-
471
-
472
- <span class='type'>(<tt>Boolean</tt>)</span>
473
-
474
-
475
-
476
- &mdash;
477
- <div class='inline'><p><code>true</code> if at least one platform has been added, <code>false</code> otherwise.</p>
478
- </div>
479
-
480
- </li>
481
-
482
- </ul>
483
-
484
- </div><table class="source_code">
485
- <tr>
486
- <td>
487
- <pre class="lines">
488
-
489
-
490
- 50
491
- 51
492
- 52</pre>
493
- </td>
494
- <td>
495
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/register.rb', line 50</span>
496
-
497
- <span class='kw'>def</span> <span class='id identifier rubyid_add_default_platforms'>add_default_platforms</span>
498
- <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='symbol'>:platforms</span><span class='comma'>,</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browseable</span><span class='op'>::</span><span class='const'>DefaultDefinitions</span><span class='op'>::</span><span class='const'>PLATFORMS</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_platform'>platform</span><span class='op'>|</span> <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Definition</span><span class='period'>.</span><span class='id identifier rubyid_send'>send</span><span class='lparen'>(</span><span class='symbol'>:new</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_platform'>platform</span><span class='rparen'>)</span> <span class='rbrace'>}</span><span class='rparen'>)</span>
499
- <span class='kw'>end</span></pre>
500
- </td>
501
- </tr>
502
- </table>
503
- </div>
504
-
505
- </div>
506
-
507
- </div>
508
-
509
- <div id="footer">
510
- Generated on Thu May 22 12:11:28 2014 by
511
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
512
- 0.8.7.4 (ruby-2.1.2).
513
- </div>
514
-
515
- </body>
516
- </html>