Alimento 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +6 -0
- data/.gitignore +12 -0
- data/.rake_tasks~ +8 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Alimento.gemspec +39 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/README.md +35 -0
- data/Rakefile +78 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimentos.html +1854 -0
- data/docs/ListaDoble.html +1236 -0
- data/docs/Nodo.html +398 -0
- data/docs/_index.html +133 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +492 -0
- data/docs/file.README.html +117 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +117 -0
- data/docs/js/app.js +248 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +299 -0
- data/docs/top-level-namespace.html +110 -0
- data/lib/Alimento/alimentos.rb +193 -0
- data/lib/Alimento/glucemico.rb +333 -0
- data/lib/Alimento/lista_doble.rb +155 -0
- data/lib/Alimento/ordenacion.rb +321 -0
- data/lib/Alimento/tipo_alimento.rb +29 -0
- data/lib/Alimento/version.rb +3 -0
- data/lib/Alimento.rb +13 -0
- metadata +177 -0
@@ -0,0 +1,1236 @@
|
|
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: ListaDoble
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.9
|
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 = "ListaDoble";
|
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?1"></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> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">ListaDoble</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
|
+
<div id="content"><h1>Class: ListaDoble
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">ListaDoble</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
<dl>
|
91
|
+
<dt>Includes:</dt>
|
92
|
+
<dd>Enumerable</dd>
|
93
|
+
</dl>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
<dl>
|
101
|
+
<dt>Defined in:</dt>
|
102
|
+
<dd>lib/Alimento/lista_doble.rb</dd>
|
103
|
+
</dl>
|
104
|
+
|
105
|
+
</div>
|
106
|
+
|
107
|
+
<h2>Overview</h2><div class="docstring">
|
108
|
+
<div class="discussion">
|
109
|
+
|
110
|
+
<p>Returns objeto convertidos con el formato string</p>
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
</div>
|
115
|
+
<div class="tags">
|
116
|
+
|
117
|
+
<p class="tag_title">Returns:</p>
|
118
|
+
<ul class="return">
|
119
|
+
|
120
|
+
<li>
|
121
|
+
|
122
|
+
|
123
|
+
<span class='type'>(<tt>String</tt>)</span>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
—
|
128
|
+
<div class='inline'>
|
129
|
+
<p>objeto convertidos con el formato string</p>
|
130
|
+
</div>
|
131
|
+
|
132
|
+
</li>
|
133
|
+
|
134
|
+
</ul>
|
135
|
+
|
136
|
+
</div>
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
141
|
+
<ul class="summary">
|
142
|
+
|
143
|
+
<li class="public ">
|
144
|
+
<span class="summary_signature">
|
145
|
+
|
146
|
+
<a href="#cabeza-instance_method" title="#cabeza (instance method)">#<strong>cabeza</strong> ⇒ 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'></div></span>
|
164
|
+
|
165
|
+
</li>
|
166
|
+
|
167
|
+
|
168
|
+
<li class="public ">
|
169
|
+
<span class="summary_signature">
|
170
|
+
|
171
|
+
<a href="#cola-instance_method" title="#cola (instance method)">#<strong>cola</strong> ⇒ Object </a>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
</span>
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
<span class="summary_desc"><div class='inline'>
|
189
|
+
<p>Returns the value of attribute cola.</p>
|
190
|
+
</div></span>
|
191
|
+
|
192
|
+
</li>
|
193
|
+
|
194
|
+
|
195
|
+
</ul>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
<h2>
|
202
|
+
Instance Method Summary
|
203
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
204
|
+
</h2>
|
205
|
+
|
206
|
+
<ul class="summary">
|
207
|
+
|
208
|
+
<li class="public ">
|
209
|
+
<span class="summary_signature">
|
210
|
+
|
211
|
+
<a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong> ⇒ String </a>
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<span class="summary_desc"><div class='inline'>
|
226
|
+
<p>Objeto convertidos con el formato string del recorrido de los nodos.</p>
|
227
|
+
</div></span>
|
228
|
+
|
229
|
+
</li>
|
230
|
+
|
231
|
+
|
232
|
+
<li class="public ">
|
233
|
+
<span class="summary_signature">
|
234
|
+
|
235
|
+
<a href="#extraer-instance_method" title="#extraer (instance method)">#<strong>extraer</strong> ⇒ String </a>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'>
|
250
|
+
<p>Objeto convertidos con el formato string del nodo eliminado.</p>
|
251
|
+
</div></span>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
|
256
|
+
<li class="public ">
|
257
|
+
<span class="summary_signature">
|
258
|
+
|
259
|
+
<a href="#get_final-instance_method" title="#get_final (instance method)">#<strong>get_final</strong> ⇒ String </a>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</span>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<span class="summary_desc"><div class='inline'>
|
274
|
+
<p>Objeto convertidos con el formato string del nodo que quiere mostrar.</p>
|
275
|
+
</div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#get_inicio-instance_method" title="#get_inicio (instance method)">#<strong>get_inicio</strong> ⇒ String </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<span class="summary_desc"><div class='inline'>
|
298
|
+
<p>Devuelve el elemento inicial de la lista.</p>
|
299
|
+
</div></span>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> ⇒ ListaDoble </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
<span class="note title constructor">constructor</span>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
<span class="summary_desc"><div class='inline'>
|
324
|
+
<p>Contructor de la clase Lista.</p>
|
325
|
+
</div></span>
|
326
|
+
|
327
|
+
</li>
|
328
|
+
|
329
|
+
|
330
|
+
<li class="public ">
|
331
|
+
<span class="summary_signature">
|
332
|
+
|
333
|
+
<a href="#insertar-instance_method" title="#insertar (instance method)">#<strong>insertar</strong>(elemento) ⇒ String </a>
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</span>
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
<span class="summary_desc"><div class='inline'>
|
348
|
+
<p>Objeto convertidos con el formato string del nodo que quiere añadir.</p>
|
349
|
+
</div></span>
|
350
|
+
|
351
|
+
</li>
|
352
|
+
|
353
|
+
|
354
|
+
<li class="public ">
|
355
|
+
<span class="summary_signature">
|
356
|
+
|
357
|
+
<a href="#insertar_final-instance_method" title="#insertar_final (instance method)">#<strong>insertar_final</strong>(elemento) ⇒ String </a>
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
</span>
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
<span class="summary_desc"><div class='inline'>
|
372
|
+
<p>Objeto convertidos con el formato string del nodo añadido.</p>
|
373
|
+
</div></span>
|
374
|
+
|
375
|
+
</li>
|
376
|
+
|
377
|
+
|
378
|
+
<li class="public ">
|
379
|
+
<span class="summary_signature">
|
380
|
+
|
381
|
+
<a href="#insertar_muchos-instance_method" title="#insertar_muchos (instance method)">#<strong>insertar_muchos</strong>(vector) ⇒ String </a>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
</span>
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
<span class="summary_desc"><div class='inline'>
|
396
|
+
<p>Objeto convertidos con el formato string de los nodos añadidos.</p>
|
397
|
+
</div></span>
|
398
|
+
|
399
|
+
</li>
|
400
|
+
|
401
|
+
|
402
|
+
<li class="public ">
|
403
|
+
<span class="summary_signature">
|
404
|
+
|
405
|
+
<a href="#insertar_muchos_final-instance_method" title="#insertar_muchos_final (instance method)">#<strong>insertar_muchos_final</strong>(vector) ⇒ String </a>
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</span>
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
<span class="summary_desc"><div class='inline'>
|
420
|
+
<p>Inserta varios elementos por el final de la lista Se le pasa como argumento
|
421
|
+
un vector con los elementos a insertar en la lista.</p>
|
422
|
+
</div></span>
|
423
|
+
|
424
|
+
</li>
|
425
|
+
|
426
|
+
|
427
|
+
</ul>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
<div id="constructor_details" class="method_details_list">
|
432
|
+
<h2>Constructor Details</h2>
|
433
|
+
|
434
|
+
<div class="method_details first">
|
435
|
+
<h3 class="signature first" id="initialize-instance_method">
|
436
|
+
|
437
|
+
#<strong>initialize</strong> ⇒ <tt><span class='object_link'><a href="" title="ListaDoble (class)">ListaDoble</a></span></tt>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
</h3><div class="docstring">
|
444
|
+
<div class="discussion">
|
445
|
+
|
446
|
+
<p>Contructor de la clase Lista</p>
|
447
|
+
|
448
|
+
|
449
|
+
</div>
|
450
|
+
</div>
|
451
|
+
<div class="tags">
|
452
|
+
|
453
|
+
|
454
|
+
</div><table class="source_code">
|
455
|
+
<tr>
|
456
|
+
<td>
|
457
|
+
<pre class="lines">
|
458
|
+
|
459
|
+
|
460
|
+
13
|
461
|
+
14
|
462
|
+
15
|
463
|
+
16</pre>
|
464
|
+
</td>
|
465
|
+
<td>
|
466
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 13</span>
|
467
|
+
|
468
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
469
|
+
<span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
470
|
+
<span class='ivar'>@cola</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
471
|
+
<span class='kw'>end</span></pre>
|
472
|
+
</td>
|
473
|
+
</tr>
|
474
|
+
</table>
|
475
|
+
</div>
|
476
|
+
|
477
|
+
</div>
|
478
|
+
|
479
|
+
<div id="instance_attr_details" class="attr_details">
|
480
|
+
<h2>Instance Attribute Details</h2>
|
481
|
+
|
482
|
+
|
483
|
+
<span id="cabeza=-instance_method"></span>
|
484
|
+
<div class="method_details first">
|
485
|
+
<h3 class="signature first" id="cabeza-instance_method">
|
486
|
+
|
487
|
+
#<strong>cabeza</strong> ⇒ <tt>Object</tt>
|
488
|
+
|
489
|
+
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
</h3><table class="source_code">
|
494
|
+
<tr>
|
495
|
+
<td>
|
496
|
+
<pre class="lines">
|
497
|
+
|
498
|
+
|
499
|
+
153
|
500
|
+
154
|
501
|
+
155</pre>
|
502
|
+
</td>
|
503
|
+
<td>
|
504
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 153</span>
|
505
|
+
|
506
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cabeza'>cabeza</span>
|
507
|
+
<span class='ivar'>@cabeza</span>
|
508
|
+
<span class='kw'>end</span></pre>
|
509
|
+
</td>
|
510
|
+
</tr>
|
511
|
+
</table>
|
512
|
+
</div>
|
513
|
+
|
514
|
+
|
515
|
+
<span id="cola=-instance_method"></span>
|
516
|
+
<div class="method_details ">
|
517
|
+
<h3 class="signature " id="cola-instance_method">
|
518
|
+
|
519
|
+
#<strong>cola</strong> ⇒ <tt>Object</tt>
|
520
|
+
|
521
|
+
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
</h3><div class="docstring">
|
526
|
+
<div class="discussion">
|
527
|
+
|
528
|
+
<p>Returns the value of attribute cola</p>
|
529
|
+
|
530
|
+
|
531
|
+
</div>
|
532
|
+
</div>
|
533
|
+
<div class="tags">
|
534
|
+
|
535
|
+
|
536
|
+
</div><table class="source_code">
|
537
|
+
<tr>
|
538
|
+
<td>
|
539
|
+
<pre class="lines">
|
540
|
+
|
541
|
+
|
542
|
+
154
|
543
|
+
155
|
544
|
+
156</pre>
|
545
|
+
</td>
|
546
|
+
<td>
|
547
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 154</span>
|
548
|
+
|
549
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cola'>cola</span>
|
550
|
+
<span class='ivar'>@cola</span>
|
551
|
+
<span class='kw'>end</span></pre>
|
552
|
+
</td>
|
553
|
+
</tr>
|
554
|
+
</table>
|
555
|
+
</div>
|
556
|
+
|
557
|
+
</div>
|
558
|
+
|
559
|
+
|
560
|
+
<div id="instance_method_details" class="method_details_list">
|
561
|
+
<h2>Instance Method Details</h2>
|
562
|
+
|
563
|
+
|
564
|
+
<div class="method_details first">
|
565
|
+
<h3 class="signature first" id="each-instance_method">
|
566
|
+
|
567
|
+
#<strong>each</strong> ⇒ <tt>String</tt>
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
</h3><div class="docstring">
|
574
|
+
<div class="discussion">
|
575
|
+
|
576
|
+
<p>Returns objeto convertidos con el formato string del recorrido de los nodos</p>
|
577
|
+
|
578
|
+
|
579
|
+
</div>
|
580
|
+
</div>
|
581
|
+
<div class="tags">
|
582
|
+
|
583
|
+
<p class="tag_title">Returns:</p>
|
584
|
+
<ul class="return">
|
585
|
+
|
586
|
+
<li>
|
587
|
+
|
588
|
+
|
589
|
+
<span class='type'>(<tt>String</tt>)</span>
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
—
|
594
|
+
<div class='inline'>
|
595
|
+
<p>objeto convertidos con el formato string del recorrido de los nodos</p>
|
596
|
+
</div>
|
597
|
+
|
598
|
+
</li>
|
599
|
+
|
600
|
+
</ul>
|
601
|
+
|
602
|
+
</div><table class="source_code">
|
603
|
+
<tr>
|
604
|
+
<td>
|
605
|
+
<pre class="lines">
|
606
|
+
|
607
|
+
|
608
|
+
20
|
609
|
+
21
|
610
|
+
22
|
611
|
+
23
|
612
|
+
24
|
613
|
+
25
|
614
|
+
26</pre>
|
615
|
+
</td>
|
616
|
+
<td>
|
617
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 20</span>
|
618
|
+
|
619
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
|
620
|
+
<span class='id identifier rubyid_nodo_aux'>nodo_aux</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
|
621
|
+
<span class='kw'>while</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span> <span class='op'>!=</span> <span class='kw'>nil</span>
|
622
|
+
<span class='kw'>yield</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
623
|
+
<span class='id identifier rubyid_nodo_aux'>nodo_aux</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span>
|
624
|
+
<span class='kw'>end</span>
|
625
|
+
<span class='kw'>end</span></pre>
|
626
|
+
</td>
|
627
|
+
</tr>
|
628
|
+
</table>
|
629
|
+
</div>
|
630
|
+
|
631
|
+
<div class="method_details ">
|
632
|
+
<h3 class="signature " id="extraer-instance_method">
|
633
|
+
|
634
|
+
#<strong>extraer</strong> ⇒ <tt>String</tt>
|
635
|
+
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
|
640
|
+
</h3><div class="docstring">
|
641
|
+
<div class="discussion">
|
642
|
+
|
643
|
+
<p>Returns objeto convertidos con el formato string del nodo eliminado</p>
|
644
|
+
|
645
|
+
|
646
|
+
</div>
|
647
|
+
</div>
|
648
|
+
<div class="tags">
|
649
|
+
|
650
|
+
<p class="tag_title">Returns:</p>
|
651
|
+
<ul class="return">
|
652
|
+
|
653
|
+
<li>
|
654
|
+
|
655
|
+
|
656
|
+
<span class='type'>(<tt>String</tt>)</span>
|
657
|
+
|
658
|
+
|
659
|
+
|
660
|
+
—
|
661
|
+
<div class='inline'>
|
662
|
+
<p>objeto convertidos con el formato string del nodo eliminado</p>
|
663
|
+
</div>
|
664
|
+
|
665
|
+
</li>
|
666
|
+
|
667
|
+
</ul>
|
668
|
+
|
669
|
+
</div><table class="source_code">
|
670
|
+
<tr>
|
671
|
+
<td>
|
672
|
+
<pre class="lines">
|
673
|
+
|
674
|
+
|
675
|
+
124
|
676
|
+
125
|
677
|
+
126
|
678
|
+
127
|
679
|
+
128
|
680
|
+
129
|
681
|
+
130
|
682
|
+
131
|
683
|
+
132
|
684
|
+
133
|
685
|
+
134</pre>
|
686
|
+
</td>
|
687
|
+
<td>
|
688
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 124</span>
|
689
|
+
|
690
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_extraer'>extraer</span>
|
691
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_is_empty'>is_empty</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
692
|
+
<span class='kw'>return</span> <span class='kw'>nil</span>
|
693
|
+
<span class='kw'>elsif</span>
|
694
|
+
<span class='id identifier rubyid_node_aux'>node_aux</span> <span class='op'>=</span> <span class='ivar'>@inicio</span>
|
695
|
+
<span class='ivar'>@inicio</span> <span class='op'>=</span> <span class='ivar'>@inicio</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span>
|
696
|
+
<span class='id identifier rubyid_node_aux'>node_aux</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
697
|
+
<span class='id identifier rubyid_node_aux'>node_aux</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
698
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_node_aux'>node_aux</span><span class='period'>.</span><span class='id identifier rubyid_value'>value</span>
|
699
|
+
<span class='kw'>end</span>
|
700
|
+
<span class='kw'>end</span></pre>
|
701
|
+
</td>
|
702
|
+
</tr>
|
703
|
+
</table>
|
704
|
+
</div>
|
705
|
+
|
706
|
+
<div class="method_details ">
|
707
|
+
<h3 class="signature " id="get_final-instance_method">
|
708
|
+
|
709
|
+
#<strong>get_final</strong> ⇒ <tt>String</tt>
|
710
|
+
|
711
|
+
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
</h3><div class="docstring">
|
716
|
+
<div class="discussion">
|
717
|
+
|
718
|
+
<p>Returns objeto convertidos con el formato string del nodo que quiere
|
719
|
+
mostrar</p>
|
720
|
+
|
721
|
+
|
722
|
+
</div>
|
723
|
+
</div>
|
724
|
+
<div class="tags">
|
725
|
+
|
726
|
+
<p class="tag_title">Returns:</p>
|
727
|
+
<ul class="return">
|
728
|
+
|
729
|
+
<li>
|
730
|
+
|
731
|
+
|
732
|
+
<span class='type'>(<tt>String</tt>)</span>
|
733
|
+
|
734
|
+
|
735
|
+
|
736
|
+
—
|
737
|
+
<div class='inline'>
|
738
|
+
<p>objeto convertidos con el formato string del nodo que quiere mostrar</p>
|
739
|
+
</div>
|
740
|
+
|
741
|
+
</li>
|
742
|
+
|
743
|
+
</ul>
|
744
|
+
|
745
|
+
</div><table class="source_code">
|
746
|
+
<tr>
|
747
|
+
<td>
|
748
|
+
<pre class="lines">
|
749
|
+
|
750
|
+
|
751
|
+
36
|
752
|
+
37
|
753
|
+
38</pre>
|
754
|
+
</td>
|
755
|
+
<td>
|
756
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 36</span>
|
757
|
+
|
758
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_final'>get_final</span>
|
759
|
+
<span class='kw'>return</span> <span class='ivar'>@final</span>
|
760
|
+
<span class='kw'>end</span></pre>
|
761
|
+
</td>
|
762
|
+
</tr>
|
763
|
+
</table>
|
764
|
+
</div>
|
765
|
+
|
766
|
+
<div class="method_details ">
|
767
|
+
<h3 class="signature " id="get_inicio-instance_method">
|
768
|
+
|
769
|
+
#<strong>get_inicio</strong> ⇒ <tt>String</tt>
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
|
774
|
+
|
775
|
+
</h3><div class="docstring">
|
776
|
+
<div class="discussion">
|
777
|
+
|
778
|
+
<p>Devuelve el elemento inicial de la lista</p>
|
779
|
+
|
780
|
+
|
781
|
+
</div>
|
782
|
+
</div>
|
783
|
+
<div class="tags">
|
784
|
+
|
785
|
+
<p class="tag_title">Returns:</p>
|
786
|
+
<ul class="return">
|
787
|
+
|
788
|
+
<li>
|
789
|
+
|
790
|
+
|
791
|
+
<span class='type'>(<tt>String</tt>)</span>
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
—
|
796
|
+
<div class='inline'>
|
797
|
+
<p>objeto convertidos con el formato string del nodo que quiere mostrar</p>
|
798
|
+
</div>
|
799
|
+
|
800
|
+
</li>
|
801
|
+
|
802
|
+
</ul>
|
803
|
+
|
804
|
+
</div><table class="source_code">
|
805
|
+
<tr>
|
806
|
+
<td>
|
807
|
+
<pre class="lines">
|
808
|
+
|
809
|
+
|
810
|
+
30
|
811
|
+
31
|
812
|
+
32</pre>
|
813
|
+
</td>
|
814
|
+
<td>
|
815
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 30</span>
|
816
|
+
|
817
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_get_inicio'>get_inicio</span>
|
818
|
+
<span class='kw'>return</span> <span class='ivar'>@cabeza</span>
|
819
|
+
<span class='kw'>end</span></pre>
|
820
|
+
</td>
|
821
|
+
</tr>
|
822
|
+
</table>
|
823
|
+
</div>
|
824
|
+
|
825
|
+
<div class="method_details ">
|
826
|
+
<h3 class="signature " id="insertar-instance_method">
|
827
|
+
|
828
|
+
#<strong>insertar</strong>(elemento) ⇒ <tt>String</tt>
|
829
|
+
|
830
|
+
|
831
|
+
|
832
|
+
|
833
|
+
|
834
|
+
</h3><div class="docstring">
|
835
|
+
<div class="discussion">
|
836
|
+
|
837
|
+
<p>Returns objeto convertidos con el formato string del nodo que quiere añadir</p>
|
838
|
+
|
839
|
+
|
840
|
+
</div>
|
841
|
+
</div>
|
842
|
+
<div class="tags">
|
843
|
+
<p class="tag_title">Parameters:</p>
|
844
|
+
<ul class="param">
|
845
|
+
|
846
|
+
<li>
|
847
|
+
|
848
|
+
<span class='name'>elemento</span>
|
849
|
+
|
850
|
+
|
851
|
+
<span class='type'>(<tt>String</tt>)</span>
|
852
|
+
|
853
|
+
|
854
|
+
|
855
|
+
—
|
856
|
+
<div class='inline'>
|
857
|
+
<p>nodo que quiere añadir</p>
|
858
|
+
</div>
|
859
|
+
|
860
|
+
</li>
|
861
|
+
|
862
|
+
</ul>
|
863
|
+
|
864
|
+
<p class="tag_title">Returns:</p>
|
865
|
+
<ul class="return">
|
866
|
+
|
867
|
+
<li>
|
868
|
+
|
869
|
+
|
870
|
+
<span class='type'>(<tt>String</tt>)</span>
|
871
|
+
|
872
|
+
|
873
|
+
|
874
|
+
—
|
875
|
+
<div class='inline'>
|
876
|
+
<p>objeto convertidos con el formato string del nodo que quiere añadir</p>
|
877
|
+
</div>
|
878
|
+
|
879
|
+
</li>
|
880
|
+
|
881
|
+
</ul>
|
882
|
+
|
883
|
+
</div><table class="source_code">
|
884
|
+
<tr>
|
885
|
+
<td>
|
886
|
+
<pre class="lines">
|
887
|
+
|
888
|
+
|
889
|
+
55
|
890
|
+
56
|
891
|
+
57
|
892
|
+
58
|
893
|
+
59
|
894
|
+
60
|
895
|
+
61
|
896
|
+
62
|
897
|
+
63
|
898
|
+
64
|
899
|
+
65
|
900
|
+
66
|
901
|
+
67
|
902
|
+
68
|
903
|
+
69
|
904
|
+
70
|
905
|
+
71
|
906
|
+
72
|
907
|
+
73
|
908
|
+
74</pre>
|
909
|
+
</td>
|
910
|
+
<td>
|
911
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 55</span>
|
912
|
+
|
913
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_insertar'>insertar</span><span class='lparen'>(</span><span class='id identifier rubyid_elemento'>elemento</span><span class='rparen'>)</span> <span class='comment'>#inserta por el inicio
|
914
|
+
</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="Nodo.html" title="Nodo (class)">Nodo</a></span></span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_elemento'>elemento</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
915
|
+
|
916
|
+
<span class='comment'>#if(is_empty())
|
917
|
+
</span>
|
918
|
+
|
919
|
+
<span class='kw'>if</span> <span class='lparen'>(</span><span class='ivar'>@cabeza</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>&&</span> <span class='ivar'>@cola</span> <span class='op'>==</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
920
|
+
<span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
921
|
+
<span class='ivar'>@final</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
922
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
923
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
924
|
+
<span class='comment'>#@final = @inicio
|
925
|
+
</span> <span class='kw'>elsif</span>
|
926
|
+
<span class='id identifier rubyid_aux'>aux</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
|
927
|
+
<span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
928
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='id identifier rubyid_aux'>aux</span>
|
929
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
930
|
+
<span class='id identifier rubyid_aux'>aux</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
|
931
|
+
<span class='kw'>end</span>
|
932
|
+
<span class='kw'>end</span></pre>
|
933
|
+
</td>
|
934
|
+
</tr>
|
935
|
+
</table>
|
936
|
+
</div>
|
937
|
+
|
938
|
+
<div class="method_details ">
|
939
|
+
<h3 class="signature " id="insertar_final-instance_method">
|
940
|
+
|
941
|
+
#<strong>insertar_final</strong>(elemento) ⇒ <tt>String</tt>
|
942
|
+
|
943
|
+
|
944
|
+
|
945
|
+
|
946
|
+
|
947
|
+
</h3><div class="docstring">
|
948
|
+
<div class="discussion">
|
949
|
+
|
950
|
+
<p>Returns objeto convertidos con el formato string del nodo añadido</p>
|
951
|
+
|
952
|
+
|
953
|
+
</div>
|
954
|
+
</div>
|
955
|
+
<div class="tags">
|
956
|
+
<p class="tag_title">Parameters:</p>
|
957
|
+
<ul class="param">
|
958
|
+
|
959
|
+
<li>
|
960
|
+
|
961
|
+
<span class='name'>elemento</span>
|
962
|
+
|
963
|
+
|
964
|
+
<span class='type'>(<tt>String</tt>)</span>
|
965
|
+
|
966
|
+
|
967
|
+
|
968
|
+
—
|
969
|
+
<div class='inline'>
|
970
|
+
<p>nodo que quieres añadir a la cola</p>
|
971
|
+
</div>
|
972
|
+
|
973
|
+
</li>
|
974
|
+
|
975
|
+
</ul>
|
976
|
+
|
977
|
+
<p class="tag_title">Returns:</p>
|
978
|
+
<ul class="return">
|
979
|
+
|
980
|
+
<li>
|
981
|
+
|
982
|
+
|
983
|
+
<span class='type'>(<tt>String</tt>)</span>
|
984
|
+
|
985
|
+
|
986
|
+
|
987
|
+
—
|
988
|
+
<div class='inline'>
|
989
|
+
<p>objeto convertidos con el formato string del nodo añadido</p>
|
990
|
+
</div>
|
991
|
+
|
992
|
+
</li>
|
993
|
+
|
994
|
+
</ul>
|
995
|
+
|
996
|
+
</div><table class="source_code">
|
997
|
+
<tr>
|
998
|
+
<td>
|
999
|
+
<pre class="lines">
|
1000
|
+
|
1001
|
+
|
1002
|
+
79
|
1003
|
+
80
|
1004
|
+
81
|
1005
|
+
82
|
1006
|
+
83
|
1007
|
+
84
|
1008
|
+
85
|
1009
|
+
86
|
1010
|
+
87
|
1011
|
+
88
|
1012
|
+
89
|
1013
|
+
90
|
1014
|
+
91
|
1015
|
+
92
|
1016
|
+
93
|
1017
|
+
94
|
1018
|
+
95</pre>
|
1019
|
+
</td>
|
1020
|
+
<td>
|
1021
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 79</span>
|
1022
|
+
|
1023
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_insertar_final'>insertar_final</span><span class='lparen'>(</span><span class='id identifier rubyid_elemento'>elemento</span><span class='rparen'>)</span>
|
1024
|
+
<span class='id identifier rubyid_nodo_aux'>nodo_aux</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_elemento'>elemento</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
1025
|
+
<span class='kw'>if</span><span class='lparen'>(</span><span class='id identifier rubyid_is_empty'>is_empty</span><span class='lparen'>(</span><span class='rparen'>)</span><span class='rparen'>)</span>
|
1026
|
+
<span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
1027
|
+
<span class='ivar'>@final</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
1028
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1029
|
+
<span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1030
|
+
<span class='ivar'>@final</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1031
|
+
<span class='ivar'>@final</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1032
|
+
<span class='comment'>#@final = @inicio
|
1033
|
+
</span> <span class='kw'>elsif</span>
|
1034
|
+
<span class='id identifier rubyid_aux'>aux</span> <span class='op'>=</span> <span class='ivar'>@final</span>
|
1035
|
+
<span class='ivar'>@final</span> <span class='op'>=</span> <span class='id identifier rubyid_nodo_aux'>nodo_aux</span>
|
1036
|
+
<span class='ivar'>@final</span><span class='period'>.</span><span class='id identifier rubyid_prev_node'>prev_node</span> <span class='op'>=</span> <span class='id identifier rubyid_aux'>aux</span>
|
1037
|
+
<span class='ivar'>@final</span><span class='period'>.</span><span class='id identifier rubyid_next_node'>next_node</span> <span class='op'>=</span> <span class='kw'>nil</span>
|
1038
|
+
<span class='kw'>end</span>
|
1039
|
+
<span class='kw'>end</span></pre>
|
1040
|
+
</td>
|
1041
|
+
</tr>
|
1042
|
+
</table>
|
1043
|
+
</div>
|
1044
|
+
|
1045
|
+
<div class="method_details ">
|
1046
|
+
<h3 class="signature " id="insertar_muchos-instance_method">
|
1047
|
+
|
1048
|
+
#<strong>insertar_muchos</strong>(vector) ⇒ <tt>String</tt>
|
1049
|
+
|
1050
|
+
|
1051
|
+
|
1052
|
+
|
1053
|
+
|
1054
|
+
</h3><div class="docstring">
|
1055
|
+
<div class="discussion">
|
1056
|
+
|
1057
|
+
<p>Returns objeto convertidos con el formato string de los nodos añadidos</p>
|
1058
|
+
|
1059
|
+
|
1060
|
+
</div>
|
1061
|
+
</div>
|
1062
|
+
<div class="tags">
|
1063
|
+
<p class="tag_title">Parameters:</p>
|
1064
|
+
<ul class="param">
|
1065
|
+
|
1066
|
+
<li>
|
1067
|
+
|
1068
|
+
<span class='name'>vector</span>
|
1069
|
+
|
1070
|
+
|
1071
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1072
|
+
|
1073
|
+
|
1074
|
+
|
1075
|
+
—
|
1076
|
+
<div class='inline'>
|
1077
|
+
<p>insertar muchos nodos y llama a insertar un nodo</p>
|
1078
|
+
</div>
|
1079
|
+
|
1080
|
+
</li>
|
1081
|
+
|
1082
|
+
</ul>
|
1083
|
+
|
1084
|
+
<p class="tag_title">Returns:</p>
|
1085
|
+
<ul class="return">
|
1086
|
+
|
1087
|
+
<li>
|
1088
|
+
|
1089
|
+
|
1090
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1091
|
+
|
1092
|
+
|
1093
|
+
|
1094
|
+
—
|
1095
|
+
<div class='inline'>
|
1096
|
+
<p>objeto convertidos con el formato string de los nodos añadidos</p>
|
1097
|
+
</div>
|
1098
|
+
|
1099
|
+
</li>
|
1100
|
+
|
1101
|
+
</ul>
|
1102
|
+
|
1103
|
+
</div><table class="source_code">
|
1104
|
+
<tr>
|
1105
|
+
<td>
|
1106
|
+
<pre class="lines">
|
1107
|
+
|
1108
|
+
|
1109
|
+
100
|
1110
|
+
101
|
1111
|
+
102
|
1112
|
+
103
|
1113
|
+
104
|
1114
|
+
105
|
1115
|
+
106
|
1116
|
+
107</pre>
|
1117
|
+
</td>
|
1118
|
+
<td>
|
1119
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 100</span>
|
1120
|
+
|
1121
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_insertar_muchos'>insertar_muchos</span><span class='lparen'>(</span><span class='id identifier rubyid_vector'>vector</span><span class='rparen'>)</span> <span class='comment'>#inserta muchos por el inicio
|
1122
|
+
</span> <span class='id identifier rubyid_i'>i</span><span class='op'>=</span><span class='int'>0</span>
|
1123
|
+
|
1124
|
+
<span class='kw'>while</span> <span class='id identifier rubyid_i'>i</span><span class='op'><</span><span class='id identifier rubyid_vector'>vector</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
1125
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_insertar'>insertar</span><span class='lparen'>(</span><span class='id identifier rubyid_vector'>vector</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1126
|
+
<span class='id identifier rubyid_i'>i</span><span class='op'>=</span><span class='id identifier rubyid_i'>i</span><span class='op'>+</span><span class='int'>1</span>
|
1127
|
+
<span class='kw'>end</span>
|
1128
|
+
<span class='kw'>end</span></pre>
|
1129
|
+
</td>
|
1130
|
+
</tr>
|
1131
|
+
</table>
|
1132
|
+
</div>
|
1133
|
+
|
1134
|
+
<div class="method_details ">
|
1135
|
+
<h3 class="signature " id="insertar_muchos_final-instance_method">
|
1136
|
+
|
1137
|
+
#<strong>insertar_muchos_final</strong>(vector) ⇒ <tt>String</tt>
|
1138
|
+
|
1139
|
+
|
1140
|
+
|
1141
|
+
|
1142
|
+
|
1143
|
+
</h3><div class="docstring">
|
1144
|
+
<div class="discussion">
|
1145
|
+
|
1146
|
+
<p>Inserta varios elementos por el final de la lista Se le pasa como argumento
|
1147
|
+
un vector con los elementos a insertar en la lista</p>
|
1148
|
+
|
1149
|
+
|
1150
|
+
</div>
|
1151
|
+
</div>
|
1152
|
+
<div class="tags">
|
1153
|
+
<p class="tag_title">Parameters:</p>
|
1154
|
+
<ul class="param">
|
1155
|
+
|
1156
|
+
<li>
|
1157
|
+
|
1158
|
+
<span class='name'>vector</span>
|
1159
|
+
|
1160
|
+
|
1161
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
1165
|
+
—
|
1166
|
+
<div class='inline'>
|
1167
|
+
<p>insertar muchos nodos y llama a insertar un nodo</p>
|
1168
|
+
</div>
|
1169
|
+
|
1170
|
+
</li>
|
1171
|
+
|
1172
|
+
</ul>
|
1173
|
+
|
1174
|
+
<p class="tag_title">Returns:</p>
|
1175
|
+
<ul class="return">
|
1176
|
+
|
1177
|
+
<li>
|
1178
|
+
|
1179
|
+
|
1180
|
+
<span class='type'>(<tt>String</tt>)</span>
|
1181
|
+
|
1182
|
+
|
1183
|
+
|
1184
|
+
—
|
1185
|
+
<div class='inline'>
|
1186
|
+
<p>objeto convertidos con el formato string de los nodos añadidos</p>
|
1187
|
+
</div>
|
1188
|
+
|
1189
|
+
</li>
|
1190
|
+
|
1191
|
+
</ul>
|
1192
|
+
|
1193
|
+
</div><table class="source_code">
|
1194
|
+
<tr>
|
1195
|
+
<td>
|
1196
|
+
<pre class="lines">
|
1197
|
+
|
1198
|
+
|
1199
|
+
113
|
1200
|
+
114
|
1201
|
+
115
|
1202
|
+
116
|
1203
|
+
117
|
1204
|
+
118
|
1205
|
+
119
|
1206
|
+
120</pre>
|
1207
|
+
</td>
|
1208
|
+
<td>
|
1209
|
+
<pre class="code"><span class="info file"># File 'lib/Alimento/lista_doble.rb', line 113</span>
|
1210
|
+
|
1211
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_insertar_muchos_final'>insertar_muchos_final</span><span class='lparen'>(</span><span class='id identifier rubyid_vector'>vector</span><span class='rparen'>)</span>
|
1212
|
+
<span class='id identifier rubyid_i'>i</span><span class='op'>=</span><span class='int'>0</span>
|
1213
|
+
|
1214
|
+
<span class='kw'>while</span> <span class='id identifier rubyid_i'>i</span><span class='op'><</span><span class='id identifier rubyid_vector'>vector</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
1215
|
+
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_insertar_final'>insertar_final</span><span class='lparen'>(</span><span class='id identifier rubyid_vector'>vector</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
1216
|
+
<span class='id identifier rubyid_i'>i</span><span class='op'>=</span><span class='id identifier rubyid_i'>i</span><span class='op'>+</span><span class='int'>1</span>
|
1217
|
+
<span class='kw'>end</span>
|
1218
|
+
<span class='kw'>end</span></pre>
|
1219
|
+
</td>
|
1220
|
+
</tr>
|
1221
|
+
</table>
|
1222
|
+
</div>
|
1223
|
+
|
1224
|
+
</div>
|
1225
|
+
|
1226
|
+
</div>
|
1227
|
+
|
1228
|
+
<div id="footer">
|
1229
|
+
Generated on Wed Nov 15 11:51:03 2017 by
|
1230
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1231
|
+
0.9.9 (ruby-2.3.3).
|
1232
|
+
</div>
|
1233
|
+
|
1234
|
+
</div>
|
1235
|
+
</body>
|
1236
|
+
</html>
|