alimento_0100763478 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (60) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +12 -0
  4. data/.rspec_status +40 -0
  5. data/.travis.yml +6 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/Guardfile +82 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +19 -0
  11. data/Rakefile +6 -0
  12. data/alimento.gemspec +44 -0
  13. data/bin/console +14 -0
  14. data/bin/setup +8 -0
  15. data/docs/AGrupos.html +368 -0
  16. data/docs/Alimento.html +115 -0
  17. data/docs/Alimentos.html +683 -0
  18. data/docs/Lista.html +635 -0
  19. data/docs/Node.html +398 -0
  20. data/docs/_index.html +143 -0
  21. data/docs/class_list.html +51 -0
  22. data/docs/css/common.css +1 -0
  23. data/docs/css/full_list.css +58 -0
  24. data/docs/css/style.css +492 -0
  25. data/docs/doc/AGrupos.html +368 -0
  26. data/docs/doc/Aliementos.html +105 -0
  27. data/docs/doc/Alimento.html +115 -0
  28. data/docs/doc/Alimentos.html +683 -0
  29. data/docs/doc/Lista.html +635 -0
  30. data/docs/doc/Node.html +398 -0
  31. data/docs/doc/_index.html +148 -0
  32. data/docs/doc/class_list.html +51 -0
  33. data/docs/doc/css/common.css +1 -0
  34. data/docs/doc/css/full_list.css +58 -0
  35. data/docs/doc/css/style.css +492 -0
  36. data/docs/doc/file.README.html +99 -0
  37. data/docs/doc/file_list.html +56 -0
  38. data/docs/doc/frames.html +17 -0
  39. data/docs/doc/index.html +99 -0
  40. data/docs/doc/js/app.js +248 -0
  41. data/docs/doc/js/full_list.js +216 -0
  42. data/docs/doc/js/jquery.js +4 -0
  43. data/docs/doc/method_list.html +219 -0
  44. data/docs/doc/top-level-namespace.html +112 -0
  45. data/docs/file.README.html +99 -0
  46. data/docs/file_list.html +56 -0
  47. data/docs/frames.html +17 -0
  48. data/docs/index.html +99 -0
  49. data/docs/js/app.js +248 -0
  50. data/docs/js/full_list.js +216 -0
  51. data/docs/js/jquery.js +4 -0
  52. data/docs/method_list.html +219 -0
  53. data/docs/top-level-namespace.html +112 -0
  54. data/lib/alimento.rb +10 -0
  55. data/lib/alimento/alimento.rb +93 -0
  56. data/lib/alimento/funcional.rb +32 -0
  57. data/lib/alimento/lista.rb +47 -0
  58. data/lib/alimento/plato.rb +108 -0
  59. data/lib/alimento/version.rb +3 -0
  60. metadata +231 -0
