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,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::Browseable
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.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 (B)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../Brauser.html" title="Brauser (module)">Brauser</a></span></span>
36
- &raquo;
37
- <span class="title">Browseable</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
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/parsing.rb<span class="defines">,<br />
83
- lib/brauser/browseable/general.rb,<br /> lib/brauser/browseable/querying.rb,<br /> lib/brauser/browseable/register.rb,<br /> lib/brauser/definitions/browsers.rb,<br /> lib/brauser/definitions/platforms.rb,<br /> lib/brauser/definitions/languages.rb,<br /> lib/brauser/browseable/attributes.rb,<br /> lib/brauser/browseable/partial_querying.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 browsers.</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="Browseable/Attributes.html" title="Brauser::Browseable::Attributes (module)">Attributes</a></span>, <span class='object_link'><a href="Browseable/DefaultDefinitions.html" title="Brauser::Browseable::DefaultDefinitions (module)">DefaultDefinitions</a></span>, <span class='object_link'><a href="Browseable/General.html" title="Brauser::Browseable::General (module)">General</a></span>, <span class='object_link'><a href="Browseable/Parsing.html" title="Brauser::Browseable::Parsing (module)">Parsing</a></span>, <span class='object_link'><a href="Browseable/PartialQuerying.html" title="Brauser::Browseable::PartialQuerying (module)">PartialQuerying</a></span>, <span class='object_link'><a href="Browseable/Querying.html" title="Brauser::Browseable::Querying (module)">Querying</a></span>, <span class='object_link'><a href="Browseable/Register.html" title="Brauser::Browseable::Register (module)">Register</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,489 +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::Attributes
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/Attributes.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 (A)</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">Attributes</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::Attributes
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/browseable/attributes.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 handle attributes.</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="#classes-instance_method" title="#classes (instance method)">- (String|Array) <strong>classes</strong>(join = &quot; &quot;, name = &quot;&quot;, version = &quot;version-&quot;, platform = &quot;platform-&quot;, &amp;block) </a>
120
-
121
-
122
-
123
- (also: #meta, #to_s)
124
-
125
- </span>
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
- <span class="summary_desc"><div class='inline'><p>Returns an array of information about the browser.</p>
136
- </div></span>
137
-
138
- </li>
139
-
140
-
141
- <li class="public ">
142
- <span class="summary_signature">
143
-
144
- <a href="#platform_name-instance_method" title="#platform_name (instance method)">- (String) <strong>platform_name</strong> </a>
145
-
146
-
147
-
148
- </span>
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
- <span class="summary_desc"><div class='inline'><p>Gets a human-readable platform name.</p>
159
- </div></span>
160
-
161
- </li>
162
-
163
-
164
- <li class="public ">
165
- <span class="summary_signature">
166
-
167
- <a href="#readable_name-instance_method" title="#readable_name (instance method)">- (String) <strong>readable_name</strong> </a>
168
-
169
-
170
-
171
- </span>
172
-
173
-
174
-
175
-
176
-
177
-
178
-
179
-
180
-
181
- <span class="summary_desc"><div class='inline'><p>Gets a human-readable browser name.</p>
182
- </div></span>
183
-
184
- </li>
185
-
186
-
187
- </ul>
188
-
189
-
190
-
191
-
192
- <div id="instance_method_details" class="method_details_list">
193
- <h2>Instance Method Details</h2>
194
-
195
-
196
- <div class="method_details first">
197
- <h3 class="signature first" id="classes-instance_method">
198
-
199
- - (<tt>String|Array</tt>) <strong>classes</strong>(join = &quot; &quot;, name = &quot;&quot;, version = &quot;version-&quot;, platform = &quot;platform-&quot;, &amp;block)
200
-
201
-
202
-
203
- <span class="aliases">Also known as:
204
- <span class="names"><span id='meta-instance_method'>meta</span>, <span id='to_s-instance_method'>to_s</span></span>
205
- </span>
206
-
207
-
208
-
209
- </h3><div class="docstring">
210
- <div class="discussion">
211
- <p>Returns an array of information about the browser. Information are strings which are suitable to use as CSS classes.</p>
212
-
213
- <p>For version, it will be included a class for every token of the version. For example, version <code>7.0.1.2</code> will return this:</p>
214
-
215
- <p><code>ruby
216
- ["version-7", "version-7_0", "version-7_0_1", "version-7_0_1_2"]
217
- </code></p>
218
-
219
- <p>If you provide a block (with accepts name, version and platform as arguments), it will be used for translating the name.</p>
220
-
221
-
222
- </div>
223
- </div>
224
- <div class="tags">
225
- <p class="tag_title">Parameters:</p>
226
- <ul class="param">
227
-
228
- <li>
229
-
230
- <span class='name'>join</span>
231
-
232
-
233
- <span class='type'>(<tt>String|NilClass</tt>)</span>
234
-
235
-
236
- <em class="default">(defaults to: <tt>&quot; &quot;</tt>)</em>
237
-
238
-
239
- &mdash;
240
- <div class='inline'><p>If non falsy, the separator to use to join information. If falsy, informations will be returned as array.</p>
241
- </div>
242
-
243
- </li>
244
-
245
- <li>
246
-
247
- <span class='name'>name</span>
248
-
249
-
250
- <span class='type'>(<tt>Boolean</tt>)</span>
251
-
252
-
253
- <em class="default">(defaults to: <tt>&quot;&quot;</tt>)</em>
254
-
255
-
256
- &mdash;
257
- <div class='inline'><p>If non falsy, the string to prepend to the name. If falsy, the name information will not be included.</p>
258
- </div>
259
-
260
- </li>
261
-
262
- <li>
263
-
264
- <span class='name'>version</span>
265
-
266
-
267
- <span class='type'>(<tt>String|NilClass</tt>)</span>
268
-
269
-
270
- <em class="default">(defaults to: <tt>&quot;version-&quot;</tt>)</em>
271
-
272
-
273
- &mdash;
274
- <div class='inline'><p>If non falsy, the string to prepend to the version. If falsy, the version information will not be included.</p>
275
- </div>
276
-
277
- </li>
278
-
279
- <li>
280
-
281
- <span class='name'>platform</span>
282
-
283
-
284
- <span class='type'>(<tt>String|NilClass</tt>)</span>
285
-
286
-
287
- <em class="default">(defaults to: <tt>&quot;platform-&quot;</tt>)</em>
288
-
289
-
290
- &mdash;
291
- <div class='inline'><p>If non falsy, the string to prepend to the platform. If falsy, the platform information will not be included.</p>
292
- </div>
293
-
294
- </li>
295
-
296
- <li>
297
-
298
- <span class='name'>block</span>
299
-
300
-
301
- <span class='type'>(<tt>Proc</tt>)</span>
302
-
303
-
304
-
305
- &mdash;
306
- <div class='inline'><p>A block to translate browser name.</p>
307
- </div>
308
-
309
- </li>
310
-
311
- </ul>
312
-
313
- <p class="tag_title">Returns:</p>
314
- <ul class="return">
315
-
316
- <li>
317
-
318
-
319
- <span class='type'>(<tt>String|Array</tt>)</span>
320
-
321
-
322
-
323
- &mdash;
324
- <div class='inline'><p>CSS ready information of the current browser.</p>
325
- </div>
326
-
327
- </li>
328
-
329
- </ul>
330
-
331
- </div><table class="source_code">
332
- <tr>
333
- <td>
334
- <pre class="lines">
335
-
336
-
337
- 46
338
- 47
339
- 48
340
- 49
341
- 50</pre>
342
- </td>
343
- <td>
344
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/attributes.rb', line 46</span>
345
-
346
- <span class='kw'>def</span> <span class='id identifier rubyid_classes'>classes</span><span class='lparen'>(</span><span class='id identifier rubyid_join'>join</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'> </span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_version'>version</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>version-</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_platform'>platform</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>platform-</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
347
- <span class='id identifier rubyid_platform'>platform</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>platform-</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>if</span> <span class='id identifier rubyid_platform'>platform</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>TrueClass</span><span class='rparen'>)</span>
348
- <span class='id identifier rubyid_rv'>rv</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_stringify_name'>stringify_name</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_stringify_version'>stringify_version</span><span class='lparen'>(</span><span class='id identifier rubyid_version'>version</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='op'>!</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>?</span> <span class='kw'>nil</span> <span class='op'>:</span> <span class='lparen'>(</span><span class='id identifier rubyid_platform'>platform</span> <span class='op'>+</span> <span class='ivar'>@platform</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='rparen'>)</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_compact'>compact</span><span class='period'>.</span><span class='id identifier rubyid_flatten'>flatten</span>
349
- <span class='id identifier rubyid_join'>join</span> <span class='op'>?</span> <span class='id identifier rubyid_rv'>rv</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='id identifier rubyid_join'>join</span><span class='rparen'>)</span> <span class='op'>:</span> <span class='id identifier rubyid_rv'>rv</span>
350
- <span class='kw'>end</span></pre>
351
- </td>
352
- </tr>
353
- </table>
354
- </div>
355
-
356
- <div class="method_details ">
357
- <h3 class="signature " id="platform_name-instance_method">
358
-
359
- - (<tt>String</tt>) <strong>platform_name</strong>
360
-
361
-
362
-
363
-
364
-
365
- </h3><div class="docstring">
366
- <div class="discussion">
367
- <p>Gets a human-readable platform name.</p>
368
-
369
-
370
- </div>
371
- </div>
372
- <div class="tags">
373
-
374
- <p class="tag_title">Returns:</p>
375
- <ul class="return">
376
-
377
- <li>
378
-
379
-
380
- <span class='type'>(<tt>String</tt>)</span>
381
-
382
-
383
-
384
- &mdash;
385
- <div class='inline'><p>A readable platform name.</p>
386
- </div>
387
-
388
- </li>
389
-
390
- </ul>
391
-
392
- </div><table class="source_code">
393
- <tr>
394
- <td>
395
- <pre class="lines">
396
-
397
-
398
- 25
399
- 26
400
- 27
401
- 28</pre>
402
- </td>
403
- <td>
404
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/attributes.rb', line 25</span>
405
-
406
- <span class='kw'>def</span> <span class='id identifier rubyid_platform_name'>platform_name</span>
407
- <span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@platform</span>
408
- <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browser</span><span class='period'>.</span><span class='id identifier rubyid_platforms'>platforms</span><span class='lbracket'>[</span><span class='ivar'>@platform</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_try'>try</span><span class='lparen'>(</span><span class='symbol'>:label</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown Platform</span><span class='tstring_end'>&quot;</span></span>
409
- <span class='kw'>end</span></pre>
410
- </td>
411
- </tr>
412
- </table>
413
- </div>
414
-
415
- <div class="method_details ">
416
- <h3 class="signature " id="readable_name-instance_method">
417
-
418
- - (<tt>String</tt>) <strong>readable_name</strong>
419
-
420
-
421
-
422
-
423
-
424
- </h3><div class="docstring">
425
- <div class="discussion">
426
- <p>Gets a human-readable browser name.</p>
427
-
428
-
429
- </div>
430
- </div>
431
- <div class="tags">
432
-
433
- <p class="tag_title">Returns:</p>
434
- <ul class="return">
435
-
436
- <li>
437
-
438
-
439
- <span class='type'>(<tt>String</tt>)</span>
440
-
441
-
442
-
443
- &mdash;
444
- <div class='inline'><p>A human-readable browser name.</p>
445
- </div>
446
-
447
- </li>
448
-
449
- </ul>
450
-
451
- </div><table class="source_code">
452
- <tr>
453
- <td>
454
- <pre class="lines">
455
-
456
-
457
- 15
458
- 16
459
- 17
460
- 18
461
- 19
462
- 20</pre>
463
- </td>
464
- <td>
465
- <pre class="code"><span class="info file"># File 'lib/brauser/browseable/attributes.rb', line 15</span>
466
-
467
- <span class='kw'>def</span> <span class='id identifier rubyid_readable_name'>readable_name</span>
468
- <span class='id identifier rubyid_parse_agent'>parse_agent</span><span class='lparen'>(</span><span class='ivar'>@agent</span><span class='rparen'>)</span> <span class='kw'>unless</span> <span class='ivar'>@name</span>
469
- <span class='op'>::</span><span class='const'>Brauser</span><span class='op'>::</span><span class='const'>Browser</span><span class='period'>.</span><span class='id identifier rubyid_browsers'>browsers</span><span class='period'>.</span><span class='id identifier rubyid_fetch'>fetch</span><span class='lparen'>(</span><span class='ivar'>@name</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_label'>label</span>
470
- <span class='kw'>rescue</span> <span class='const'>KeyError</span>
471
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Unknown Browser</span><span class='tstring_end'>&quot;</span></span>
472
- <span class='kw'>end</span></pre>
473
- </td>
474
- </tr>
475
- </table>
476
- </div>
477
-
478
- </div>
479
-
480
- </div>
481
-
482
- <div id="footer">
483
- Generated on Thu May 22 12:11:28 2014 by
484
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
485
- 0.8.7.4 (ruby-2.1.2).
486
- </div>
487
-
488
- </body>
489
- </html>