prct06 0.1.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.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/documentation/Dieta.html +1061 -0
- data/documentation/DietaEdad.html +396 -0
- data/documentation/DietaGrupo.html +396 -0
- data/documentation/LinkedList.html +984 -0
- data/documentation/Node.html +411 -0
- data/documentation/Prct06.html +119 -0
- data/documentation/_index.html +158 -0
- data/documentation/class_list.html +51 -0
- data/documentation/css/common.css +1 -0
- data/documentation/css/full_list.css +58 -0
- data/documentation/css/style.css +481 -0
- data/documentation/file.README.html +128 -0
- data/documentation/file_list.html +56 -0
- data/documentation/frames.html +17 -0
- data/documentation/index.html +128 -0
- data/documentation/js/app.js +243 -0
- data/documentation/js/full_list.js +216 -0
- data/documentation/js/jquery.js +4 -0
- data/documentation/method_list.html +299 -0
- data/documentation/top-level-namespace.html +114 -0
- data/lib/.DS_Store +0 -0
- data/lib/prct06.rb +5 -0
- data/lib/prct06/Dieta.rb +196 -0
- data/lib/prct06/LinkedList.rb +141 -0
- data/lib/prct06/version.rb +3 -0
- data/prct06.gemspec +40 -0
- metadata +168 -0
|
@@ -0,0 +1,396 @@
|
|
|
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: DietaEdad
|
|
8
|
+
|
|
9
|
+
— 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 = "DietaEdad";
|
|
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> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">DietaEdad</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: DietaEdad
|
|
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="Dieta.html" title="Dieta (class)">Dieta</a></span></span>
|
|
75
|
+
|
|
76
|
+
<ul class="fullTree">
|
|
77
|
+
<li>Object</li>
|
|
78
|
+
|
|
79
|
+
<li class="next"><span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></li>
|
|
80
|
+
|
|
81
|
+
<li class="next">DietaEdad</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/Dieta.rb</dd>
|
|
102
|
+
</dl>
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
|
107
|
+
<div class="discussion">
|
|
108
|
+
|
|
109
|
+
<p>clase hija que representa menús para grupos de personas según su edad</p>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="tags">
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
122
|
+
<ul class="summary">
|
|
123
|
+
|
|
124
|
+
<li class="public ">
|
|
125
|
+
<span class="summary_signature">
|
|
126
|
+
|
|
127
|
+
<a href="#edades-instance_method" title="#edades (instance method)">#<strong>edades</strong> ⇒ Object </a>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</span>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<span class="note title readonly">readonly</span>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<span class="summary_desc"><div class='inline'>
|
|
147
|
+
<p>attr.</p>
|
|
148
|
+
</div></span>
|
|
149
|
+
|
|
150
|
+
</li>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
</ul>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
|
|
160
|
+
<p class="inherited"><span class='object_link'><a href="Dieta.html#VCT-instance_method" title="Dieta#VCT (method)">#VCT</a></span>, <span class='object_link'><a href="Dieta.html#grasas-instance_method" title="Dieta#grasas (method)">#grasas</a></span>, <span class='object_link'><a href="Dieta.html#hidratos-instance_method" title="Dieta#hidratos (method)">#hidratos</a></span>, <span class='object_link'><a href="Dieta.html#nplatos-instance_method" title="Dieta#nplatos (method)">#nplatos</a></span>, <span class='object_link'><a href="Dieta.html#platos-instance_method" title="Dieta#platos (method)">#platos</a></span>, <span class='object_link'><a href="Dieta.html#porcentaje_ingesta-instance_method" title="Dieta#porcentaje_ingesta (method)">#porcentaje_ingesta</a></span>, <span class='object_link'><a href="Dieta.html#proteinas-instance_method" title="Dieta#proteinas (method)">#proteinas</a></span>, <span class='object_link'><a href="Dieta.html#titulo-instance_method" title="Dieta#titulo (method)">#titulo</a></span></p>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<h2>
|
|
165
|
+
Instance Method Summary
|
|
166
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
167
|
+
</h2>
|
|
168
|
+
|
|
169
|
+
<ul class="summary">
|
|
170
|
+
|
|
171
|
+
<li class="public ">
|
|
172
|
+
<span class="summary_signature">
|
|
173
|
+
|
|
174
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(edades, titulo, porcentaje_ingesta, nplatos, vct, proteinas, grasas, hidratos, *des_platos) ⇒ DietaEdad </a>
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
</span>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<span class="note title constructor">constructor</span>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
|
191
|
+
<p>initialize con un parámetro extra con respecto al de la clase madre.</p>
|
|
192
|
+
</div></span>
|
|
193
|
+
|
|
194
|
+
</li>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<li class="public ">
|
|
198
|
+
<span class="summary_signature">
|
|
199
|
+
|
|
200
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</span>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
|
215
|
+
<p>formateo que añade el grupo de alimentos con respecto al de la clase madre.</p>
|
|
216
|
+
</div></span>
|
|
217
|
+
|
|
218
|
+
</li>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</ul>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
|
|
234
|
+
<p class="inherited"><span class='object_link'><a href="Dieta.html#%3C%3D%3E-instance_method" title="Dieta#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Dieta.html#plato-instance_method" title="Dieta#plato (method)">#plato</a></span></p>
|
|
235
|
+
|
|
236
|
+
<div id="constructor_details" class="method_details_list">
|
|
237
|
+
<h2>Constructor Details</h2>
|
|
238
|
+
|
|
239
|
+
<div class="method_details first">
|
|
240
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
241
|
+
|
|
242
|
+
#<strong>initialize</strong>(edades, titulo, porcentaje_ingesta, nplatos, vct, proteinas, grasas, hidratos, *des_platos) ⇒ <tt><span class='object_link'><a href="" title="DietaEdad (class)">DietaEdad</a></span></tt>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
</h3><div class="docstring">
|
|
249
|
+
<div class="discussion">
|
|
250
|
+
|
|
251
|
+
<p>initialize con un parámetro extra con respecto al de la clase madre</p>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
<div class="tags">
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
</div><table class="source_code">
|
|
260
|
+
<tr>
|
|
261
|
+
<td>
|
|
262
|
+
<pre class="lines">
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
91
|
|
266
|
+
92
|
|
267
|
+
93
|
|
268
|
+
94</pre>
|
|
269
|
+
</td>
|
|
270
|
+
<td>
|
|
271
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 91</span>
|
|
272
|
+
|
|
273
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_edades'>edades</span><span class='comma'>,</span> <span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje_ingesta'>porcentaje_ingesta</span><span class='comma'>,</span> <span class='id identifier rubyid_nplatos'>nplatos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_des_platos'>des_platos</span><span class='rparen'>)</span>
|
|
274
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje_ingesta'>porcentaje_ingesta</span><span class='comma'>,</span> <span class='id identifier rubyid_nplatos'>nplatos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_des_platos'>des_platos</span><span class='rparen'>)</span>
|
|
275
|
+
<span class='ivar'>@edades</span> <span class='op'>=</span> <span class='id identifier rubyid_edades'>edades</span>
|
|
276
|
+
<span class='kw'>end</span></pre>
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
</table>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
</div>
|
|
283
|
+
|
|
284
|
+
<div id="instance_attr_details" class="attr_details">
|
|
285
|
+
<h2>Instance Attribute Details</h2>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<span id=""></span>
|
|
289
|
+
<div class="method_details first">
|
|
290
|
+
<h3 class="signature first" id="edades-instance_method">
|
|
291
|
+
|
|
292
|
+
#<strong>edades</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
</h3><div class="docstring">
|
|
299
|
+
<div class="discussion">
|
|
300
|
+
|
|
301
|
+
<p>attr</p>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="tags">
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
</div><table class="source_code">
|
|
310
|
+
<tr>
|
|
311
|
+
<td>
|
|
312
|
+
<pre class="lines">
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
88
|
|
316
|
+
89
|
|
317
|
+
90</pre>
|
|
318
|
+
</td>
|
|
319
|
+
<td>
|
|
320
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 88</span>
|
|
321
|
+
|
|
322
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_edades'>edades</span>
|
|
323
|
+
<span class='ivar'>@edades</span>
|
|
324
|
+
<span class='kw'>end</span></pre>
|
|
325
|
+
</td>
|
|
326
|
+
</tr>
|
|
327
|
+
</table>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<div id="instance_method_details" class="method_details_list">
|
|
334
|
+
<h2>Instance Method Details</h2>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<div class="method_details first">
|
|
338
|
+
<h3 class="signature first" id="to_s-instance_method">
|
|
339
|
+
|
|
340
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
</h3><div class="docstring">
|
|
347
|
+
<div class="discussion">
|
|
348
|
+
|
|
349
|
+
<p>formateo que añade el grupo de alimentos con respecto al de la clase madre</p>
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
<div class="tags">
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</div><table class="source_code">
|
|
358
|
+
<tr>
|
|
359
|
+
<td>
|
|
360
|
+
<pre class="lines">
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
97
|
|
364
|
+
98
|
|
365
|
+
99
|
|
366
|
+
100
|
|
367
|
+
101
|
|
368
|
+
102</pre>
|
|
369
|
+
</td>
|
|
370
|
+
<td>
|
|
371
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 97</span>
|
|
372
|
+
|
|
373
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
374
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
375
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'><<</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
376
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Para personas de: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@edades</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
|
377
|
+
<span class='id identifier rubyid_output'>output</span>
|
|
378
|
+
<span class='kw'>end</span></pre>
|
|
379
|
+
</td>
|
|
380
|
+
</tr>
|
|
381
|
+
</table>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
</div>
|
|
385
|
+
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
<div id="footer">
|
|
389
|
+
Generated on Wed Nov 23 12:08:16 2016 by
|
|
390
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
391
|
+
0.9.5 (ruby-2.3.0).
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
</div>
|
|
395
|
+
</body>
|
|
396
|
+
</html>
|
|
@@ -0,0 +1,396 @@
|
|
|
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: DietaGrupo
|
|
8
|
+
|
|
9
|
+
— 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 = "DietaGrupo";
|
|
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> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">DietaGrupo</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: DietaGrupo
|
|
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="Dieta.html" title="Dieta (class)">Dieta</a></span></span>
|
|
75
|
+
|
|
76
|
+
<ul class="fullTree">
|
|
77
|
+
<li>Object</li>
|
|
78
|
+
|
|
79
|
+
<li class="next"><span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></li>
|
|
80
|
+
|
|
81
|
+
<li class="next">DietaGrupo</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/Dieta.rb</dd>
|
|
102
|
+
</dl>
|
|
103
|
+
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
|
107
|
+
<div class="discussion">
|
|
108
|
+
|
|
109
|
+
<p>clase hija que representa grupos de alimentos</p>
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
</div>
|
|
113
|
+
</div>
|
|
114
|
+
<div class="tags">
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
</div>
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
122
|
+
<ul class="summary">
|
|
123
|
+
|
|
124
|
+
<li class="public ">
|
|
125
|
+
<span class="summary_signature">
|
|
126
|
+
|
|
127
|
+
<a href="#grupo-instance_method" title="#grupo (instance method)">#<strong>grupo</strong> ⇒ Object </a>
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
</span>
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
<span class="note title readonly">readonly</span>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
<span class="summary_desc"><div class='inline'>
|
|
147
|
+
<p>attr.</p>
|
|
148
|
+
</div></span>
|
|
149
|
+
|
|
150
|
+
</li>
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
</ul>
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
|
|
160
|
+
<p class="inherited"><span class='object_link'><a href="Dieta.html#VCT-instance_method" title="Dieta#VCT (method)">#VCT</a></span>, <span class='object_link'><a href="Dieta.html#grasas-instance_method" title="Dieta#grasas (method)">#grasas</a></span>, <span class='object_link'><a href="Dieta.html#hidratos-instance_method" title="Dieta#hidratos (method)">#hidratos</a></span>, <span class='object_link'><a href="Dieta.html#nplatos-instance_method" title="Dieta#nplatos (method)">#nplatos</a></span>, <span class='object_link'><a href="Dieta.html#platos-instance_method" title="Dieta#platos (method)">#platos</a></span>, <span class='object_link'><a href="Dieta.html#porcentaje_ingesta-instance_method" title="Dieta#porcentaje_ingesta (method)">#porcentaje_ingesta</a></span>, <span class='object_link'><a href="Dieta.html#proteinas-instance_method" title="Dieta#proteinas (method)">#proteinas</a></span>, <span class='object_link'><a href="Dieta.html#titulo-instance_method" title="Dieta#titulo (method)">#titulo</a></span></p>
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<h2>
|
|
165
|
+
Instance Method Summary
|
|
166
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
167
|
+
</h2>
|
|
168
|
+
|
|
169
|
+
<ul class="summary">
|
|
170
|
+
|
|
171
|
+
<li class="public ">
|
|
172
|
+
<span class="summary_signature">
|
|
173
|
+
|
|
174
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(grupo, titulo, porcentaje_ingesta, nplatos, vct, proteinas, grasas, hidratos, *des_platos) ⇒ DietaGrupo </a>
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
</span>
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
<span class="note title constructor">constructor</span>
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
<span class="summary_desc"><div class='inline'>
|
|
191
|
+
<p>initialize con un parámetro extra con respecto al de la clase madre.</p>
|
|
192
|
+
</div></span>
|
|
193
|
+
|
|
194
|
+
</li>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
<li class="public ">
|
|
198
|
+
<span class="summary_signature">
|
|
199
|
+
|
|
200
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
</span>
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<span class="summary_desc"><div class='inline'>
|
|
215
|
+
<p>formateo que añade el grupo de alimentos con respecto al de la clase madre.</p>
|
|
216
|
+
</div></span>
|
|
217
|
+
|
|
218
|
+
</li>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
</ul>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
|
|
234
|
+
<p class="inherited"><span class='object_link'><a href="Dieta.html#%3C%3D%3E-instance_method" title="Dieta#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Dieta.html#plato-instance_method" title="Dieta#plato (method)">#plato</a></span></p>
|
|
235
|
+
|
|
236
|
+
<div id="constructor_details" class="method_details_list">
|
|
237
|
+
<h2>Constructor Details</h2>
|
|
238
|
+
|
|
239
|
+
<div class="method_details first">
|
|
240
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
241
|
+
|
|
242
|
+
#<strong>initialize</strong>(grupo, titulo, porcentaje_ingesta, nplatos, vct, proteinas, grasas, hidratos, *des_platos) ⇒ <tt><span class='object_link'><a href="" title="DietaGrupo (class)">DietaGrupo</a></span></tt>
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
</h3><div class="docstring">
|
|
249
|
+
<div class="discussion">
|
|
250
|
+
|
|
251
|
+
<p>initialize con un parámetro extra con respecto al de la clase madre</p>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
<div class="tags">
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
</div><table class="source_code">
|
|
260
|
+
<tr>
|
|
261
|
+
<td>
|
|
262
|
+
<pre class="lines">
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
67
|
|
266
|
+
68
|
|
267
|
+
69
|
|
268
|
+
70</pre>
|
|
269
|
+
</td>
|
|
270
|
+
<td>
|
|
271
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 67</span>
|
|
272
|
+
|
|
273
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_grupo'>grupo</span><span class='comma'>,</span> <span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje_ingesta'>porcentaje_ingesta</span><span class='comma'>,</span> <span class='id identifier rubyid_nplatos'>nplatos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_des_platos'>des_platos</span><span class='rparen'>)</span>
|
|
274
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje_ingesta'>porcentaje_ingesta</span><span class='comma'>,</span> <span class='id identifier rubyid_nplatos'>nplatos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_grasas'>grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_des_platos'>des_platos</span><span class='rparen'>)</span>
|
|
275
|
+
<span class='ivar'>@grupo</span> <span class='op'>=</span> <span class='id identifier rubyid_grupo'>grupo</span>
|
|
276
|
+
<span class='kw'>end</span></pre>
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
</table>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
</div>
|
|
283
|
+
|
|
284
|
+
<div id="instance_attr_details" class="attr_details">
|
|
285
|
+
<h2>Instance Attribute Details</h2>
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
<span id=""></span>
|
|
289
|
+
<div class="method_details first">
|
|
290
|
+
<h3 class="signature first" id="grupo-instance_method">
|
|
291
|
+
|
|
292
|
+
#<strong>grupo</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
</h3><div class="docstring">
|
|
299
|
+
<div class="discussion">
|
|
300
|
+
|
|
301
|
+
<p>attr</p>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
</div>
|
|
305
|
+
</div>
|
|
306
|
+
<div class="tags">
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
</div><table class="source_code">
|
|
310
|
+
<tr>
|
|
311
|
+
<td>
|
|
312
|
+
<pre class="lines">
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
64
|
|
316
|
+
65
|
|
317
|
+
66</pre>
|
|
318
|
+
</td>
|
|
319
|
+
<td>
|
|
320
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 64</span>
|
|
321
|
+
|
|
322
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_grupo'>grupo</span>
|
|
323
|
+
<span class='ivar'>@grupo</span>
|
|
324
|
+
<span class='kw'>end</span></pre>
|
|
325
|
+
</td>
|
|
326
|
+
</tr>
|
|
327
|
+
</table>
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
</div>
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<div id="instance_method_details" class="method_details_list">
|
|
334
|
+
<h2>Instance Method Details</h2>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
<div class="method_details first">
|
|
338
|
+
<h3 class="signature first" id="to_s-instance_method">
|
|
339
|
+
|
|
340
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
</h3><div class="docstring">
|
|
347
|
+
<div class="discussion">
|
|
348
|
+
|
|
349
|
+
<p>formateo que añade el grupo de alimentos con respecto al de la clase madre</p>
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
<div class="tags">
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
</div><table class="source_code">
|
|
358
|
+
<tr>
|
|
359
|
+
<td>
|
|
360
|
+
<pre class="lines">
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
73
|
|
364
|
+
74
|
|
365
|
+
75
|
|
366
|
+
76
|
|
367
|
+
77
|
|
368
|
+
78</pre>
|
|
369
|
+
</td>
|
|
370
|
+
<td>
|
|
371
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/Dieta.rb', line 73</span>
|
|
372
|
+
|
|
373
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
374
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
375
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'><<</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
376
|
+
<span class='id identifier rubyid_output'>output</span> <span class='op'><<</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Perteneciente a: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@grupo</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n\n</span><span class='tstring_end'>"</span></span>
|
|
377
|
+
<span class='id identifier rubyid_output'>output</span>
|
|
378
|
+
<span class='kw'>end</span></pre>
|
|
379
|
+
</td>
|
|
380
|
+
</tr>
|
|
381
|
+
</table>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
</div>
|
|
385
|
+
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
<div id="footer">
|
|
389
|
+
Generated on Wed Nov 23 12:08:16 2016 by
|
|
390
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
391
|
+
0.9.5 (ruby-2.3.0).
|
|
392
|
+
</div>
|
|
393
|
+
|
|
394
|
+
</div>
|
|
395
|
+
</body>
|
|
396
|
+
</html>
|