@@ -0,0 +1,635 @@
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: Lista
8
+
9
+ &mdash; 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 = "Lista";
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> &raquo;
40
+
41
+
42
+ <span class="title">Lista</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: Lista
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">Lista</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/lista.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+
108
+
109
+
110
+
111
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
112
+ <ul class="summary">
113
+
114
+ <li class="public ">
115
+ <span class="summary_signature">
116
+
117
+ <a href="#cabeza-instance_method" title="#cabeza (instance method)">#<strong>cabeza</strong> &#x21d2; Object </a>
118
+
119
+
120
+
121
+ </span>
122
+
123
+
124
+
125
+
126
+ <span class="note title readonly">readonly</span>
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
+ <span class="note title readonly">readonly</span>
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+ <span class="summary_desc"><div class='inline'>
166
+ <p>Returns the value of attribute cola.</p>
167
+ </div></span>
168
+
169
+ </li>
170
+
171
+
172
+ </ul>
173
+
174
+
175
+
176
+
177
+
178
+ <h2>
179
+ Instance Method Summary
180
+ <small><a href="#" class="summary_toggle">collapse</a></small>
181
+ </h2>
182
+
183
+ <ul class="summary">
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#each-instance_method" title="#each (instance method)">#<strong>each</strong> {|aux.value| ... } &#x21d2; Object </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+ <span class="summary_desc"><div class='inline'></div></span>
203
+
204
+ </li>
205
+
206
+
207
+ <li class="public ">
208
+ <span class="summary_signature">
209
+
210
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong> &#x21d2; Lista </a>
211
+
212
+
213
+
214
+ </span>
215
+
216
+
217
+ <span class="note title constructor">constructor</span>
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+ <span class="summary_desc"><div class='inline'>
227
+ <p>A new instance of Lista.</p>
228
+ </div></span>
229
+
230
+ </li>
231
+
232
+
233
+ <li class="public ">
234
+ <span class="summary_signature">
235
+
236
+ <a href="#pop_first-instance_method" title="#pop_first (instance method)">#<strong>pop_first</strong> &#x21d2; Object </a>
237
+
238
+
239
+
240
+ </span>
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+ <span class="summary_desc"><div class='inline'></div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#pop_last-instance_method" title="#pop_last (instance method)">#<strong>pop_last</strong> &#x21d2; Object </a>
259
+
260
+
261
+
262
+ </span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ <span class="summary_desc"><div class='inline'></div></span>
273
+
274
+ </li>
275
+
276
+
277
+ <li class="public ">
278
+ <span class="summary_signature">
279
+
280
+ <a href="#push-instance_method" title="#push (instance method)">#<strong>push</strong>(other) &#x21d2; Object </a>
281
+
282
+
283
+
284
+ </span>
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+
294
+ <span class="summary_desc"><div class='inline'></div></span>
295
+
296
+ </li>
297
+
298
+
299
+ </ul>
300
+
301
+
302
+
303
+ <div id="constructor_details" class="method_details_list">
304
+ <h2>Constructor Details</h2>
305
+
306
+ <div class="method_details first">
307
+ <h3 class="signature first" id="initialize-instance_method">
308
+
309
+ #<strong>initialize</strong> &#x21d2; <tt><span class='object_link'><a href="" title="Lista (class)">Lista</a></span></tt>
310
+
311
+
312
+
313
+
314
+
315
+ </h3><div class="docstring">
316
+ <div class="discussion">
317
+
318
+ <p>Returns a new instance of Lista</p>
319
+
320
+
321
+ </div>
322
+ </div>
323
+ <div class="tags">
324
+
325
+
326
+ </div><table class="source_code">
327
+ <tr>
328
+ <td>
329
+ <pre class="lines">
330
+
331
+
332
+ 10
333
+ 11
334
+ 12</pre>
335
+ </td>
336
+ <td>
337
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 10</span>
338
+
339
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='rparen'>)</span>
340
+ <span class='ivar'>@cabeza</span><span class='comma'>,</span><span class='ivar'>@cola</span> <span class='op'>=</span> <span class='kw'>nil</span>
341
+ <span class='kw'>end</span></pre>
342
+ </td>
343
+ </tr>
344
+ </table>
345
+ </div>
346
+
347
+ </div>
348
+
349
+ <div id="instance_attr_details" class="attr_details">
350
+ <h2>Instance Attribute Details</h2>
351
+
352
+
353
+ <span id=""></span>
354
+ <div class="method_details first">
355
+ <h3 class="signature first" id="cabeza-instance_method">
356
+
357
+ #<strong>cabeza</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
358
+
359
+
360
+
361
+
362
+
363
+ </h3><div class="docstring">
364
+ <div class="discussion">
365
+
366
+ <p>Returns the value of attribute cabeza</p>
367
+
368
+
369
+ </div>
370
+ </div>
371
+ <div class="tags">
372
+
373
+
374
+ </div><table class="source_code">
375
+ <tr>
376
+ <td>
377
+ <pre class="lines">
378
+
379
+
380
+ 8
381
+ 9
382
+ 10</pre>
383
+ </td>
384
+ <td>
385
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 8</span>
386
+
387
+ <span class='kw'>def</span> <span class='id identifier rubyid_cabeza'>cabeza</span>
388
+ <span class='ivar'>@cabeza</span>
389
+ <span class='kw'>end</span></pre>
390
+ </td>
391
+ </tr>
392
+ </table>
393
+ </div>
394
+
395
+
396
+ <span id=""></span>
397
+ <div class="method_details ">
398
+ <h3 class="signature " id="cola-instance_method">
399
+
400
+ #<strong>cola</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
401
+
402
+
403
+
404
+
405
+
406
+ </h3><div class="docstring">
407
+ <div class="discussion">
408
+
409
+ <p>Returns the value of attribute cola</p>
410
+
411
+
412
+ </div>
413
+ </div>
414
+ <div class="tags">
415
+
416
+
417
+ </div><table class="source_code">
418
+ <tr>
419
+ <td>
420
+ <pre class="lines">
421
+
422
+
423
+ 8
424
+ 9
425
+ 10</pre>
426
+ </td>
427
+ <td>
428
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 8</span>
429
+
430
+ <span class='kw'>def</span> <span class='id identifier rubyid_cola'>cola</span>
431
+ <span class='ivar'>@cola</span>
432
+ <span class='kw'>end</span></pre>
433
+ </td>
434
+ </tr>
435
+ </table>
436
+ </div>
437
+
438
+ </div>
439
+
440
+
441
+ <div id="instance_method_details" class="method_details_list">
442
+ <h2>Instance Method Details</h2>
443
+
444
+
445
+ <div class="method_details first">
446
+ <h3 class="signature first" id="each-instance_method">
447
+
448
+ #<strong>each</strong> {|aux.value| ... } &#x21d2; <tt>Object</tt>
449
+
450
+
451
+
452
+
453
+
454
+ </h3><div class="docstring">
455
+ <div class="discussion">
456
+
457
+
458
+ </div>
459
+ </div>
460
+ <div class="tags">
461
+
462
+ <p class="tag_title">Yields:</p>
463
+ <ul class="yield">
464
+
465
+ <li>
466
+
467
+
468
+ <span class='type'>(<tt>aux.value</tt>)</span>
469
+
470
+
471
+
472
+ </li>
473
+
474
+ </ul>
475
+
476
+ </div><table class="source_code">
477
+ <tr>
478
+ <td>
479
+ <pre class="lines">
480
+
481
+
482
+ 14
483
+ 15
484
+ 16
485
+ 17
486
+ 18
487
+ 19
488
+ 20
489
+ 21</pre>
490
+ </td>
491
+ <td>
492
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 14</span>
493
+
494
+ <span class='kw'>def</span> <span class='id identifier rubyid_each'>each</span>
495
+ <span class='id identifier rubyid_aux'>aux</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
496
+ <span class='kw'>while</span> <span class='id identifier rubyid_aux'>aux</span> <span class='op'>!=</span> <span class='ivar'>@cola</span> <span class='kw'>do</span>
497
+ <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>
498
+ <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>
499
+ <span class='kw'>end</span>
500
+ <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>
501
+ <span class='kw'>end</span></pre>
502
+ </td>
503
+ </tr>
504
+ </table>
505
+ </div>
506
+
507
+ <div class="method_details ">
508
+ <h3 class="signature " id="pop_first-instance_method">
509
+
510
+ #<strong>pop_first</strong> &#x21d2; <tt>Object</tt>
511
+
512
+
513
+
514
+
515
+
516
+ </h3><table class="source_code">
517
+ <tr>
518
+ <td>
519
+ <pre class="lines">
520
+
521
+
522
+ 40
523
+ 41
524
+ 42</pre>
525
+ </td>
526
+ <td>
527
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 40</span>
528
+
529
+ <span class='kw'>def</span> <span class='id identifier rubyid_pop_first'>pop_first</span><span class='lparen'>(</span><span class='rparen'>)</span>
530
+ <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>
531
+ <span class='kw'>end</span></pre>
532
+ </td>
533
+ </tr>
534
+ </table>
535
+ </div>
536
+
537
+ <div class="method_details ">
538
+ <h3 class="signature " id="pop_last-instance_method">
539
+
540
+ #<strong>pop_last</strong> &#x21d2; <tt>Object</tt>
541
+
542
+
543
+
544
+
545
+
546
+ </h3><table class="source_code">
547
+ <tr>
548
+ <td>
549
+ <pre class="lines">
550
+
551
+
552
+ 44
553
+ 45
554
+ 46</pre>
555
+ </td>
556
+ <td>
557
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 44</span>
558
+
559
+ <span class='kw'>def</span> <span class='id identifier rubyid_pop_last'>pop_last</span><span class='lparen'>(</span><span class='rparen'>)</span>
560
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='ivar'>@cola</span><span class='period'>.</span><span class='id identifier rubyid_prev'>prev</span>
561
+ <span class='kw'>end</span></pre>
562
+ </td>
563
+ </tr>
564
+ </table>
565
+ </div>
566
+
567
+ <div class="method_details ">
568
+ <h3 class="signature " id="push-instance_method">
569
+
570
+ #<strong>push</strong>(other) &#x21d2; <tt>Object</tt>
571
+
572
+
573
+
574
+
575
+
576
+ </h3><table class="source_code">
577
+ <tr>
578
+ <td>
579
+ <pre class="lines">
580
+
581
+
582
+ 23
583
+ 24
584
+ 25
585
+ 26
586
+ 27
587
+ 28
588
+ 29
589
+ 30
590
+ 31
591
+ 32
592
+ 33
593
+ 34
594
+ 35
595
+ 36
596
+ 37
597
+ 38</pre>
598
+ </td>
599
+ <td>
600
+ <pre class="code"><span class="info file"># File 'lib/lista.rb', line 23</span>
601
+
602
+ <span class='kw'>def</span> <span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
603
+ <span class='kw'>if</span> <span class='ivar'>@cabeza</span> <span class='op'>==</span> <span class='kw'>nil</span>
604
+ <span class='ivar'>@cabeza</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span>
605
+ <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
606
+ <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_prev'>prev</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
607
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span>
608
+ <span class='kw'>end</span>
609
+
610
+ <span class='kw'>if</span> <span class='ivar'>@cabeza</span> <span class='op'>!=</span> <span class='kw'>nil</span>
611
+ <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_next'>next</span> <span class='op'>=</span> <span class='ivar'>@cabeza</span>
612
+ <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_prev'>prev</span> <span class='op'>=</span> <span class='ivar'>@cola</span>
613
+ <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_other'>other</span>
614
+ <span class='ivar'>@cabeza</span><span class='period'>.</span><span class='id identifier rubyid_prev'>prev</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span>
615
+ <span class='ivar'>@cola</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span>
616
+ <span class='kw'>end</span>
617
+ <span class='kw'>end</span></pre>
618
+ </td>
619
+ </tr>
620
+ </table>
621
+ </div>
622
+
623
+ </div>
624
+
625
+ </div>
626
+
627
+ <div id="footer">
628
+ Generated on Wed Nov 15 09:52:58 2017 by
629
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
630
+ 0.9.9 (ruby-2.3.0).
631
+ </div>
632
+
633
+ </div>
634
+ </body>
635
+ </html>