alimento-alu0100912005 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +12 -0
  4. data/.travis.yml +8 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +12 -0
  7. data/Guardfile +82 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +81 -0
  10. data/Rakefile +6 -0
  11. data/alimento.gemspec +43 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/doc/Aibc.html +434 -0
  15. data/doc/Alimento.html +128 -0
  16. data/doc/Food.html +1063 -0
  17. data/doc/ListaDoblementeEnlazada.html +1308 -0
  18. data/doc/Node.html +409 -0
  19. data/doc/Piramide.html +407 -0
  20. data/doc/_index.html +164 -0
  21. data/doc/class_list.html +51 -0
  22. data/doc/css/common.css +1 -0
  23. data/doc/css/full_list.css +58 -0
  24. data/doc/css/style.css +499 -0
  25. data/doc/file.README.html +146 -0
  26. data/doc/file_list.html +56 -0
  27. data/doc/frames.html +17 -0
  28. data/doc/index.html +146 -0
  29. data/doc/js/app.js +248 -0
  30. data/doc/js/full_list.js +216 -0
  31. data/doc/js/jquery.js +4 -0
  32. data/doc/method_list.html +307 -0
  33. data/doc/top-level-namespace.html +112 -0
  34. data/docs/Aibc.html +434 -0
  35. data/docs/Alimento.html +128 -0
  36. data/docs/Food.html +1063 -0
  37. data/docs/ListaDoblementeEnlazada.html +1308 -0
  38. data/docs/Node.html +409 -0
  39. data/docs/Piramide.html +407 -0
  40. data/docs/_index.html +164 -0
  41. data/docs/class_list.html +51 -0
  42. data/docs/css/common.css +1 -0
  43. data/docs/css/full_list.css +58 -0
  44. data/docs/css/style.css +492 -0
  45. data/docs/file.README.html +146 -0
  46. data/docs/file_list.html +56 -0
  47. data/docs/frames.html +17 -0
  48. data/docs/index.html +146 -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 +307 -0
  53. data/docs/top-level-namespace.html +112 -0
  54. data/lib/alimento.rb +8 -0
  55. data/lib/alimento/alimento.rb +152 -0
  56. data/lib/alimento/lista.rb +176 -0
  57. data/lib/alimento/plato.rb +233 -0
  58. data/lib/alimento/version.rb +4 -0
  59. metadata +213 -0
