lpp1920 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,542 @@
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: MenuEficiente
8
+
9
+ &mdash; Documentation by YARD 0.9.20
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 = "MenuEficiente";
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 (M)</a> &raquo;
40
+
41
+
42
+ <span class="title">MenuEficiente</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: MenuEficiente
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName"><span class='object_link'><a href="Menu.html" title="Menu (class)">Menu</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Menu.html" title="Menu (class)">Menu</a></span></li>
78
+
79
+ <li class="next">MenuEficiente</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</dd>
95
+ </dl>
96
+
97
+
98
+
99
+
100
+
101
+
102
+ <dl>
103
+ <dt>Defined in:</dt>
104
+ <dd>lib/menu.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="#tipo_menu-instance_method" title="#tipo_menu (instance method)">#<strong>tipo_menu</strong> &#x21d2; Object </a>
120
+
121
+
122
+
123
+ </span>
124
+
125
+
126
+
127
+
128
+ <span class="note title readonly">readonly</span>
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'>
139
+ <p>Returns the value of attribute tipo_menu.</p>
140
+ </div></span>
141
+
142
+ </li>
143
+
144
+
145
+ </ul>
146
+
147
+
148
+
149
+
150
+
151
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Menu.html" title="Menu (class)">Menu</a></span></h3>
152
+ <p class="inherited"><span class='object_link'><a href="Menu.html#platos-instance_method" title="Menu#platos (method)">#platos</a></span></p>
153
+
154
+
155
+
156
+ <h2>
157
+ Instance Method Summary
158
+ <small><a href="#" class="summary_toggle">collapse</a></small>
159
+ </h2>
160
+
161
+ <ul class="summary">
162
+
163
+ <li class="public ">
164
+ <span class="summary_signature">
165
+
166
+ <a href="#<=>-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(another) &#x21d2; Object </a>
167
+
168
+
169
+
170
+ </span>
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+ <span class="summary_desc"><div class='inline'></div></span>
181
+
182
+ </li>
183
+
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(platos) &#x21d2; MenuEficiente </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+
195
+ <span class="note title constructor">constructor</span>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+ <span class="summary_desc"><div class='inline'>
205
+ <p>A new instance of MenuEficiente.</p>
206
+ </div></span>
207
+
208
+ </li>
209
+
210
+
211
+ <li class="public ">
212
+ <span class="summary_signature">
213
+
214
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
215
+
216
+
217
+
218
+ </span>
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+ <span class="summary_desc"><div class='inline'></div></span>
229
+
230
+ </li>
231
+
232
+
233
+ <li class="public ">
234
+ <span class="summary_signature">
235
+
236
+ <a href="#total_gases-instance_method" title="#total_gases (instance method)">#<strong>total_gases</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="#total_terreno-instance_method" title="#total_terreno (instance method)">#<strong>total_terreno</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
+ </ul>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Menu.html" title="Menu (class)">Menu</a></span></h3>
291
+ <p class="inherited"><span class='object_link'><a href="Menu.html#carbohidratos_porcentaje-instance_method" title="Menu#carbohidratos_porcentaje (method)">#carbohidratos_porcentaje</a></span>, <span class='object_link'><a href="Menu.html#lipidos_porcentaje-instance_method" title="Menu#lipidos_porcentaje (method)">#lipidos_porcentaje</a></span>, <span class='object_link'><a href="Menu.html#proteinas_porcentaje-instance_method" title="Menu#proteinas_porcentaje (method)">#proteinas_porcentaje</a></span>, <span class='object_link'><a href="Menu.html#total_gramos-instance_method" title="Menu#total_gramos (method)">#total_gramos</a></span>, <span class='object_link'><a href="Menu.html#valorCaloricoTotal-instance_method" title="Menu#valorCaloricoTotal (method)">#valorCaloricoTotal</a></span></p>
292
+
293
+ <div id="constructor_details" class="method_details_list">
294
+ <h2>Constructor Details</h2>
295
+
296
+ <div class="method_details first">
297
+ <h3 class="signature first" id="initialize-instance_method">
298
+
299
+ #<strong>initialize</strong>(platos) &#x21d2; <tt><span class='object_link'><a href="" title="MenuEficiente (class)">MenuEficiente</a></span></tt>
300
+
301
+
302
+
303
+
304
+
305
+ </h3><div class="docstring">
306
+ <div class="discussion">
307
+
308
+ <p>Returns a new instance of MenuEficiente</p>
309
+
310
+
311
+ </div>
312
+ </div>
313
+ <div class="tags">
314
+
315
+
316
+ </div><table class="source_code">
317
+ <tr>
318
+ <td>
319
+ <pre class="lines">
320
+
321
+
322
+ 83
323
+ 84
324
+ 85</pre>
325
+ </td>
326
+ <td>
327
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 83</span>
328
+
329
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_platos'>platos</span><span class='rparen'>)</span>
330
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_platos'>platos</span><span class='rparen'>)</span>
331
+ <span class='kw'>end</span></pre>
332
+ </td>
333
+ </tr>
334
+ </table>
335
+ </div>
336
+
337
+ </div>
338
+
339
+ <div id="instance_attr_details" class="attr_details">
340
+ <h2>Instance Attribute Details</h2>
341
+
342
+
343
+ <span id=""></span>
344
+ <div class="method_details first">
345
+ <h3 class="signature first" id="tipo_menu-instance_method">
346
+
347
+ #<strong>tipo_menu</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
348
+
349
+
350
+
351
+
352
+
353
+ </h3><div class="docstring">
354
+ <div class="discussion">
355
+
356
+ <p>Returns the value of attribute tipo_menu</p>
357
+
358
+
359
+ </div>
360
+ </div>
361
+ <div class="tags">
362
+
363
+
364
+ </div><table class="source_code">
365
+ <tr>
366
+ <td>
367
+ <pre class="lines">
368
+
369
+
370
+ 81
371
+ 82
372
+ 83</pre>
373
+ </td>
374
+ <td>
375
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 81</span>
376
+
377
+ <span class='kw'>def</span> <span class='id identifier rubyid_tipo_menu'>tipo_menu</span>
378
+ <span class='ivar'>@tipo_menu</span>
379
+ <span class='kw'>end</span></pre>
380
+ </td>
381
+ </tr>
382
+ </table>
383
+ </div>
384
+
385
+ </div>
386
+
387
+
388
+ <div id="instance_method_details" class="method_details_list">
389
+ <h2>Instance Method Details</h2>
390
+
391
+
392
+ <div class="method_details first">
393
+ <h3 class="signature first" id="<=>-instance_method">
394
+
395
+ #<strong>&lt;=&gt;</strong>(another) &#x21d2; <tt>Object</tt>
396
+
397
+
398
+
399
+
400
+
401
+ </h3><table class="source_code">
402
+ <tr>
403
+ <td>
404
+ <pre class="lines">
405
+
406
+
407
+ 108
408
+ 109
409
+ 110</pre>
410
+ </td>
411
+ <td>
412
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 108</span>
413
+
414
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_another'>another</span><span class='rparen'>)</span>
415
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_total_gases'>total_gases</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_another'>another</span><span class='period'>.</span><span class='id identifier rubyid_total_gases'>total_gases</span>
416
+ <span class='kw'>end</span></pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ <div class="method_details ">
423
+ <h3 class="signature " id="to_s-instance_method">
424
+
425
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
426
+
427
+
428
+
429
+
430
+
431
+ </h3><table class="source_code">
432
+ <tr>
433
+ <td>
434
+ <pre class="lines">
435
+
436
+
437
+ 103
438
+ 104
439
+ 105
440
+ 106</pre>
441
+ </td>
442
+ <td>
443
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 103</span>
444
+
445
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
446
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Gases Totales: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_total_gases'>total_gases</span><span class='embexpr_end'>}</span><span class='tstring_content'> kgCO2eq,\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
447
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Uso Terreno: </span><span class='embexpr_beg'>#{</span><span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_total_terreno'>total_terreno</span><span class='embexpr_end'>}</span><span class='tstring_content'> m2año</span><span class='tstring_end'>&quot;</span></span>
448
+ <span class='kw'>end</span></pre>
449
+ </td>
450
+ </tr>
451
+ </table>
452
+ </div>
453
+
454
+ <div class="method_details ">
455
+ <h3 class="signature " id="total_gases-instance_method">
456
+
457
+ #<strong>total_gases</strong> &#x21d2; <tt>Object</tt>
458
+
459
+
460
+
461
+
462
+
463
+ </h3><table class="source_code">
464
+ <tr>
465
+ <td>
466
+ <pre class="lines">
467
+
468
+
469
+ 87
470
+ 88
471
+ 89
472
+ 90
473
+ 91
474
+ 92
475
+ 93</pre>
476
+ </td>
477
+ <td>
478
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 87</span>
479
+
480
+ <span class='kw'>def</span> <span class='id identifier rubyid_total_gases'>total_gases</span>
481
+ <span class='id identifier rubyid_gases'>gases</span> <span class='op'>=</span> <span class='int'>0</span>
482
+ <span class='ivar'>@platos</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_plato'>plato</span><span class='op'>|</span>
483
+ <span class='id identifier rubyid_gases'>gases</span> <span class='op'>+=</span> <span class='id identifier rubyid_plato'>plato</span><span class='period'>.</span><span class='id identifier rubyid_gei'>gei</span>
484
+ <span class='kw'>end</span>
485
+ <span class='kw'>return</span> <span class='id identifier rubyid_gases'>gases</span>
486
+ <span class='kw'>end</span></pre>
487
+ </td>
488
+ </tr>
489
+ </table>
490
+ </div>
491
+
492
+ <div class="method_details ">
493
+ <h3 class="signature " id="total_terreno-instance_method">
494
+
495
+ #<strong>total_terreno</strong> &#x21d2; <tt>Object</tt>
496
+
497
+
498
+
499
+
500
+
501
+ </h3><table class="source_code">
502
+ <tr>
503
+ <td>
504
+ <pre class="lines">
505
+
506
+
507
+ 95
508
+ 96
509
+ 97
510
+ 98
511
+ 99
512
+ 100
513
+ 101</pre>
514
+ </td>
515
+ <td>
516
+ <pre class="code"><span class="info file"># File 'lib/menu.rb', line 95</span>
517
+
518
+ <span class='kw'>def</span> <span class='id identifier rubyid_total_terreno'>total_terreno</span>
519
+ <span class='id identifier rubyid_terreno'>terreno</span> <span class='op'>=</span> <span class='int'>0</span>
520
+ <span class='ivar'>@platos</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_plato'>plato</span><span class='op'>|</span>
521
+ <span class='id identifier rubyid_terreno'>terreno</span> <span class='op'>+=</span> <span class='id identifier rubyid_plato'>plato</span><span class='period'>.</span><span class='id identifier rubyid_terreno'>terreno</span>
522
+ <span class='kw'>end</span>
523
+ <span class='kw'>return</span> <span class='id identifier rubyid_terreno'>terreno</span>
524
+ <span class='kw'>end</span></pre>
525
+ </td>
526
+ </tr>
527
+ </table>
528
+ </div>
529
+
530
+ </div>
531
+
532
+ </div>
533
+
534
+ <div id="footer">
535
+ Generated on Wed Dec 18 07:36:36 2019 by
536
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
537
+ 0.9.20 (ruby-2.1.2).
538
+ </div>
539
+
540
+ </div>
541
+ </body>
542
+ </html>