jsprac 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.rspec +2 -0
  4. data/.yardoc/checksums +5 -0
  5. data/.yardoc/complete +0 -0
  6. data/.yardoc/object_types +0 -0
  7. data/.yardoc/objects/root.dat +0 -0
  8. data/.yardoc/proxy_types +0 -0
  9. data/Gemfile +7 -0
  10. data/Gemfile.lock +80 -0
  11. data/Guardfile +82 -0
  12. data/LICENSE.txt +21 -0
  13. data/README.md +1 -0
  14. data/Rakefile +6 -0
  15. data/bin/_guard-core +17 -0
  16. data/bin/bundler +17 -0
  17. data/bin/coderay +17 -0
  18. data/bin/console +14 -0
  19. data/bin/guard +17 -0
  20. data/bin/htmldiff +17 -0
  21. data/bin/ldiff +17 -0
  22. data/bin/listen +17 -0
  23. data/bin/pry +17 -0
  24. data/bin/rake +17 -0
  25. data/bin/rspec +17 -0
  26. data/bin/setup +8 -0
  27. data/bin/thor +17 -0
  28. data/doc/Alimentos.html +368 -0
  29. data/doc/Diet.html +916 -0
  30. data/doc/Edad.html +368 -0
  31. data/doc/List.html +764 -0
  32. data/doc/Node.html +411 -0
  33. data/doc/Prct06.html +117 -0
  34. data/doc/_index.html +174 -0
  35. data/doc/class_list.html +51 -0
  36. data/doc/css/common.css +1 -0
  37. data/doc/css/full_list.css +58 -0
  38. data/doc/css/style.css +481 -0
  39. data/doc/file.README.html +74 -0
  40. data/doc/file_list.html +56 -0
  41. data/doc/frames.html +17 -0
  42. data/doc/index.html +74 -0
  43. data/doc/js/app.js +243 -0
  44. data/doc/js/full_list.js +216 -0
  45. data/doc/js/jquery.js +4 -0
  46. data/doc/method_list.html +291 -0
  47. data/doc/top-level-namespace.html +114 -0
  48. data/lib/prct06/.prct06menu.rb.swp +0 -0
  49. data/lib/prct06/.yardoc/checksums +0 -0
  50. data/lib/prct06/.yardoc/complete +0 -0
  51. data/lib/prct06/.yardoc/object_types +0 -0
  52. data/lib/prct06/.yardoc/objects/root.dat +0 -0
  53. data/lib/prct06/.yardoc/proxy_types +0 -0
  54. data/lib/prct06/menualimentos.rb +13 -0
  55. data/lib/prct06/menuedad.rb +13 -0
  56. data/lib/prct06/prct06.rb +50 -0
  57. data/lib/prct06/prct06menu.rb +56 -0
  58. data/lib/prct06/version.rb +3 -0
  59. data/pkg/jsprac-0.1.0.gem +0 -0
  60. data/pkg/prct06-0.1.0.gem +0 -0
  61. data/prct06.gemspec +40 -0
  62. metadata +189 -0
