gem_diet_alu0100891782 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,454 @@
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: Diet_Alim
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 = "Diet_Alim";
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 (D)</a> &raquo;
40
+
41
+
42
+ <span class="title">Diet_Alim</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: Diet_Alim
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">Diet_Alim</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/practica6/practica8.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="#alimentos-instance_method" title="#alimentos (instance method)">#<strong>alimentos</strong> &#x21d2; Object </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+
123
+
124
+
125
+ <span class="note title readonly">readonly</span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <span class="summary_desc"><div class='inline'>
136
+ <p>clase hija de la clase dieta.</p>
137
+ </div></span>
138
+
139
+ </li>
140
+
141
+
142
+ </ul>
143
+
144
+
145
+
146
+
147
+
148
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
149
+ <p class="inherited"><span class='object_link'><a href="Diet.html#con_plato-instance_method" title="Diet#con_plato (method)">#con_plato</a></span>, <span class='object_link'><a href="Diet.html#data-instance_method" title="Diet#data (method)">#data</a></span>, <span class='object_link'><a href="Diet.html#des_plato-instance_method" title="Diet#des_plato (method)">#des_plato</a></span>, <span class='object_link'><a href="Diet.html#percentage-instance_method" title="Diet#percentage (method)">#percentage</a></span>, <span class='object_link'><a href="Diet.html#title-instance_method" title="Diet#title (method)">#title</a></span>, <span class='object_link'><a href="Diet.html#vct-instance_method" title="Diet#vct (method)">#vct</a></span></p>
150
+
151
+
152
+
153
+ <h2>
154
+ Instance Method Summary
155
+ <small><a href="#" class="summary_toggle">collapse</a></small>
156
+ </h2>
157
+
158
+ <ul class="summary">
159
+
160
+ <li class="public ">
161
+ <span class="summary_signature">
162
+
163
+ <a href="#get_group-instance_method" title="#get_group (instance method)">#<strong>get_group</strong> &#x21d2; Object </a>
164
+
165
+
166
+
167
+ </span>
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <span class="summary_desc"><div class='inline'>
178
+ <p>metodo que devuelve el conjunto de alimentos de grupo.</p>
179
+ </div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(title, percentage, con_plato, vct, data, alimentos) &#x21d2; Diet_Alim </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+ <span class="note title constructor">constructor</span>
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ <span class="summary_desc"><div class='inline'>
204
+ <p>inicializamos la clase hija con las variables de instancia de la clase
205
+ padre y sumamos la variable alimentos.</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'>
229
+ <p>metodo que imprime la dieta formateada.</p>
230
+ </div></span>
231
+
232
+ </li>
233
+
234
+
235
+ </ul>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
248
+ <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#%3D%3D-instance_method" title="Diet#== (method)">#==</a></span>, <span class='object_link'><a href="Diet.html#daily_percentage-instance_method" title="Diet#daily_percentage (method)">#daily_percentage</a></span>, <span class='object_link'><a href="Diet.html#gras-instance_method" title="Diet#gras (method)">#gras</a></span>, <span class='object_link'><a href="Diet.html#group_plates-instance_method" title="Diet#group_plates (method)">#group_plates</a></span>, <span class='object_link'><a href="Diet.html#hid_car-instance_method" title="Diet#hid_car (method)">#hid_car</a></span>, <span class='object_link'><a href="Diet.html#menu_title-instance_method" title="Diet#menu_title (method)">#menu_title</a></span>, <span class='object_link'><a href="Diet.html#obtain_plate-instance_method" title="Diet#obtain_plate (method)">#obtain_plate</a></span>, <span class='object_link'><a href="Diet.html#one_plate-instance_method" title="Diet#one_plate (method)">#one_plate</a></span>, <span class='object_link'><a href="Diet.html#prot-instance_method" title="Diet#prot (method)">#prot</a></span>, <span class='object_link'><a href="Diet.html#valor-instance_method" title="Diet#valor (method)">#valor</a></span></p>
249
+
250
+ <div id="constructor_details" class="method_details_list">
251
+ <h2>Constructor Details</h2>
252
+
253
+ <div class="method_details first">
254
+ <h3 class="signature first" id="initialize-instance_method">
255
+
256
+ #<strong>initialize</strong>(title, percentage, con_plato, vct, data, alimentos) &#x21d2; <tt><span class='object_link'><a href="" title="Diet_Alim (class)">Diet_Alim</a></span></tt>
257
+
258
+
259
+
260
+
261
+
262
+ </h3><div class="docstring">
263
+ <div class="discussion">
264
+
265
+ <p>inicializamos la clase hija con las variables de instancia de la clase
266
+ padre y sumamos la variable alimentos</p>
267
+
268
+
269
+ </div>
270
+ </div>
271
+ <div class="tags">
272
+
273
+
274
+ </div><table class="source_code">
275
+ <tr>
276
+ <td>
277
+ <pre class="lines">
278
+
279
+
280
+ 7
281
+ 8
282
+ 9
283
+ 10</pre>
284
+ </td>
285
+ <td>
286
+ <pre class="code"><span class="info file"># File 'lib/practica6/practica8.rb', line 7</span>
287
+
288
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span><span class='id identifier rubyid_alimentos'>alimentos</span><span class='rparen'>)</span>
289
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
290
+ <span class='ivar'>@alimentos</span><span class='op'>=</span><span class='id identifier rubyid_alimentos'>alimentos</span>
291
+ <span class='kw'>end</span></pre>
292
+ </td>
293
+ </tr>
294
+ </table>
295
+ </div>
296
+
297
+ </div>
298
+
299
+ <div id="instance_attr_details" class="attr_details">
300
+ <h2>Instance Attribute Details</h2>
301
+
302
+
303
+ <span id=""></span>
304
+ <div class="method_details first">
305
+ <h3 class="signature first" id="alimentos-instance_method">
306
+
307
+ #<strong>alimentos</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
308
+
309
+
310
+
311
+
312
+
313
+ </h3><div class="docstring">
314
+ <div class="discussion">
315
+
316
+ <p>clase hija de la clase dieta</p>
317
+
318
+
319
+ </div>
320
+ </div>
321
+ <div class="tags">
322
+
323
+
324
+ </div><table class="source_code">
325
+ <tr>
326
+ <td>
327
+ <pre class="lines">
328
+
329
+
330
+ 5
331
+ 6
332
+ 7</pre>
333
+ </td>
334
+ <td>
335
+ <pre class="code"><span class="info file"># File 'lib/practica6/practica8.rb', line 5</span>
336
+
337
+ <span class='kw'>def</span> <span class='id identifier rubyid_alimentos'>alimentos</span>
338
+ <span class='ivar'>@alimentos</span>
339
+ <span class='kw'>end</span></pre>
340
+ </td>
341
+ </tr>
342
+ </table>
343
+ </div>
344
+
345
+ </div>
346
+
347
+
348
+ <div id="instance_method_details" class="method_details_list">
349
+ <h2>Instance Method Details</h2>
350
+
351
+
352
+ <div class="method_details first">
353
+ <h3 class="signature first" id="get_group-instance_method">
354
+
355
+ #<strong>get_group</strong> &#x21d2; <tt>Object</tt>
356
+
357
+
358
+
359
+
360
+
361
+ </h3><div class="docstring">
362
+ <div class="discussion">
363
+
364
+ <p>metodo que devuelve el conjunto de alimentos de grupo</p>
365
+
366
+
367
+ </div>
368
+ </div>
369
+ <div class="tags">
370
+
371
+
372
+ </div><table class="source_code">
373
+ <tr>
374
+ <td>
375
+ <pre class="lines">
376
+
377
+
378
+ 19
379
+ 20
380
+ 21
381
+ 22</pre>
382
+ </td>
383
+ <td>
384
+ <pre class="code"><span class="info file"># File 'lib/practica6/practica8.rb', line 19</span>
385
+
386
+ <span class='kw'>def</span> <span class='id identifier rubyid_get_group'>get_group</span>
387
+ <span class='id identifier rubyid_s'>s</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='ivar'>@alimentos</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
388
+ <span class='id identifier rubyid_s'>s</span>
389
+ <span class='kw'>end</span></pre>
390
+ </td>
391
+ </tr>
392
+ </table>
393
+ </div>
394
+
395
+ <div class="method_details ">
396
+ <h3 class="signature " id="to_s-instance_method">
397
+
398
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
399
+
400
+
401
+
402
+
403
+
404
+ </h3><div class="docstring">
405
+ <div class="discussion">
406
+
407
+ <p>metodo que imprime la dieta formateada</p>
408
+
409
+
410
+ </div>
411
+ </div>
412
+ <div class="tags">
413
+
414
+
415
+ </div><table class="source_code">
416
+ <tr>
417
+ <td>
418
+ <pre class="lines">
419
+
420
+
421
+ 12
422
+ 13
423
+ 14
424
+ 15
425
+ 16
426
+ 17</pre>
427
+ </td>
428
+ <td>
429
+ <pre class="code"><span class="info file"># File 'lib/practica6/practica8.rb', line 12</span>
430
+
431
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
432
+ <span class='id identifier rubyid_s'>s</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
433
+ <span class='id identifier rubyid_s'>s</span> <span class='op'>&lt;&lt;</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
434
+ <span class='id identifier rubyid_s'>s</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\nAlimentos: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@alimentos</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
435
+ <span class='id identifier rubyid_s'>s</span>
436
+ <span class='kw'>end</span></pre>
437
+ </td>
438
+ </tr>
439
+ </table>
440
+ </div>
441
+
442
+ </div>
443
+
444
+ </div>
445
+
446
+ <div id="footer">
447
+ Generated on Tue Nov 22 19:30:50 2016 by
448
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
449
+ 0.9.5 (ruby-2.3.0).
450
+ </div>
451
+
452
+ </div>
453
+ </body>
454
+ </html>