data/doc/Node.html ADDED
@@ -0,0 +1,409 @@
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: Node
8
+
9
+ &mdash; Documentation by YARD 0.9.12
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 = "Node";
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 (N)</a> &raquo;
40
+
41
+
42
+ <span class="title">Node</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: Node
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Struct</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Struct</li>
78
+
79
+ <li class="next">Node</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/alimento/lista.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <p>create a Struct with :value, :next and :prev</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="#next-instance_method" title="#next (instance method)">#<strong>next</strong> &#x21d2; 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 next.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#prev-instance_method" title="#prev (instance method)">#<strong>prev</strong> &#x21d2; Object </a>
153
+
154
+
155
+
156
+ </span>
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'>
170
+ <p>Returns the value of attribute prev.</p>
171
+ </div></span>
172
+
173
+ </li>
174
+
175
+
176
+ <li class="public ">
177
+ <span class="summary_signature">
178
+
179
+ <a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> &#x21d2; Object </a>
180
+
181
+
182
+
183
+ </span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+ <span class="summary_desc"><div class='inline'>
197
+ <p>Returns the value of attribute value.</p>
198
+ </div></span>
199
+
200
+ </li>
201
+
202
+
203
+ </ul>
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <div id="instance_attr_details" class="attr_details">
211
+ <h2>Instance Attribute Details</h2>
212
+
213
+
214
+ <span id="next=-instance_method"></span>
215
+ <div class="method_details first">
216
+ <h3 class="signature first" id="next-instance_method">
217
+
218
+ #<strong>next</strong> &#x21d2; <tt>Object</tt>
219
+
220
+
221
+
222
+
223
+
224
+ </h3><div class="docstring">
225
+ <div class="discussion">
226
+
227
+ <p>Returns the value of attribute next</p>
228
+
229
+
230
+ </div>
231
+ </div>
232
+ <div class="tags">
233
+
234
+ <p class="tag_title">Returns:</p>
235
+ <ul class="return">
236
+
237
+ <li>
238
+
239
+
240
+ <span class='type'>(<tt>Object</tt>)</span>
241
+
242
+
243
+
244
+ &mdash;
245
+ <div class='inline'>
246
+ <p>the current value of next</p>
247
+ </div>
248
+
249
+ </li>
250
+
251
+ </ul>
252
+
253
+ </div><table class="source_code">
254
+ <tr>
255
+ <td>
256
+ <pre class="lines">
257
+
258
+
259
+ 5
260
+ 6
261
+ 7</pre>
262
+ </td>
263
+ <td>
264
+ <pre class="code"><span class="info file"># File 'lib/alimento/lista.rb', line 5</span>
265
+
266
+ <span class='kw'>def</span> <span class='kw'>next</span>
267
+ <span class='ivar'>@next</span>
268
+ <span class='kw'>end</span></pre>
269
+ </td>
270
+ </tr>
271
+ </table>
272
+ </div>
273
+
274
+
275
+ <span id="prev=-instance_method"></span>
276
+ <div class="method_details ">
277
+ <h3 class="signature " id="prev-instance_method">
278
+
279
+ #<strong>prev</strong> &#x21d2; <tt>Object</tt>
280
+
281
+
282
+
283
+
284
+
285
+ </h3><div class="docstring">
286
+ <div class="discussion">
287
+
288
+ <p>Returns the value of attribute prev</p>
289
+
290
+
291
+ </div>
292
+ </div>
293
+ <div class="tags">
294
+
295
+ <p class="tag_title">Returns:</p>
296
+ <ul class="return">
297
+
298
+ <li>
299
+
300
+
301
+ <span class='type'>(<tt>Object</tt>)</span>
302
+
303
+
304
+
305
+ &mdash;
306
+ <div class='inline'>
307
+ <p>the current value of prev</p>
308
+ </div>
309
+
310
+ </li>
311
+
312
+ </ul>
313
+
314
+ </div><table class="source_code">
315
+ <tr>
316
+ <td>
317
+ <pre class="lines">
318
+
319
+
320
+ 5
321
+ 6
322
+ 7</pre>
323
+ </td>
324
+ <td>
325
+ <pre class="code"><span class="info file"># File 'lib/alimento/lista.rb', line 5</span>
326
+
327
+ <span class='kw'>def</span> <span class='id identifier rubyid_prev'>prev</span>
328
+ <span class='ivar'>@prev</span>
329
+ <span class='kw'>end</span></pre>
330
+ </td>
331
+ </tr>
332
+ </table>
333
+ </div>
334
+
335
+
336
+ <span id="value=-instance_method"></span>
337
+ <div class="method_details ">
338
+ <h3 class="signature " id="value-instance_method">
339
+
340
+ #<strong>value</strong> &#x21d2; <tt>Object</tt>
341
+
342
+
343
+
344
+
345
+
346
+ </h3><div class="docstring">
347
+ <div class="discussion">
348
+
349
+ <p>Returns the value of attribute value</p>
350
+
351
+
352
+ </div>
353
+ </div>
354
+ <div class="tags">
355
+
356
+ <p class="tag_title">Returns:</p>
357
+ <ul class="return">
358
+
359
+ <li>
360
+
361
+
362
+ <span class='type'>(<tt>Object</tt>)</span>
363
+
364
+
365
+
366
+ &mdash;
367
+ <div class='inline'>
368
+ <p>the current value of value</p>
369
+ </div>
370
+
371
+ </li>
372
+
373
+ </ul>
374
+
375
+ </div><table class="source_code">
376
+ <tr>
377
+ <td>
378
+ <pre class="lines">
379
+
380
+
381
+ 5
382
+ 6
383
+ 7</pre>
384
+ </td>
385
+ <td>
386
+ <pre class="code"><span class="info file"># File 'lib/alimento/lista.rb', line 5</span>
387
+
388
+ <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
389
+ <span class='ivar'>@value</span>
390
+ <span class='kw'>end</span></pre>
391
+ </td>
392
+ </tr>
393
+ </table>
394
+ </div>
395
+
396
+ </div>
397
+
398
+
399
+ </div>
400
+
401
+ <div id="footer">
402
+ Generated on Tue Nov 28 21:08:09 2017 by
403
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
404
+ 0.9.12 (ruby-2.3.0).
405
+ </div>
406
+
407
+ </div>
408
+ </body>
409
+ </html>
data/doc/Piramide.html ADDED
@@ -0,0 +1,407 @@
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: Piramide
8
+
9
+ &mdash; Documentation by YARD 0.9.12
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 = "Piramide";
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 (P)</a> &raquo;
40
+
41
+
42
+ <span class="title">Piramide</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: Piramide
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="Food.html" title="Food (class)">Food</a></span></span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next"><span class='object_link'><a href="Food.html" title="Food (class)">Food</a></span></li>
78
+
79
+ <li class="next">Piramide</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/alimento/alimento.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+ <h2>Overview</h2><div class="docstring">
105
+ <div class="discussion">
106
+
107
+ <div class="note notetag">
108
+ <strong>Note:</strong>
109
+ <div class='inline'>
110
+ <p>Clase Piramide que hereda de Food</p>
111
+ </div>
112
+ </div>
113
+
114
+
115
+
116
+ </div>
117
+ </div>
118
+ <div class="tags">
119
+
120
+
121
+ </div>
122
+
123
+
124
+
125
+
126
+
127
+ <h2>Instance Attribute Summary</h2>
128
+
129
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Food.html" title="Food (class)">Food</a></span></h3>
130
+ <p class="inherited"><span class='object_link'><a href="Food.html#glucidos-instance_method" title="Food#glucidos (method)">#glucidos</a></span>, <span class='object_link'><a href="Food.html#glucosa-instance_method" title="Food#glucosa (method)">#glucosa</a></span>, <span class='object_link'><a href="Food.html#grasas-instance_method" title="Food#grasas (method)">#grasas</a></span>, <span class='object_link'><a href="Food.html#n_grupo-instance_method" title="Food#n_grupo (method)">#n_grupo</a></span>, <span class='object_link'><a href="Food.html#nombre-instance_method" title="Food#nombre (method)">#nombre</a></span>, <span class='object_link'><a href="Food.html#proteinas-instance_method" title="Food#proteinas (method)">#proteinas</a></span>, <span class='object_link'><a href="Food.html#valores-instance_method" title="Food#valores (method)">#valores</a></span></p>
131
+
132
+
133
+
134
+ <h2>
135
+ Instance Method Summary
136
+ <small><a href="#" class="summary_toggle">collapse</a></small>
137
+ </h2>
138
+
139
+ <ul class="summary">
140
+
141
+ <li class="public ">
142
+ <span class="summary_signature">
143
+
144
+ <a href="#devolver_nombre_grupo-instance_method" title="#devolver_nombre_grupo (instance method)">#<strong>devolver_nombre_grupo</strong> &#x21d2; Object </a>
145
+
146
+
147
+
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <h2 id="label-Returns-3A+Devuelve+el+nombre+del+grupo+al+que+pertenece+el+alimento.">Returns: Devuelve el nombre del grupo al que pertenece el alimento.</h2>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, proteinas, glucidos, grasas, n_grupo) &#x21d2; Piramide </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+ <span class="note title constructor">constructor</span>
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+ <span class="summary_desc"><div class='inline'>
185
+ <h2 id="label-Returns-3A+Inicializa+nombre-2C+proteinas-2C+glucidos-2C+grasas+y+nombre+de+grupo.">Returns: Inicializa nombre, proteinas, glucidos, grasas y nombre de grupo.</h2>
186
+ </div></span>
187
+
188
+ </li>
189
+
190
+
191
+ <li class="public ">
192
+ <span class="summary_signature">
193
+
194
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
195
+
196
+
197
+
198
+ </span>
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'>
209
+ <h2 id="label-Returns-3A+Devuelve+el+nombre+del+grupo+al+que+pertenece+el+alimento.">Returns: Devuelve el nombre del grupo al que pertenece el alimento.</h2>
210
+ </div></span>
211
+
212
+ </li>
213
+
214
+
215
+ </ul>
216
+
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Food.html" title="Food (class)">Food</a></span></h3>
228
+ <p class="inherited"><span class='object_link'><a href="Food.html#<=>-instance_method" title="Food#&lt;=&gt; (method)">#<=></a></span>, <span class='object_link'><a href="Food.html#get_ve-instance_method" title="Food#get_ve (method)">#get_ve</a></span></p>
229
+
230
+ <div id="constructor_details" class="method_details_list">
231
+ <h2>Constructor Details</h2>
232
+
233
+ <div class="method_details first">
234
+ <h3 class="signature first" id="initialize-instance_method">
235
+
236
+ #<strong>initialize</strong>(nombre, proteinas, glucidos, grasas, n_grupo) &#x21d2; <tt><span class='object_link'><a href="" title="Piramide (class)">Piramide</a></span></tt>
237
+
238
+
239
+
240
+
241
+
242
+ </h3><div class="docstring">
243
+ <div class="discussion">
244
+
245
+ <div class="note notetag">
246
+ <strong>Note:</strong>
247
+ <div class='inline'>
248
+ <p>Inicializador de la clase heredada</p>
249
+ </div>
250
+ </div>
251
+
252
+
253
+ <h2 id="label-Returns-3A">Returns:</h2>
254
+
255
+ <p>Inicializa nombre, proteinas, glucidos, grasas y nombre de grupo</p>
256
+
257
+
258
+ </div>
259
+ </div>
260
+ <div class="tags">
261
+
262
+
263
+ </div><table class="source_code">
264
+ <tr>
265
+ <td>
266
+ <pre class="lines">
267
+
268
+
269
+ 68
270
+ 69
271
+ 70
272
+ 71</pre>
273
+ </td>
274
+ <td>
275
+ <pre class="code"><span class="info file"># File 'lib/alimento/alimento.rb', line 68</span>
276
+
277
+ <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_grasas'>grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_n_grupo'>n_grupo</span><span class='rparen'>)</span>
278
+ <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_grasas'>grasas</span><span class='rparen'>)</span>
279
+ <span class='ivar'>@n_grupo</span> <span class='op'>=</span> <span class='id identifier rubyid_n_grupo'>n_grupo</span>
280
+ <span class='kw'>end</span></pre>
281
+ </td>
282
+ </tr>
283
+ </table>
284
+ </div>
285
+
286
+ </div>
287
+
288
+
289
+ <div id="instance_method_details" class="method_details_list">
290
+ <h2>Instance Method Details</h2>
291
+
292
+
293
+ <div class="method_details first">
294
+ <h3 class="signature first" id="devolver_nombre_grupo-instance_method">
295
+
296
+ #<strong>devolver_nombre_grupo</strong> &#x21d2; <tt>Object</tt>
297
+
298
+
299
+
300
+
301
+
302
+ </h3><div class="docstring">
303
+ <div class="discussion">
304
+
305
+ <div class="note notetag">
306
+ <strong>Note:</strong>
307
+ <div class='inline'>
308
+ <p>Método devolver_nombre_grupo</p>
309
+ </div>
310
+ </div>
311
+
312
+
313
+ <h2 id="label-Returns-3A">Returns:</h2>
314
+
315
+ <p>Devuelve el nombre del grupo al que pertenece el alimento</p>
316
+
317
+
318
+ </div>
319
+ </div>
320
+ <div class="tags">
321
+
322
+
323
+ </div><table class="source_code">
324
+ <tr>
325
+ <td>
326
+ <pre class="lines">
327
+
328
+
329
+ 81
330
+ 82
331
+ 83</pre>
332
+ </td>
333
+ <td>
334
+ <pre class="code"><span class="info file"># File 'lib/alimento/alimento.rb', line 81</span>
335
+
336
+ <span class='kw'>def</span> <span class='id identifier rubyid_devolver_nombre_grupo'>devolver_nombre_grupo</span>
337
+ <span class='ivar'>@n_grupo</span>
338
+ <span class='kw'>end</span></pre>
339
+ </td>
340
+ </tr>
341
+ </table>
342
+ </div>
343
+
344
+ <div class="method_details ">
345
+ <h3 class="signature " id="to_s-instance_method">
346
+
347
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
348
+
349
+
350
+
351
+
352
+
353
+ </h3><div class="docstring">
354
+ <div class="discussion">
355
+
356
+ <div class="note notetag">
357
+ <strong>Note:</strong>
358
+ <div class='inline'>
359
+ <p>Método to_s</p>
360
+ </div>
361
+ </div>
362
+
363
+
364
+ <h2 id="label-Returns-3A">Returns:</h2>
365
+
366
+ <p>Devuelve el nombre del grupo al que pertenece el alimento</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
+ 75
381
+ 76
382
+ 77</pre>
383
+ </td>
384
+ <td>
385
+ <pre class="code"><span class="info file"># File 'lib/alimento/alimento.rb', line 75</span>
386
+
387
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
388
+ <span class='ivar'>@n_grupo</span>
389
+ <span class='kw'>end</span></pre>
390
+ </td>
391
+ </tr>
392
+ </table>
393
+ </div>
394
+
395
+ </div>
396
+
397
+ </div>
398
+
399
+ <div id="footer">
400
+ Generated on Tue Nov 28 21:08:09 2017 by
401
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
402
+ 0.9.12 (ruby-2.3.0).
403
+ </div>
404
+
405
+ </div>
406
+ </body>
407
+ </html>