prct060100890730 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/.coveralls.yml +1 -0
- data/.gitignore +12 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +8 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +1072 -0
- data/docs/AlimentoC.html +432 -0
- data/docs/Lista.html +1584 -0
- data/docs/Nodo.html +410 -0
- data/docs/Plato.html +1542 -0
- data/docs/Prct06.html +117 -0
- data/docs/_index.html +156 -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 +132 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +132 -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 +435 -0
- data/docs/top-level-namespace.html +112 -0
- data/lib/prct06/AlimentoC.rb +25 -0
- data/lib/prct06/Plato.rb +207 -0
- data/lib/prct06/lista.rb +210 -0
- data/lib/prct06/valor_calorico.rb +81 -0
- data/lib/prct06/version.rb +3 -0
- data/lib/prct06.rb +5 -0
- data/prct06.gemspec +41 -0
- metadata +181 -0
data/docs/AlimentoC.html
ADDED
|
@@ -0,0 +1,432 @@
|
|
|
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: AlimentoC
|
|
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 = "AlimentoC";
|
|
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 (A)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">AlimentoC</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: AlimentoC
|
|
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="Alimento.html" title="Alimento (class)">Alimento</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">AlimentoC</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/prct06/AlimentoC.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>require “valor_calorico.rb”</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
120
|
+
<ul class="summary">
|
|
121
|
+
|
|
122
|
+
<li class="public ">
|
|
123
|
+
<span class="summary_signature">
|
|
124
|
+
|
|
125
|
+
<a href="#grupo-instance_method" title="#grupo (instance method)">#<strong>grupo</strong> ⇒ Object </a>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</span>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<span class="summary_desc"><div class='inline'>
|
|
143
|
+
<p>Returns the value of attribute grupo.</p>
|
|
144
|
+
</div></span>
|
|
145
|
+
|
|
146
|
+
</li>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
</ul>
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
156
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#datos-instance_method" title="Alimento#datos (method)">#datos</a></span>, <span class='object_link'><a href="Alimento.html#glucidos-instance_method" title="Alimento#glucidos (method)">#glucidos</a></span>, <span class='object_link'><a href="Alimento.html#lipidos-instance_method" title="Alimento#lipidos (method)">#lipidos</a></span>, <span class='object_link'><a href="Alimento.html#nombre-instance_method" title="Alimento#nombre (method)">#nombre</a></span>, <span class='object_link'><a href="Alimento.html#proteinas-instance_method" title="Alimento#proteinas (method)">#proteinas</a></span></p>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
<h2>
|
|
161
|
+
Instance Method Summary
|
|
162
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
163
|
+
</h2>
|
|
164
|
+
|
|
165
|
+
<ul class="summary">
|
|
166
|
+
|
|
167
|
+
<li class="public ">
|
|
168
|
+
<span class="summary_signature">
|
|
169
|
+
|
|
170
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, proteinas, glucidos, lipidos, grupo) ⇒ Object </a>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
</span>
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
<span class="note title constructor">constructor</span>
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
|
187
|
+
<p>AlimentoC type of the class.</p>
|
|
188
|
+
</div></span>
|
|
189
|
+
|
|
190
|
+
</li>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
<li class="public ">
|
|
194
|
+
<span class="summary_signature">
|
|
195
|
+
|
|
196
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
</span>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<span class="summary_desc"><div class='inline'>
|
|
211
|
+
<p>The resulting of join all the information, name, protein, glucids, lipids
|
|
212
|
+
and group.</p>
|
|
213
|
+
</div></span>
|
|
214
|
+
|
|
215
|
+
</li>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
</ul>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
231
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#<=>-instance_method" title="Alimento#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Alimento.html#==-instance_method" title="Alimento#== (method)">#==</a></span>, <span class='object_link'><a href="Alimento.html#AIBC-instance_method" title="Alimento#AIBC (method)">#AIBC</a></span>, <span class='object_link'><a href="Alimento.html#valor_calorico-instance_method" title="Alimento#valor_calorico (method)">#valor_calorico</a></span></p>
|
|
232
|
+
|
|
233
|
+
<div id="constructor_details" class="method_details_list">
|
|
234
|
+
<h2>Constructor Details</h2>
|
|
235
|
+
|
|
236
|
+
<div class="method_details first">
|
|
237
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
238
|
+
|
|
239
|
+
#<strong>initialize</strong>(nombre, proteinas, glucidos, lipidos, grupo) ⇒ <tt>Object</tt>
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
</h3><div class="docstring">
|
|
246
|
+
<div class="discussion">
|
|
247
|
+
|
|
248
|
+
<p>Returns AlimentoC type of the class</p>
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="tags">
|
|
254
|
+
<p class="tag_title">Parameters:</p>
|
|
255
|
+
<ul class="param">
|
|
256
|
+
|
|
257
|
+
<li>
|
|
258
|
+
|
|
259
|
+
<span class='name'>nombre,</span>
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<span class='type'></span>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
—
|
|
267
|
+
<div class='inline'>
|
|
268
|
+
<p>proteinas, glucidos, lipidos, grupo [String], [Number], [Number], [Number],
|
|
269
|
+
[String]</p>
|
|
270
|
+
</div>
|
|
271
|
+
|
|
272
|
+
</li>
|
|
273
|
+
|
|
274
|
+
</ul>
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</div><table class="source_code">
|
|
278
|
+
<tr>
|
|
279
|
+
<td>
|
|
280
|
+
<pre class="lines">
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
13
|
|
284
|
+
14
|
|
285
|
+
15
|
|
286
|
+
16</pre>
|
|
287
|
+
</td>
|
|
288
|
+
<td>
|
|
289
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/AlimentoC.rb', line 13</span>
|
|
290
|
+
|
|
291
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_glucidos'>glucidos</span><span class='comma'>,</span> <span class='id identifier rubyid_lipidos'>lipidos</span><span class='comma'>,</span> <span class='id identifier rubyid_grupo'>grupo</span><span class='rparen'>)</span>
|
|
292
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_glucidos'>glucidos</span><span class='comma'>,</span> <span class='id identifier rubyid_lipidos'>lipidos</span><span class='rparen'>)</span>
|
|
293
|
+
<span class='ivar'>@grupo</span> <span class='op'>=</span> <span class='id identifier rubyid_grupo'>grupo</span>
|
|
294
|
+
<span class='kw'>end</span></pre>
|
|
295
|
+
</td>
|
|
296
|
+
</tr>
|
|
297
|
+
</table>
|
|
298
|
+
</div>
|
|
299
|
+
|
|
300
|
+
</div>
|
|
301
|
+
|
|
302
|
+
<div id="instance_attr_details" class="attr_details">
|
|
303
|
+
<h2>Instance Attribute Details</h2>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
<span id="grupo=-instance_method"></span>
|
|
307
|
+
<div class="method_details first">
|
|
308
|
+
<h3 class="signature first" id="grupo-instance_method">
|
|
309
|
+
|
|
310
|
+
#<strong>grupo</strong> ⇒ <tt>Object</tt>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
</h3><div class="docstring">
|
|
317
|
+
<div class="discussion">
|
|
318
|
+
|
|
319
|
+
<p>Returns the value of attribute grupo</p>
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
<div class="tags">
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
</div><table class="source_code">
|
|
328
|
+
<tr>
|
|
329
|
+
<td>
|
|
330
|
+
<pre class="lines">
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
9
|
|
334
|
+
10
|
|
335
|
+
11</pre>
|
|
336
|
+
</td>
|
|
337
|
+
<td>
|
|
338
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/AlimentoC.rb', line 9</span>
|
|
339
|
+
|
|
340
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_grupo'>grupo</span>
|
|
341
|
+
<span class='ivar'>@grupo</span>
|
|
342
|
+
<span class='kw'>end</span></pre>
|
|
343
|
+
</td>
|
|
344
|
+
</tr>
|
|
345
|
+
</table>
|
|
346
|
+
</div>
|
|
347
|
+
|
|
348
|
+
</div>
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
<div id="instance_method_details" class="method_details_list">
|
|
352
|
+
<h2>Instance Method Details</h2>
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
<div class="method_details first">
|
|
356
|
+
<h3 class="signature first" id="to_s-instance_method">
|
|
357
|
+
|
|
358
|
+
#<strong>to_s</strong> ⇒ <tt>String</tt>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
</h3><div class="docstring">
|
|
365
|
+
<div class="discussion">
|
|
366
|
+
|
|
367
|
+
<p>Returns the resulting of join all the information, name, protein, glucids,
|
|
368
|
+
lipids and group</p>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
<div class="tags">
|
|
374
|
+
|
|
375
|
+
<p class="tag_title">Returns:</p>
|
|
376
|
+
<ul class="return">
|
|
377
|
+
|
|
378
|
+
<li>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
—
|
|
386
|
+
<div class='inline'>
|
|
387
|
+
<p>the resulting of join all the information, name, protein, glucids, lipids
|
|
388
|
+
and group</p>
|
|
389
|
+
</div>
|
|
390
|
+
|
|
391
|
+
</li>
|
|
392
|
+
|
|
393
|
+
</ul>
|
|
394
|
+
|
|
395
|
+
</div><table class="source_code">
|
|
396
|
+
<tr>
|
|
397
|
+
<td>
|
|
398
|
+
<pre class="lines">
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
19
|
|
402
|
+
20
|
|
403
|
+
21
|
|
404
|
+
22
|
|
405
|
+
23</pre>
|
|
406
|
+
</td>
|
|
407
|
+
<td>
|
|
408
|
+
<pre class="code"><span class="info file"># File 'lib/prct06/AlimentoC.rb', line 19</span>
|
|
409
|
+
|
|
410
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
|
411
|
+
<span class='id identifier rubyid_s'>s</span> <span class='op'>=</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
|
412
|
+
<span class='id identifier rubyid_s'>s</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>\t</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grupo</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
|
413
|
+
<span class='id identifier rubyid_s'>s</span>
|
|
414
|
+
<span class='kw'>end</span></pre>
|
|
415
|
+
</td>
|
|
416
|
+
</tr>
|
|
417
|
+
</table>
|
|
418
|
+
</div>
|
|
419
|
+
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
</div>
|
|
423
|
+
|
|
424
|
+
<div id="footer">
|
|
425
|
+
Generated on Wed Dec 13 13:29:59 2017 by
|
|
426
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
427
|
+
0.9.9 (ruby-2.3.0).
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
</div>
|
|
431
|
+
</body>
|
|
432
|
+
</html>
|