@@ -0,0 +1,368 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Edad
8
+
9
+ &mdash; Documentation by YARD 0.9.5
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
+ pathId = "Edad";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (E)</a> &raquo;
40
+
41
+
42
+ <span class="title">Edad</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame" src="class_list.html"></iframe>
63
+
64
+ <div id="content"><h1>Class: Edad
65
+
66
+
67
+
68
+ </h1>
69
+ <div class="box_info">
70
+
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
74
+ <span class="inheritName"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></li>
80
+
81
+ <li class="next">Edad</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+ </dl>
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <dl>
100
+ <dt>Defined in:</dt>
101
+ <dd>lib/prct06/menuedad.rb</dd>
102
+ </dl>
103
+
104
+ </div>
105
+
106
+
107
+
108
+
109
+
110
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
111
+ <ul class="summary">
112
+
113
+ <li class="public ">
114
+ <span class="summary_signature">
115
+
116
+ <a href="#edad-instance_method" title="#edad (instance method)">#<strong>edad</strong> &#x21d2; Object </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'>
134
+ <p>Returns the value of attribute edad.</p>
135
+ </div></span>
136
+
137
+ </li>
138
+
139
+
140
+ </ul>
141
+
142
+
143
+
144
+
145
+
146
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
147
+ <p class="inherited"><span class='object_link'><a href="Diet.html#dip-instance_method" title="Diet#dip (method)">#dip</a></span>, <span class='object_link'><a href="Diet.html#pchdt-instance_method" title="Diet#pchdt (method)">#pchdt</a></span>, <span class='object_link'><a href="Diet.html#pfts-instance_method" title="Diet#pfts (method)">#pfts</a></span>, <span class='object_link'><a href="Diet.html#pprtn-instance_method" title="Diet#pprtn (method)">#pprtn</a></span>, <span class='object_link'><a href="Diet.html#rcps-instance_method" title="Diet#rcps (method)">#rcps</a></span>, <span class='object_link'><a href="Diet.html#ttl-instance_method" title="Diet#ttl (method)">#ttl</a></span>, <span class='object_link'><a href="Diet.html#vct-instance_method" title="Diet#vct (method)">#vct</a></span></p>
148
+
149
+
150
+
151
+ <h2>
152
+ Instance Method Summary
153
+ <small><a href="#" class="summary_toggle">collapse</a></small>
154
+ </h2>
155
+
156
+ <ul class="summary">
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(edad, ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; Edad </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+ <span class="note title constructor">constructor</span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <span class="summary_desc"><div class='inline'>
178
+ <p>A new instance of Edad.</p>
179
+ </div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <span class="summary_desc"><div class='inline'></div></span>
202
+
203
+ </li>
204
+
205
+
206
+ </ul>
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
219
+ <p class="inherited"><span class='object_link'><a href="Diet.html#%3C%3D%3E-instance_method" title="Diet#&lt;=&gt; (method)">#<=></a></span>, <span class='object_link'><a href="Diet.html#new_recipe-instance_method" title="Diet#new_recipe (method)">#new_recipe</a></span></p>
220
+
221
+ <div id="constructor_details" class="method_details_list">
222
+ <h2>Constructor Details</h2>
223
+
224
+ <div class="method_details first">
225
+ <h3 class="signature first" id="initialize-instance_method">
226
+
227
+ #<strong>initialize</strong>(edad, ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; <tt><span class='object_link'><a href="" title="Edad (class)">Edad</a></span></tt>
228
+
229
+
230
+
231
+
232
+
233
+ </h3><div class="docstring">
234
+ <div class="discussion">
235
+
236
+ <p>Returns a new instance of Edad</p>
237
+
238
+
239
+ </div>
240
+ </div>
241
+ <div class="tags">
242
+
243
+
244
+ </div><table class="source_code">
245
+ <tr>
246
+ <td>
247
+ <pre class="lines">
248
+
249
+
250
+ 4
251
+ 5
252
+ 6
253
+ 7</pre>
254
+ </td>
255
+ <td>
256
+ <pre class="code"><span class="info file"># File 'lib/prct06/menuedad.rb', line 4</span>
257
+
258
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span><span class='id identifier rubyid_ttl'>ttl</span><span class='comma'>,</span><span class='id identifier rubyid_dip'>dip</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_pprtn'>pprtn</span><span class='comma'>,</span><span class='id identifier rubyid_pfts'>pfts</span><span class='comma'>,</span><span class='id identifier rubyid_pchdt'>pchdt</span><span class='rparen'>)</span>
259
+ <span class='ivar'>@edad</span> <span class='op'>=</span> <span class='id identifier rubyid_edad'>edad</span>
260
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_ttl'>ttl</span><span class='comma'>,</span><span class='id identifier rubyid_dip'>dip</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_pprtn'>pprtn</span><span class='comma'>,</span><span class='id identifier rubyid_pfts'>pfts</span><span class='comma'>,</span><span class='id identifier rubyid_pchdt'>pchdt</span><span class='rparen'>)</span>
261
+ <span class='kw'>end</span></pre>
262
+ </td>
263
+ </tr>
264
+ </table>
265
+ </div>
266
+
267
+ </div>
268
+
269
+ <div id="instance_attr_details" class="attr_details">
270
+ <h2>Instance Attribute Details</h2>
271
+
272
+
273
+ <span id="edad=-instance_method"></span>
274
+ <div class="method_details first">
275
+ <h3 class="signature first" id="edad-instance_method">
276
+
277
+ #<strong>edad</strong> &#x21d2; <tt>Object</tt>
278
+
279
+
280
+
281
+
282
+
283
+ </h3><div class="docstring">
284
+ <div class="discussion">
285
+
286
+ <p>Returns the value of attribute edad</p>
287
+
288
+
289
+ </div>
290
+ </div>
291
+ <div class="tags">
292
+
293
+
294
+ </div><table class="source_code">
295
+ <tr>
296
+ <td>
297
+ <pre class="lines">
298
+
299
+
300
+ 3
301
+ 4
302
+ 5</pre>
303
+ </td>
304
+ <td>
305
+ <pre class="code"><span class="info file"># File 'lib/prct06/menuedad.rb', line 3</span>
306
+
307
+ <span class='kw'>def</span> <span class='id identifier rubyid_edad'>edad</span>
308
+ <span class='ivar'>@edad</span>
309
+ <span class='kw'>end</span></pre>
310
+ </td>
311
+ </tr>
312
+ </table>
313
+ </div>
314
+
315
+ </div>
316
+
317
+
318
+ <div id="instance_method_details" class="method_details_list">
319
+ <h2>Instance Method Details</h2>
320
+
321
+
322
+ <div class="method_details first">
323
+ <h3 class="signature first" id="to_s-instance_method">
324
+
325
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
326
+
327
+
328
+
329
+
330
+
331
+ </h3><table class="source_code">
332
+ <tr>
333
+ <td>
334
+ <pre class="lines">
335
+
336
+
337
+ 8
338
+ 9
339
+ 10
340
+ 11
341
+ 12</pre>
342
+ </td>
343
+ <td>
344
+ <pre class="code"><span class="info file"># File 'lib/prct06/menuedad.rb', line 8</span>
345
+
346
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
347
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
348
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@edad</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
349
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>&lt;&lt;</span> <span class='kw'>super</span>
350
+ <span class='kw'>end</span></pre>
351
+ </td>
352
+ </tr>
353
+ </table>
354
+ </div>
355
+
356
+ </div>
357
+
358
+ </div>
359
+
360
+ <div id="footer">
361
+ Generated on Tue Nov 22 18:46:04 2016 by
362
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
+ 0.9.5 (ruby-2.3.0).
364
+ </div>
365
+
366
+ </div>
367
+ </body>
368
+ </html>
@@ -0,0 +1,764 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: List
8
+
9
+ &mdash; Documentation by YARD 0.9.5
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
+ pathId = "List";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (L)</a> &raquo;
40
+
41
+
42
+ <span class="title">List</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame" src="class_list.html"></iframe>
63
+
64
+ <div id="content"><h1>Class: List
65
+
66
+
67
+
68
+ </h1>
69
+ <div class="box_info">
70
+
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
74
+ <span class="inheritName">Object</span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next">List</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+ <dl>
93
+ <dt>Includes:</dt>
94
+ <dd>Comparable, Enumerable</dd>
95
+ </dl>
96
+
97
+
98
+
99
+
100
+
101
+
102
+ <dl>
103
+ <dt>Defined in:</dt>
104
+ <dd>lib/prct06/prct06.rb</dd>
105
+ </dl>
106
+
107
+ </div>
108
+
109
+
110
+
111
+
112
+
113
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
114
+ <ul class="summary">
115
+
116
+ <li class="public ">
117
+ <span class="summary_signature">
118
+
119
+ <a href="#cabeza-instance_method" title="#cabeza (instance method)">#<strong>cabeza</strong> &#x21d2; Object </a>
120
+
121
+
122
+
123
+ </span>
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+ <span class="summary_desc"><div class='inline'>
137
+ <p>Returns the value of attribute cabeza.</p>
138
+ </div></span>
139
+
140
+ </li>
141
+
142
+
143
+ <li class="public ">
144
+ <span class="summary_signature">
145
+
146
+ <a href="#cola-instance_method" title="#cola (instance method)">#<strong>cola</strong> &#x21d2; Object </a>
147
+
148
+
149
+
150
+ </span>
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'>
164
+ <p>Returns the value of attribute cola.</p>
165
+ </div></span>
166
+
167
+ </li>
168
+
169
+
170
+ </ul>
171
+
172
+
173
+
174
+
175
+
176
+ <h2>
177
+ Instance Method Summary
178
+ <small><a href="#" class="summary_toggle">collapse</a></small>
179
+ </h2>
180
+
181
+ <ul class="summary">
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#%3C%3D%3E-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(otra_lista) &#x21d2; Object </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+ <span class="summary_desc"><div class='inline'></div></span>
201
+
202
+ </li>
203
+
204
+
205
+ <li class="public ">
206
+ <span class="summary_signature">
207
+
208
+ <a href="#add-instance_method" title="#add (instance method)">#<strong>add</strong>(value) &#x21d2; Object </a>
209
+
210
+
211
+
212
+ </span>
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+ <span class="summary_desc"><div class='inline'></div></span>
223
+
224
+ </li>
225
+
226
+
227
+ <li class="public ">
228
+ <span class="summary_signature">
229
+
230
+ <a href="#add_from_tail-instance_method" title="#add_from_tail (instance method)">#<strong>add_from_tail</strong>(value) &#x21d2; Object </a>
231
+
232
+
233
+
234
+ </span>
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+ <span class="summary_desc"><div class='inline'></div></span>
245
+
246
+ </li>
247
+
248
+
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong> &#x21d2; Object </a>
253
+
254
+
255
+
256
+ </span>
257
+
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+ <span class="summary_desc"><div class='inline'></div></span>
267
+
268
+ </li>
269
+
270
+
271
+ <li class="public ">
272
+ <span class="summary_signature">
273
+
274
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(inicio = nil) &#x21d2; List </a>
275
+
276
+
277
+
278
+ </span>
279
+
280
+
281
+ <span class="note title constructor">constructor</span>
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+ <span class="summary_desc"><div class='inline'>
291
+ <p>A new instance of List.</p>
292
+ </div></span>
293
+
294
+ </li>
295
+
296
+
297
+ <li class="public ">
298
+ <span class="summary_signature">
299
+
300
+ <a href="#remove-instance_method" title="#remove (instance method)">#<strong>remove</strong> &#x21d2; Object </a>
301
+
302
+
303
+
304
+ </span>
305
+
306
+
307
+
308
+
309
+
310
+
311
+
312
+
313
+
314
+ <span class="summary_desc"><div class='inline'></div></span>
315
+
316
+ </li>
317
+
318
+
319
+ <li class="public ">
320
+ <span class="summary_signature">
321
+
322
+ <a href="#remove_from_tail-instance_method" title="#remove_from_tail (instance method)">#<strong>remove_from_tail</strong> &#x21d2; Object </a>
323
+
324
+
325
+
326
+ </span>
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+ <span class="summary_desc"><div class='inline'></div></span>
337
+
338
+ </li>
339
+
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
345
+
346
+
347
+
348
+ </span>
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+
357
+
358
+ <span class="summary_desc"><div class='inline'></div></span>
359
+
360
+ </li>
361
+
362
+
363
+ </ul>
364
+
365
+
366
+
367
+
368
+ <div id="constructor_details" class="method_details_list">
369
+ <h2>Constructor Details</h2>
370
+
371
+ <div class="method_details first">
372
+ <h3 class="signature first" id="initialize-instance_method">
373
+
374
+ #<strong>initialize</strong>(inicio = nil) &#x21d2; <tt><span class='object_link'><a href="" title="List (class)">List</a></span></tt>
375
+
376
+
377
+
378
+
379
+
380
+ </h3><div class="docstring">
381
+ <div class="discussion">
382
+
383
+ <p>Returns a new instance of List</p>
384
+
385
+
386
+ </div>
387
+ </div>
388
+ <div class="tags">
389
+
390
+
391
+ </div><table class="source_code">
392
+ <tr>
393
+ <td>
394
+ <pre class="lines">
395
+
396
+
397
+ 9
398
+ 10
399
+ 11</pre>
400
+ </td>
401
+ <td>
402
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 9</span>
403
+
404
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_inicio'>inicio</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
405
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='const'>Node</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_inicio'>inicio</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_inicio'>inicio</span>
406
+ <span class='kw'>end</span></pre>
407
+ </td>
408
+ </tr>
409
+ </table>
410
+ </div>
411
+
412
+ </div>
413
+
414
+ <div id="instance_attr_details" class="attr_details">
415
+ <h2>Instance Attribute Details</h2>
416
+
417
+
418
+ <span id="cabeza=-instance_method"></span>
419
+ <div class="method_details first">
420
+ <h3 class="signature first" id="cabeza-instance_method">
421
+
422
+ #<strong>cabeza</strong> &#x21d2; <tt>Object</tt>
423
+
424
+
425
+
426
+
427
+
428
+ </h3><div class="docstring">
429
+ <div class="discussion">
430
+
431
+ <p>Returns the value of attribute cabeza</p>
432
+
433
+
434
+ </div>
435
+ </div>
436
+ <div class="tags">
437
+
438
+
439
+ </div><table class="source_code">
440
+ <tr>
441
+ <td>
442
+ <pre class="lines">
443
+
444
+
445
+ 7
446
+ 8
447
+ 9</pre>
448
+ </td>
449
+ <td>
450
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 7</span>
451
+
452
+ <span class='kw'>def</span> <span class='id identifier rubyid_cabeza'>cabeza</span>
453
+ <span class='ivar'>@cabeza</span>
454
+ <span class='kw'>end</span></pre>
455
+ </td>
456
+ </tr>
457
+ </table>
458
+ </div>
459
+
460
+
461
+ <span id="cola=-instance_method"></span>
462
+ <div class="method_details ">
463
+ <h3 class="signature " id="cola-instance_method">
464
+
465
+ #<strong>cola</strong> &#x21d2; <tt>Object</tt>
466
+
467
+
468
+
469
+
470
+
471
+ </h3><div class="docstring">
472
+ <div class="discussion">
473
+
474
+ <p>Returns the value of attribute cola</p>
475
+
476
+
477
+ </div>
478
+ </div>
479
+ <div class="tags">
480
+
481
+
482
+ </div><table class="source_code">
483
+ <tr>
484
+ <td>
485
+ <pre class="lines">
486
+
487
+
488
+ 8
489
+ 9
490
+ 10</pre>
491
+ </td>
492
+ <td>
493
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 8</span>
494
+
495
+ <span class='kw'>def</span> <span class='id identifier rubyid_cola'>cola</span>
496
+ <span class='ivar'>@cola</span>
497
+ <span class='kw'>end</span></pre>
498
+ </td>
499
+ </tr>
500
+ </table>
501
+ </div>
502
+
503
+ </div>
504
+
505
+
506
+ <div id="instance_method_details" class="method_details_list">
507
+ <h2>Instance Method Details</h2>
508
+
509
+
510
+ <div class="method_details first">
511
+ <h3 class="signature first" id="<=>-instance_method">
512
+
513
+ #<strong>&lt;=&gt;</strong>(otra_lista) &#x21d2; <tt>Object</tt>
514
+
515
+
516
+
517
+
518
+
519
+ </h3><table class="source_code">
520
+ <tr>
521
+ <td>
522
+ <pre class="lines">
523
+
524
+
525
+ 50
526
+ 51
527
+ 52</pre>
528
+ </td>
529
+ <td>
530
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 50</span>
531
+
532
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_otra_lista'>otra_lista</span>
533
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_otra_lista'>otra_lista</span><span class='period'>.</span><span class='id identifier rubyid_count'>count</span>
534
+ <span class='kw'>end</span></pre>
535
+ </td>
536
+ </tr>
537
+ </table>
538
+ </div>
539
+
540
+ <div class="method_details ">
541
+ <h3 class="signature " id="add-instance_method">
542
+
543
+ #<strong>add</strong>(value) &#x21d2; <tt>Object</tt>
544
+
545
+
546
+
547
+
548
+
549
+ </h3><table class="source_code">
550
+ <tr>
551
+ <td>
552
+ <pre class="lines">
553
+
554
+
555
+ 13
556
+ 14
557
+ 15
558
+ 16
559
+ 17
560
+ 18
561
+ 19</pre>
562
+ </td>
563
+ <td>
564
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 13</span>
565
+
566
+ <span class='kw'>def</span> <span class='id identifier rubyid_add'>add</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
567
+ <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'>Node</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
568
+ <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
569
+ <span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_before'>before</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span>
570
+
571
+ <span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span>
572
+ <span class='kw'>end</span></pre>
573
+ </td>
574
+ </tr>
575
+ </table>
576
+ </div>
577
+
578
+ <div class="method_details ">
579
+ <h3 class="signature " id="add_from_tail-instance_method">
580
+
581
+ #<strong>add_from_tail</strong>(value) &#x21d2; <tt>Object</tt>
582
+
583
+
584
+
585
+
586
+
587
+ </h3><table class="source_code">
588
+ <tr>
589
+ <td>
590
+ <pre class="lines">
591
+
592
+
593
+ 21
594
+ 22
595
+ 23
596
+ 24
597
+ 25
598
+ 26
599
+ 27</pre>
600
+ </td>
601
+ <td>
602
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 21</span>
603
+
604
+ <span class='kw'>def</span> <span class='id identifier rubyid_add_from_tail'>add_from_tail</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
605
+ <span class='id identifier rubyid_node'>node</span> <span class='op'>=</span> <span class='const'>Node</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_value'>value</span><span class='rparen'>)</span>
606
+ <span class='id identifier rubyid_node'>node</span><span class='period'>.</span><span class='id identifier rubyid_before'>before</span> <span class='op'>=</span> <span class='ivar'>@cola</span>
607
+ <span class='ivar'>@cola</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span>
608
+
609
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='id identifier rubyid_node'>node</span>
610
+ <span class='kw'>end</span></pre>
611
+ </td>
612
+ </tr>
613
+ </table>
614
+ </div>
615
+
616
+ <div class="method_details ">
617
+ <h3 class="signature " id="each-instance_method">
618
+
619
+ #<strong>each</strong> &#x21d2; <tt>Object</tt>
620
+
621
+
622
+
623
+
624
+
625
+ </h3><table class="source_code">
626
+ <tr>
627
+ <td>
628
+ <pre class="lines">
629
+
630
+
631
+ 43
632
+ 44
633
+ 45
634
+ 46
635
+ 47
636
+ 48
637
+ 49</pre>
638
+ </td>
639
+ <td>
640
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 43</span>
641
+
642
+ <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
643
+ <span class='id identifier rubyid_aux'>aux</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
644
+ <span class='kw'>while</span> <span class='id identifier rubyid_aux'>aux</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='kw'>do</span>
645
+ <span class='kw'>yield</span> <span class='id identifier rubyid_aux'>aux</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
646
+ <span class='id identifier rubyid_aux'>aux</span> <span class='op'>=</span> <span class='id identifier rubyid_aux'>aux</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
647
+ <span class='kw'>end</span>
648
+ <span class='kw'>end</span></pre>
649
+ </td>
650
+ </tr>
651
+ </table>
652
+ </div>
653
+
654
+ <div class="method_details ">
655
+ <h3 class="signature " id="remove-instance_method">
656
+
657
+ #<strong>remove</strong> &#x21d2; <tt>Object</tt>
658
+
659
+
660
+
661
+
662
+
663
+ </h3><table class="source_code">
664
+ <tr>
665
+ <td>
666
+ <pre class="lines">
667
+
668
+
669
+ 29
670
+ 30
671
+ 31</pre>
672
+ </td>
673
+ <td>
674
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 29</span>
675
+
676
+ <span class='kw'>def</span> <span class='id identifier rubyid_remove'>remove</span>
677
+ <span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span>
678
+ <span class='kw'>end</span></pre>
679
+ </td>
680
+ </tr>
681
+ </table>
682
+ </div>
683
+
684
+ <div class="method_details ">
685
+ <h3 class="signature " id="remove_from_tail-instance_method">
686
+
687
+ #<strong>remove_from_tail</strong> &#x21d2; <tt>Object</tt>
688
+
689
+
690
+
691
+
692
+
693
+ </h3><table class="source_code">
694
+ <tr>
695
+ <td>
696
+ <pre class="lines">
697
+
698
+
699
+ 33
700
+ 34
701
+ 35
702
+ 36</pre>
703
+ </td>
704
+ <td>
705
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 33</span>
706
+
707
+ <span class='kw'>def</span> <span class='id identifier rubyid_remove_from_tail'>remove_from_tail</span>
708
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='ivar'>@cola</span><span class='period'>.</span><span class='id identifier rubyid_before'>before</span>
709
+ <span class='ivar'>@cola</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='op'>=</span> <span class='kw'>nil</span>
710
+ <span class='kw'>end</span></pre>
711
+ </td>
712
+ </tr>
713
+ </table>
714
+ </div>
715
+
716
+ <div class="method_details ">
717
+ <h3 class="signature " id="to_s-instance_method">
718
+
719
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
720
+
721
+
722
+
723
+
724
+
725
+ </h3><table class="source_code">
726
+ <tr>
727
+ <td>
728
+ <pre class="lines">
729
+
730
+
731
+ 37
732
+ 38
733
+ 39
734
+ 40
735
+ 41
736
+ 42</pre>
737
+ </td>
738
+ <td>
739
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06.rb', line 37</span>
740
+
741
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
742
+ <span class='kw'>while</span> <span class='ivar'>@cabeza</span> <span class='op'>!=</span> <span class='kw'>nil</span> <span class='kw'>do</span>
743
+ <span class='id identifier rubyid_puts'>puts</span> <span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
744
+ <span class='id identifier rubyid_remove'>remove</span><span class='lparen'>(</span><span class='rparen'>)</span>
745
+ <span class='kw'>end</span>
746
+ <span class='kw'>end</span></pre>
747
+ </td>
748
+ </tr>
749
+ </table>
750
+ </div>
751
+
752
+ </div>
753
+
754
+ </div>
755
+
756
+ <div id="footer">
757
+ Generated on Tue Nov 22 18:46:04 2016 by
758
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
759
+ 0.9.5 (ruby-2.3.0).
760
+ </div>
761
+
762
+ </div>
763
+ </body>
764
+ </html>