gema-alu0101040882 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +8 -0
  4. data/.rake_tasks~ +7 -0
  5. data/.rspec +3 -0
  6. data/.travis.yml +5 -0
  7. data/.yardoc/checksums +9 -0
  8. data/.yardoc/complete +0 -0
  9. data/.yardoc/object_types +0 -0
  10. data/.yardoc/objects/root.dat +0 -0
  11. data/.yardoc/proxy_types +0 -0
  12. data/Gemfile +6 -0
  13. data/Gemfile.lock +111 -0
  14. data/Guardfile +82 -0
  15. data/README.md +32 -0
  16. data/Rakefile +8 -0
  17. data/bin/bundle +105 -0
  18. data/bin/console +14 -0
  19. data/bin/htmldiff +29 -0
  20. data/bin/ldiff +29 -0
  21. data/bin/rake +29 -0
  22. data/bin/rspec +29 -0
  23. data/bin/setup +8 -0
  24. data/doc/Dll.html +1502 -0
  25. data/doc/Dll/Node.html +398 -0
  26. data/doc/Etiqueta_nut.html +1717 -0
  27. data/doc/Gema.html +134 -0
  28. data/doc/Individuo.html +289 -0
  29. data/doc/Menu_dietetico.html +483 -0
  30. data/doc/Paciente.html +233 -0
  31. data/doc/Paciente_obeso.html +1386 -0
  32. data/doc/Valores_nut.html +777 -0
  33. data/doc/_index.html +208 -0
  34. data/doc/class_list.html +51 -0
  35. data/doc/css/common.css +1 -0
  36. data/doc/css/full_list.css +58 -0
  37. data/doc/css/style.css +496 -0
  38. data/doc/file.README.html +115 -0
  39. data/doc/file_list.html +56 -0
  40. data/doc/frames.html +17 -0
  41. data/doc/index.html +115 -0
  42. data/doc/js/app.js +292 -0
  43. data/doc/js/full_list.js +216 -0
  44. data/doc/js/jquery.js +4 -0
  45. data/doc/method_list.html +651 -0
  46. data/doc/top-level-namespace.html +112 -0
  47. data/gema.gemspec +43 -0
  48. data/lib/gema.rb +14 -0
  49. data/lib/gema/etiqueta_nut.rb +46 -0
  50. data/lib/gema/individuo.rb +14 -0
  51. data/lib/gema/list.rb +212 -0
  52. data/lib/gema/menu.rb +134 -0
  53. data/lib/gema/menu_dietetico.rb +37 -0
  54. data/lib/gema/paciente.rb +12 -0
  55. data/lib/gema/paciente_obeso.rb +75 -0
  56. data/lib/gema/valores_nut.rb +40 -0
  57. data/lib/gema/version.rb +4 -0
  58. metadata +197 -0
data/doc/Dll/Node.html ADDED
@@ -0,0 +1,398 @@
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: Dll::Node
8
+
9
+ &mdash; Documentation by YARD 0.9.16
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 = "Dll::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
+ <span class='title'><span class='object_link'><a href="../Dll.html" title="Dll (class)">Dll</a></span></span>
41
+ &raquo;
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: Dll::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">Dll::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/gema/list.rb</dd>
100
+ </dl>
101
+
102
+ </div>
103
+
104
+
105
+
106
+
107
+
108
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
109
+ <ul class="summary">
110
+
111
+ <li class="public ">
112
+ <span class="summary_signature">
113
+
114
+ <a href="#next-instance_method" title="#next (instance method)">#<strong>next</strong> &#x21d2; Object </a>
115
+
116
+
117
+
118
+ </span>
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+ <span class="summary_desc"><div class='inline'>
132
+ <p>Returns the value of attribute next.</p>
133
+ </div></span>
134
+
135
+ </li>
136
+
137
+
138
+ <li class="public ">
139
+ <span class="summary_signature">
140
+
141
+ <a href="#prev-instance_method" title="#prev (instance method)">#<strong>prev</strong> &#x21d2; Object </a>
142
+
143
+
144
+
145
+ </span>
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+ <span class="summary_desc"><div class='inline'>
159
+ <p>Returns the value of attribute prev.</p>
160
+ </div></span>
161
+
162
+ </li>
163
+
164
+
165
+ <li class="public ">
166
+ <span class="summary_signature">
167
+
168
+ <a href="#value-instance_method" title="#value (instance method)">#<strong>value</strong> &#x21d2; Object </a>
169
+
170
+
171
+
172
+ </span>
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+ <span class="summary_desc"><div class='inline'>
186
+ <p>Returns the value of attribute value.</p>
187
+ </div></span>
188
+
189
+ </li>
190
+
191
+
192
+ </ul>
193
+
194
+
195
+
196
+
197
+
198
+
199
+ <div id="instance_attr_details" class="attr_details">
200
+ <h2>Instance Attribute Details</h2>
201
+
202
+
203
+ <span id="next=-instance_method"></span>
204
+ <div class="method_details first">
205
+ <h3 class="signature first" id="next-instance_method">
206
+
207
+ #<strong>next</strong> &#x21d2; <tt>Object</tt>
208
+
209
+
210
+
211
+
212
+
213
+ </h3><div class="docstring">
214
+ <div class="discussion">
215
+
216
+ <p>Returns the value of attribute next</p>
217
+
218
+
219
+ </div>
220
+ </div>
221
+ <div class="tags">
222
+
223
+ <p class="tag_title">Returns:</p>
224
+ <ul class="return">
225
+
226
+ <li>
227
+
228
+
229
+ <span class='type'>(<tt>Object</tt>)</span>
230
+
231
+
232
+
233
+ &mdash;
234
+ <div class='inline'>
235
+ <p>the current value of next</p>
236
+ </div>
237
+
238
+ </li>
239
+
240
+ </ul>
241
+
242
+ </div><table class="source_code">
243
+ <tr>
244
+ <td>
245
+ <pre class="lines">
246
+
247
+
248
+ 6
249
+ 7
250
+ 8</pre>
251
+ </td>
252
+ <td>
253
+ <pre class="code"><span class="info file"># File 'lib/gema/list.rb', line 6</span>
254
+
255
+ <span class='kw'>def</span> <span class='kw'>next</span>
256
+ <span class='ivar'>@next</span>
257
+ <span class='kw'>end</span></pre>
258
+ </td>
259
+ </tr>
260
+ </table>
261
+ </div>
262
+
263
+
264
+ <span id="prev=-instance_method"></span>
265
+ <div class="method_details ">
266
+ <h3 class="signature " id="prev-instance_method">
267
+
268
+ #<strong>prev</strong> &#x21d2; <tt>Object</tt>
269
+
270
+
271
+
272
+
273
+
274
+ </h3><div class="docstring">
275
+ <div class="discussion">
276
+
277
+ <p>Returns the value of attribute prev</p>
278
+
279
+
280
+ </div>
281
+ </div>
282
+ <div class="tags">
283
+
284
+ <p class="tag_title">Returns:</p>
285
+ <ul class="return">
286
+
287
+ <li>
288
+
289
+
290
+ <span class='type'>(<tt>Object</tt>)</span>
291
+
292
+
293
+
294
+ &mdash;
295
+ <div class='inline'>
296
+ <p>the current value of prev</p>
297
+ </div>
298
+
299
+ </li>
300
+
301
+ </ul>
302
+
303
+ </div><table class="source_code">
304
+ <tr>
305
+ <td>
306
+ <pre class="lines">
307
+
308
+
309
+ 6
310
+ 7
311
+ 8</pre>
312
+ </td>
313
+ <td>
314
+ <pre class="code"><span class="info file"># File 'lib/gema/list.rb', line 6</span>
315
+
316
+ <span class='kw'>def</span> <span class='id identifier rubyid_prev'>prev</span>
317
+ <span class='ivar'>@prev</span>
318
+ <span class='kw'>end</span></pre>
319
+ </td>
320
+ </tr>
321
+ </table>
322
+ </div>
323
+
324
+
325
+ <span id="value=-instance_method"></span>
326
+ <div class="method_details ">
327
+ <h3 class="signature " id="value-instance_method">
328
+
329
+ #<strong>value</strong> &#x21d2; <tt>Object</tt>
330
+
331
+
332
+
333
+
334
+
335
+ </h3><div class="docstring">
336
+ <div class="discussion">
337
+
338
+ <p>Returns the value of attribute value</p>
339
+
340
+
341
+ </div>
342
+ </div>
343
+ <div class="tags">
344
+
345
+ <p class="tag_title">Returns:</p>
346
+ <ul class="return">
347
+
348
+ <li>
349
+
350
+
351
+ <span class='type'>(<tt>Object</tt>)</span>
352
+
353
+
354
+
355
+ &mdash;
356
+ <div class='inline'>
357
+ <p>the current value of value</p>
358
+ </div>
359
+
360
+ </li>
361
+
362
+ </ul>
363
+
364
+ </div><table class="source_code">
365
+ <tr>
366
+ <td>
367
+ <pre class="lines">
368
+
369
+
370
+ 6
371
+ 7
372
+ 8</pre>
373
+ </td>
374
+ <td>
375
+ <pre class="code"><span class="info file"># File 'lib/gema/list.rb', line 6</span>
376
+
377
+ <span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
378
+ <span class='ivar'>@value</span>
379
+ <span class='kw'>end</span></pre>
380
+ </td>
381
+ </tr>
382
+ </table>
383
+ </div>
384
+
385
+ </div>
386
+
387
+
388
+ </div>
389
+
390
+ <div id="footer">
391
+ Generated on Wed Dec 19 11:49:27 2018 by
392
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
393
+ 0.9.16 (ruby-2.5.1).
394
+ </div>
395
+
396
+ </div>
397
+ </body>
398
+ </html>
@@ -0,0 +1,1717 @@
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: Etiqueta_nut
8
+
9
+ &mdash; Documentation by YARD 0.9.16
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 = "Etiqueta_nut";
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 (E)</a> &raquo;
40
+
41
+
42
+ <span class="title">Etiqueta_nut</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: Etiqueta_nut
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Etiqueta_nut</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd>Comparable</dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>lib/gema/etiqueta_nut.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+ <h2>Overview</h2><div class="docstring">
108
+ <div class="discussion">
109
+
110
+ <p>Etiqueta nutricional de un individuo</p>
111
+
112
+
113
+ </div>
114
+ </div>
115
+ <div class="tags">
116
+
117
+
118
+ </div>
119
+
120
+
121
+
122
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
123
+ <ul class="summary">
124
+
125
+ <li class="public ">
126
+ <span class="summary_signature">
127
+
128
+ <a href="#almidon-instance_method" title="#almidon (instance method)">#<strong>almidon</strong> &#x21d2; Object </a>
129
+
130
+
131
+
132
+ </span>
133
+
134
+
135
+
136
+
137
+ <span class="note title readonly">readonly</span>
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Returns the value of attribute almidon.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ <li class="public ">
155
+ <span class="summary_signature">
156
+
157
+ <a href="#azucares-instance_method" title="#azucares (instance method)">#<strong>azucares</strong> &#x21d2; Object </a>
158
+
159
+
160
+
161
+ </span>
162
+
163
+
164
+
165
+
166
+ <span class="note title readonly">readonly</span>
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>Returns the value of attribute azucares.</p>
178
+ </div></span>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#fibra-instance_method" title="#fibra (instance method)">#<strong>fibra</strong> &#x21d2; Object </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+
193
+
194
+
195
+ <span class="note title readonly">readonly</span>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+ <span class="summary_desc"><div class='inline'>
206
+ <p>Returns the value of attribute fibra.</p>
207
+ </div></span>
208
+
209
+ </li>
210
+
211
+
212
+ <li class="public ">
213
+ <span class="summary_signature">
214
+
215
+ <a href="#grasas-instance_method" title="#grasas (instance method)">#<strong>grasas</strong> &#x21d2; Object </a>
216
+
217
+
218
+
219
+ </span>
220
+
221
+
222
+
223
+
224
+ <span class="note title readonly">readonly</span>
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+ <span class="summary_desc"><div class='inline'>
235
+ <p>Returns the value of attribute grasas.</p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ <li class="public ">
242
+ <span class="summary_signature">
243
+
244
+ <a href="#grasas_mon-instance_method" title="#grasas_mon (instance method)">#<strong>grasas_mon</strong> &#x21d2; Object </a>
245
+
246
+
247
+
248
+ </span>
249
+
250
+
251
+
252
+
253
+ <span class="note title readonly">readonly</span>
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+
262
+
263
+ <span class="summary_desc"><div class='inline'>
264
+ <p>Returns the value of attribute grasas_mon.</p>
265
+ </div></span>
266
+
267
+ </li>
268
+
269
+
270
+ <li class="public ">
271
+ <span class="summary_signature">
272
+
273
+ <a href="#grasas_pol-instance_method" title="#grasas_pol (instance method)">#<strong>grasas_pol</strong> &#x21d2; Object </a>
274
+
275
+
276
+
277
+ </span>
278
+
279
+
280
+
281
+
282
+ <span class="note title readonly">readonly</span>
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+ <span class="summary_desc"><div class='inline'>
293
+ <p>Returns the value of attribute grasas_pol.</p>
294
+ </div></span>
295
+
296
+ </li>
297
+
298
+
299
+ <li class="public ">
300
+ <span class="summary_signature">
301
+
302
+ <a href="#grasas_s-instance_method" title="#grasas_s (instance method)">#<strong>grasas_s</strong> &#x21d2; Object </a>
303
+
304
+
305
+
306
+ </span>
307
+
308
+
309
+
310
+
311
+ <span class="note title readonly">readonly</span>
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ <span class="summary_desc"><div class='inline'>
322
+ <p>Returns the value of attribute grasas_s.</p>
323
+ </div></span>
324
+
325
+ </li>
326
+
327
+
328
+ <li class="public ">
329
+ <span class="summary_signature">
330
+
331
+ <a href="#hidratos-instance_method" title="#hidratos (instance method)">#<strong>hidratos</strong> &#x21d2; Object </a>
332
+
333
+
334
+
335
+ </span>
336
+
337
+
338
+
339
+
340
+ <span class="note title readonly">readonly</span>
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+
349
+
350
+ <span class="summary_desc"><div class='inline'>
351
+ <p>Returns the value of attribute hidratos.</p>
352
+ </div></span>
353
+
354
+ </li>
355
+
356
+
357
+ <li class="public ">
358
+ <span class="summary_signature">
359
+
360
+ <a href="#kcal-instance_method" title="#kcal (instance method)">#<strong>kcal</strong> &#x21d2; Object </a>
361
+
362
+
363
+
364
+ </span>
365
+
366
+
367
+
368
+
369
+ <span class="note title readonly">readonly</span>
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+ <span class="summary_desc"><div class='inline'>
380
+ <p>Returns the value of attribute kcal.</p>
381
+ </div></span>
382
+
383
+ </li>
384
+
385
+
386
+ <li class="public ">
387
+ <span class="summary_signature">
388
+
389
+ <a href="#kj-instance_method" title="#kj (instance method)">#<strong>kj</strong> &#x21d2; Object </a>
390
+
391
+
392
+
393
+ </span>
394
+
395
+
396
+
397
+
398
+ <span class="note title readonly">readonly</span>
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+ <span class="summary_desc"><div class='inline'>
409
+ <p>Returns the value of attribute kj.</p>
410
+ </div></span>
411
+
412
+ </li>
413
+
414
+
415
+ <li class="public ">
416
+ <span class="summary_signature">
417
+
418
+ <a href="#minerales-instance_method" title="#minerales (instance method)">#<strong>minerales</strong> &#x21d2; Object </a>
419
+
420
+
421
+
422
+ </span>
423
+
424
+
425
+
426
+
427
+ <span class="note title readonly">readonly</span>
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+ <span class="summary_desc"><div class='inline'>
438
+ <p>Returns the value of attribute minerales.</p>
439
+ </div></span>
440
+
441
+ </li>
442
+
443
+
444
+ <li class="public ">
445
+ <span class="summary_signature">
446
+
447
+ <a href="#nombre-instance_method" title="#nombre (instance method)">#<strong>nombre</strong> &#x21d2; Object </a>
448
+
449
+
450
+
451
+ </span>
452
+
453
+
454
+
455
+
456
+ <span class="note title readonly">readonly</span>
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+
466
+ <span class="summary_desc"><div class='inline'>
467
+ <p>Returns the value of attribute nombre.</p>
468
+ </div></span>
469
+
470
+ </li>
471
+
472
+
473
+ <li class="public ">
474
+ <span class="summary_signature">
475
+
476
+ <a href="#polialcoholes-instance_method" title="#polialcoholes (instance method)">#<strong>polialcoholes</strong> &#x21d2; Object </a>
477
+
478
+
479
+
480
+ </span>
481
+
482
+
483
+
484
+
485
+ <span class="note title readonly">readonly</span>
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+ <span class="summary_desc"><div class='inline'>
496
+ <p>Returns the value of attribute polialcoholes.</p>
497
+ </div></span>
498
+
499
+ </li>
500
+
501
+
502
+ <li class="public ">
503
+ <span class="summary_signature">
504
+
505
+ <a href="#proteinas-instance_method" title="#proteinas (instance method)">#<strong>proteinas</strong> &#x21d2; Object </a>
506
+
507
+
508
+
509
+ </span>
510
+
511
+
512
+
513
+
514
+ <span class="note title readonly">readonly</span>
515
+
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+ <span class="summary_desc"><div class='inline'>
525
+ <p>Returns the value of attribute proteinas.</p>
526
+ </div></span>
527
+
528
+ </li>
529
+
530
+
531
+ <li class="public ">
532
+ <span class="summary_signature">
533
+
534
+ <a href="#sal-instance_method" title="#sal (instance method)">#<strong>sal</strong> &#x21d2; Object </a>
535
+
536
+
537
+
538
+ </span>
539
+
540
+
541
+
542
+
543
+ <span class="note title readonly">readonly</span>
544
+
545
+
546
+
547
+
548
+
549
+
550
+
551
+
552
+
553
+ <span class="summary_desc"><div class='inline'>
554
+ <p>Returns the value of attribute sal.</p>
555
+ </div></span>
556
+
557
+ </li>
558
+
559
+
560
+ <li class="public ">
561
+ <span class="summary_signature">
562
+
563
+ <a href="#vitaminas-instance_method" title="#vitaminas (instance method)">#<strong>vitaminas</strong> &#x21d2; Object </a>
564
+
565
+
566
+
567
+ </span>
568
+
569
+
570
+
571
+
572
+ <span class="note title readonly">readonly</span>
573
+
574
+
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+ <span class="summary_desc"><div class='inline'>
583
+ <p>Returns the value of attribute vitaminas.</p>
584
+ </div></span>
585
+
586
+ </li>
587
+
588
+
589
+ </ul>
590
+
591
+
592
+
593
+
594
+
595
+ <h2>
596
+ Instance Method Summary
597
+ <small><a href="#" class="summary_toggle">collapse</a></small>
598
+ </h2>
599
+
600
+ <ul class="summary">
601
+
602
+ <li class="public ">
603
+ <span class="summary_signature">
604
+
605
+ <a href="#<=>-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(other) &#x21d2; Object </a>
606
+
607
+
608
+
609
+ </span>
610
+
611
+
612
+
613
+
614
+
615
+
616
+
617
+
618
+
619
+ <span class="summary_desc"><div class='inline'>
620
+ <p>Metodo de comparaciones utilizado para el modulo comparable.</p>
621
+ </div></span>
622
+
623
+ </li>
624
+
625
+
626
+ <li class="public ">
627
+ <span class="summary_signature">
628
+
629
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, grasas, grasas_s, hidratos, azucares, proteinas, sal, grasas_mon, grasas_pol, polialcoholes, almidon, fibra, vitaminas, minerales) &#x21d2; Etiqueta_nut </a>
630
+
631
+
632
+
633
+ </span>
634
+
635
+
636
+ <span class="note title constructor">constructor</span>
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+ <span class="summary_desc"><div class='inline'>
646
+ <p>A new instance of Etiqueta_nut.</p>
647
+ </div></span>
648
+
649
+ </li>
650
+
651
+
652
+ <li class="public ">
653
+ <span class="summary_signature">
654
+
655
+ <a href="#porciones-instance_method" title="#porciones (instance method)">#<strong>porciones</strong>(n_porciones, tamaño) &#x21d2; Object </a>
656
+
657
+
658
+
659
+ </span>
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+ <span class="summary_desc"><div class='inline'>
670
+ <p>Añade la porciones y el tamaño a la etiqueta.</p>
671
+ </div></span>
672
+
673
+ </li>
674
+
675
+
676
+ <li class="public ">
677
+ <span class="summary_signature">
678
+
679
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
680
+
681
+
682
+
683
+ </span>
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+ <span class="summary_desc"><div class='inline'>
694
+ <p>Convierte la etiqueta a una cadena.</p>
695
+ </div></span>
696
+
697
+ </li>
698
+
699
+
700
+ <li class="public ">
701
+ <span class="summary_signature">
702
+
703
+ <a href="#to_s_porcentaje-instance_method" title="#to_s_porcentaje (instance method)">#<strong>to_s_porcentaje</strong> &#x21d2; Object </a>
704
+
705
+
706
+
707
+ </span>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+ <span class="summary_desc"><div class='inline'>
718
+ <p>Convierte la etiqueta a una cadena comoun porcentaje.</p>
719
+ </div></span>
720
+
721
+ </li>
722
+
723
+
724
+ <li class="public ">
725
+ <span class="summary_signature">
726
+
727
+ <a href="#valor_energetico-instance_method" title="#valor_energetico (instance method)">#<strong>valor_energetico</strong> &#x21d2; Object </a>
728
+
729
+
730
+
731
+ </span>
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+ <span class="summary_desc"><div class='inline'>
742
+ <p>Calcula el valor energetico de una etiqueta.</p>
743
+ </div></span>
744
+
745
+ </li>
746
+
747
+
748
+ </ul>
749
+
750
+
751
+
752
+ <div id="constructor_details" class="method_details_list">
753
+ <h2>Constructor Details</h2>
754
+
755
+ <div class="method_details first">
756
+ <h3 class="signature first" id="initialize-instance_method">
757
+
758
+ #<strong>initialize</strong>(nombre, grasas, grasas_s, hidratos, azucares, proteinas, sal, grasas_mon, grasas_pol, polialcoholes, almidon, fibra, vitaminas, minerales) &#x21d2; <tt><span class='object_link'><a href="" title="Etiqueta_nut (class)">Etiqueta_nut</a></span></tt>
759
+
760
+
761
+
762
+
763
+
764
+ </h3><div class="docstring">
765
+ <div class="discussion">
766
+
767
+ <p>Returns a new instance of Etiqueta_nut</p>
768
+
769
+
770
+ </div>
771
+ </div>
772
+ <div class="tags">
773
+
774
+
775
+ </div><table class="source_code">
776
+ <tr>
777
+ <td>
778
+ <pre class="lines">
779
+
780
+
781
+ 8
782
+ 9
783
+ 10</pre>
784
+ </td>
785
+ <td>
786
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 8</span>
787
+
788
+ <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_grasas'>grasas</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_s'>grasas_s</span><span class='comma'>,</span><span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span><span class='id identifier rubyid_azucares'>azucares</span><span class='comma'>,</span><span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span><span class='id identifier rubyid_sal'>sal</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_mon'>grasas_mon</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_pol'>grasas_pol</span><span class='comma'>,</span><span class='id identifier rubyid_polialcoholes'>polialcoholes</span><span class='comma'>,</span><span class='id identifier rubyid_almidon'>almidon</span><span class='comma'>,</span><span class='id identifier rubyid_fibra'>fibra</span><span class='comma'>,</span><span class='id identifier rubyid_vitaminas'>vitaminas</span><span class='comma'>,</span><span class='id identifier rubyid_minerales'>minerales</span><span class='rparen'>)</span>
789
+ <span class='ivar'>@nombre</span><span class='comma'>,</span><span class='ivar'>@grasas</span><span class='comma'>,</span><span class='ivar'>@grasas_s</span><span class='comma'>,</span><span class='ivar'>@hidratos</span><span class='comma'>,</span><span class='ivar'>@azucares</span><span class='comma'>,</span><span class='ivar'>@proteinas</span><span class='comma'>,</span><span class='ivar'>@sal</span><span class='comma'>,</span><span class='ivar'>@grasas_mon</span><span class='comma'>,</span><span class='ivar'>@grasas_pol</span><span class='comma'>,</span><span class='ivar'>@polialcoholes</span><span class='comma'>,</span><span class='ivar'>@almidon</span><span class='comma'>,</span><span class='ivar'>@fibra</span><span class='comma'>,</span><span class='ivar'>@vitaminas</span><span class='comma'>,</span><span class='ivar'>@minerales</span> <span class='op'>=</span> <span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span><span class='id identifier rubyid_grasas'>grasas</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_s'>grasas_s</span><span class='comma'>,</span><span class='id identifier rubyid_hidratos'>hidratos</span><span class='comma'>,</span><span class='id identifier rubyid_azucares'>azucares</span><span class='comma'>,</span><span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span><span class='id identifier rubyid_sal'>sal</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_mon'>grasas_mon</span><span class='comma'>,</span><span class='id identifier rubyid_grasas_pol'>grasas_pol</span><span class='comma'>,</span><span class='id identifier rubyid_polialcoholes'>polialcoholes</span><span class='comma'>,</span><span class='id identifier rubyid_almidon'>almidon</span><span class='comma'>,</span><span class='id identifier rubyid_fibra'>fibra</span><span class='comma'>,</span><span class='id identifier rubyid_vitaminas'>vitaminas</span><span class='comma'>,</span><span class='id identifier rubyid_minerales'>minerales</span>
790
+ <span class='kw'>end</span></pre>
791
+ </td>
792
+ </tr>
793
+ </table>
794
+ </div>
795
+
796
+ </div>
797
+
798
+ <div id="instance_attr_details" class="attr_details">
799
+ <h2>Instance Attribute Details</h2>
800
+
801
+
802
+ <span id=""></span>
803
+ <div class="method_details first">
804
+ <h3 class="signature first" id="almidon-instance_method">
805
+
806
+ #<strong>almidon</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
807
+
808
+
809
+
810
+
811
+
812
+ </h3><div class="docstring">
813
+ <div class="discussion">
814
+
815
+ <p>Returns the value of attribute almidon</p>
816
+
817
+
818
+ </div>
819
+ </div>
820
+ <div class="tags">
821
+
822
+
823
+ </div><table class="source_code">
824
+ <tr>
825
+ <td>
826
+ <pre class="lines">
827
+
828
+
829
+ 6
830
+ 7
831
+ 8</pre>
832
+ </td>
833
+ <td>
834
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
835
+
836
+ <span class='kw'>def</span> <span class='id identifier rubyid_almidon'>almidon</span>
837
+ <span class='ivar'>@almidon</span>
838
+ <span class='kw'>end</span></pre>
839
+ </td>
840
+ </tr>
841
+ </table>
842
+ </div>
843
+
844
+
845
+ <span id=""></span>
846
+ <div class="method_details ">
847
+ <h3 class="signature " id="azucares-instance_method">
848
+
849
+ #<strong>azucares</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
850
+
851
+
852
+
853
+
854
+
855
+ </h3><div class="docstring">
856
+ <div class="discussion">
857
+
858
+ <p>Returns the value of attribute azucares</p>
859
+
860
+
861
+ </div>
862
+ </div>
863
+ <div class="tags">
864
+
865
+
866
+ </div><table class="source_code">
867
+ <tr>
868
+ <td>
869
+ <pre class="lines">
870
+
871
+
872
+ 6
873
+ 7
874
+ 8</pre>
875
+ </td>
876
+ <td>
877
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
878
+
879
+ <span class='kw'>def</span> <span class='id identifier rubyid_azucares'>azucares</span>
880
+ <span class='ivar'>@azucares</span>
881
+ <span class='kw'>end</span></pre>
882
+ </td>
883
+ </tr>
884
+ </table>
885
+ </div>
886
+
887
+
888
+ <span id=""></span>
889
+ <div class="method_details ">
890
+ <h3 class="signature " id="fibra-instance_method">
891
+
892
+ #<strong>fibra</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
893
+
894
+
895
+
896
+
897
+
898
+ </h3><div class="docstring">
899
+ <div class="discussion">
900
+
901
+ <p>Returns the value of attribute fibra</p>
902
+
903
+
904
+ </div>
905
+ </div>
906
+ <div class="tags">
907
+
908
+
909
+ </div><table class="source_code">
910
+ <tr>
911
+ <td>
912
+ <pre class="lines">
913
+
914
+
915
+ 6
916
+ 7
917
+ 8</pre>
918
+ </td>
919
+ <td>
920
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
921
+
922
+ <span class='kw'>def</span> <span class='id identifier rubyid_fibra'>fibra</span>
923
+ <span class='ivar'>@fibra</span>
924
+ <span class='kw'>end</span></pre>
925
+ </td>
926
+ </tr>
927
+ </table>
928
+ </div>
929
+
930
+
931
+ <span id=""></span>
932
+ <div class="method_details ">
933
+ <h3 class="signature " id="grasas-instance_method">
934
+
935
+ #<strong>grasas</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
936
+
937
+
938
+
939
+
940
+
941
+ </h3><div class="docstring">
942
+ <div class="discussion">
943
+
944
+ <p>Returns the value of attribute grasas</p>
945
+
946
+
947
+ </div>
948
+ </div>
949
+ <div class="tags">
950
+
951
+
952
+ </div><table class="source_code">
953
+ <tr>
954
+ <td>
955
+ <pre class="lines">
956
+
957
+
958
+ 6
959
+ 7
960
+ 8</pre>
961
+ </td>
962
+ <td>
963
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
964
+
965
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasas'>grasas</span>
966
+ <span class='ivar'>@grasas</span>
967
+ <span class='kw'>end</span></pre>
968
+ </td>
969
+ </tr>
970
+ </table>
971
+ </div>
972
+
973
+
974
+ <span id=""></span>
975
+ <div class="method_details ">
976
+ <h3 class="signature " id="grasas_mon-instance_method">
977
+
978
+ #<strong>grasas_mon</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
979
+
980
+
981
+
982
+
983
+
984
+ </h3><div class="docstring">
985
+ <div class="discussion">
986
+
987
+ <p>Returns the value of attribute grasas_mon</p>
988
+
989
+
990
+ </div>
991
+ </div>
992
+ <div class="tags">
993
+
994
+
995
+ </div><table class="source_code">
996
+ <tr>
997
+ <td>
998
+ <pre class="lines">
999
+
1000
+
1001
+ 6
1002
+ 7
1003
+ 8</pre>
1004
+ </td>
1005
+ <td>
1006
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1007
+
1008
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasas_mon'>grasas_mon</span>
1009
+ <span class='ivar'>@grasas_mon</span>
1010
+ <span class='kw'>end</span></pre>
1011
+ </td>
1012
+ </tr>
1013
+ </table>
1014
+ </div>
1015
+
1016
+
1017
+ <span id=""></span>
1018
+ <div class="method_details ">
1019
+ <h3 class="signature " id="grasas_pol-instance_method">
1020
+
1021
+ #<strong>grasas_pol</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1022
+
1023
+
1024
+
1025
+
1026
+
1027
+ </h3><div class="docstring">
1028
+ <div class="discussion">
1029
+
1030
+ <p>Returns the value of attribute grasas_pol</p>
1031
+
1032
+
1033
+ </div>
1034
+ </div>
1035
+ <div class="tags">
1036
+
1037
+
1038
+ </div><table class="source_code">
1039
+ <tr>
1040
+ <td>
1041
+ <pre class="lines">
1042
+
1043
+
1044
+ 6
1045
+ 7
1046
+ 8</pre>
1047
+ </td>
1048
+ <td>
1049
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1050
+
1051
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasas_pol'>grasas_pol</span>
1052
+ <span class='ivar'>@grasas_pol</span>
1053
+ <span class='kw'>end</span></pre>
1054
+ </td>
1055
+ </tr>
1056
+ </table>
1057
+ </div>
1058
+
1059
+
1060
+ <span id=""></span>
1061
+ <div class="method_details ">
1062
+ <h3 class="signature " id="grasas_s-instance_method">
1063
+
1064
+ #<strong>grasas_s</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1065
+
1066
+
1067
+
1068
+
1069
+
1070
+ </h3><div class="docstring">
1071
+ <div class="discussion">
1072
+
1073
+ <p>Returns the value of attribute grasas_s</p>
1074
+
1075
+
1076
+ </div>
1077
+ </div>
1078
+ <div class="tags">
1079
+
1080
+
1081
+ </div><table class="source_code">
1082
+ <tr>
1083
+ <td>
1084
+ <pre class="lines">
1085
+
1086
+
1087
+ 6
1088
+ 7
1089
+ 8</pre>
1090
+ </td>
1091
+ <td>
1092
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1093
+
1094
+ <span class='kw'>def</span> <span class='id identifier rubyid_grasas_s'>grasas_s</span>
1095
+ <span class='ivar'>@grasas_s</span>
1096
+ <span class='kw'>end</span></pre>
1097
+ </td>
1098
+ </tr>
1099
+ </table>
1100
+ </div>
1101
+
1102
+
1103
+ <span id=""></span>
1104
+ <div class="method_details ">
1105
+ <h3 class="signature " id="hidratos-instance_method">
1106
+
1107
+ #<strong>hidratos</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+ </h3><div class="docstring">
1114
+ <div class="discussion">
1115
+
1116
+ <p>Returns the value of attribute hidratos</p>
1117
+
1118
+
1119
+ </div>
1120
+ </div>
1121
+ <div class="tags">
1122
+
1123
+
1124
+ </div><table class="source_code">
1125
+ <tr>
1126
+ <td>
1127
+ <pre class="lines">
1128
+
1129
+
1130
+ 6
1131
+ 7
1132
+ 8</pre>
1133
+ </td>
1134
+ <td>
1135
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1136
+
1137
+ <span class='kw'>def</span> <span class='id identifier rubyid_hidratos'>hidratos</span>
1138
+ <span class='ivar'>@hidratos</span>
1139
+ <span class='kw'>end</span></pre>
1140
+ </td>
1141
+ </tr>
1142
+ </table>
1143
+ </div>
1144
+
1145
+
1146
+ <span id=""></span>
1147
+ <div class="method_details ">
1148
+ <h3 class="signature " id="kcal-instance_method">
1149
+
1150
+ #<strong>kcal</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+ </h3><div class="docstring">
1157
+ <div class="discussion">
1158
+
1159
+ <p>Returns the value of attribute kcal</p>
1160
+
1161
+
1162
+ </div>
1163
+ </div>
1164
+ <div class="tags">
1165
+
1166
+
1167
+ </div><table class="source_code">
1168
+ <tr>
1169
+ <td>
1170
+ <pre class="lines">
1171
+
1172
+
1173
+ 6
1174
+ 7
1175
+ 8</pre>
1176
+ </td>
1177
+ <td>
1178
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1179
+
1180
+ <span class='kw'>def</span> <span class='id identifier rubyid_kcal'>kcal</span>
1181
+ <span class='ivar'>@kcal</span>
1182
+ <span class='kw'>end</span></pre>
1183
+ </td>
1184
+ </tr>
1185
+ </table>
1186
+ </div>
1187
+
1188
+
1189
+ <span id=""></span>
1190
+ <div class="method_details ">
1191
+ <h3 class="signature " id="kj-instance_method">
1192
+
1193
+ #<strong>kj</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+ </h3><div class="docstring">
1200
+ <div class="discussion">
1201
+
1202
+ <p>Returns the value of attribute kj</p>
1203
+
1204
+
1205
+ </div>
1206
+ </div>
1207
+ <div class="tags">
1208
+
1209
+
1210
+ </div><table class="source_code">
1211
+ <tr>
1212
+ <td>
1213
+ <pre class="lines">
1214
+
1215
+
1216
+ 6
1217
+ 7
1218
+ 8</pre>
1219
+ </td>
1220
+ <td>
1221
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1222
+
1223
+ <span class='kw'>def</span> <span class='id identifier rubyid_kj'>kj</span>
1224
+ <span class='ivar'>@kj</span>
1225
+ <span class='kw'>end</span></pre>
1226
+ </td>
1227
+ </tr>
1228
+ </table>
1229
+ </div>
1230
+
1231
+
1232
+ <span id=""></span>
1233
+ <div class="method_details ">
1234
+ <h3 class="signature " id="minerales-instance_method">
1235
+
1236
+ #<strong>minerales</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1237
+
1238
+
1239
+
1240
+
1241
+
1242
+ </h3><div class="docstring">
1243
+ <div class="discussion">
1244
+
1245
+ <p>Returns the value of attribute minerales</p>
1246
+
1247
+
1248
+ </div>
1249
+ </div>
1250
+ <div class="tags">
1251
+
1252
+
1253
+ </div><table class="source_code">
1254
+ <tr>
1255
+ <td>
1256
+ <pre class="lines">
1257
+
1258
+
1259
+ 6
1260
+ 7
1261
+ 8</pre>
1262
+ </td>
1263
+ <td>
1264
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1265
+
1266
+ <span class='kw'>def</span> <span class='id identifier rubyid_minerales'>minerales</span>
1267
+ <span class='ivar'>@minerales</span>
1268
+ <span class='kw'>end</span></pre>
1269
+ </td>
1270
+ </tr>
1271
+ </table>
1272
+ </div>
1273
+
1274
+
1275
+ <span id=""></span>
1276
+ <div class="method_details ">
1277
+ <h3 class="signature " id="nombre-instance_method">
1278
+
1279
+ #<strong>nombre</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+ </h3><div class="docstring">
1286
+ <div class="discussion">
1287
+
1288
+ <p>Returns the value of attribute nombre</p>
1289
+
1290
+
1291
+ </div>
1292
+ </div>
1293
+ <div class="tags">
1294
+
1295
+
1296
+ </div><table class="source_code">
1297
+ <tr>
1298
+ <td>
1299
+ <pre class="lines">
1300
+
1301
+
1302
+ 6
1303
+ 7
1304
+ 8</pre>
1305
+ </td>
1306
+ <td>
1307
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1308
+
1309
+ <span class='kw'>def</span> <span class='id identifier rubyid_nombre'>nombre</span>
1310
+ <span class='ivar'>@nombre</span>
1311
+ <span class='kw'>end</span></pre>
1312
+ </td>
1313
+ </tr>
1314
+ </table>
1315
+ </div>
1316
+
1317
+
1318
+ <span id=""></span>
1319
+ <div class="method_details ">
1320
+ <h3 class="signature " id="polialcoholes-instance_method">
1321
+
1322
+ #<strong>polialcoholes</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1323
+
1324
+
1325
+
1326
+
1327
+
1328
+ </h3><div class="docstring">
1329
+ <div class="discussion">
1330
+
1331
+ <p>Returns the value of attribute polialcoholes</p>
1332
+
1333
+
1334
+ </div>
1335
+ </div>
1336
+ <div class="tags">
1337
+
1338
+
1339
+ </div><table class="source_code">
1340
+ <tr>
1341
+ <td>
1342
+ <pre class="lines">
1343
+
1344
+
1345
+ 6
1346
+ 7
1347
+ 8</pre>
1348
+ </td>
1349
+ <td>
1350
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1351
+
1352
+ <span class='kw'>def</span> <span class='id identifier rubyid_polialcoholes'>polialcoholes</span>
1353
+ <span class='ivar'>@polialcoholes</span>
1354
+ <span class='kw'>end</span></pre>
1355
+ </td>
1356
+ </tr>
1357
+ </table>
1358
+ </div>
1359
+
1360
+
1361
+ <span id=""></span>
1362
+ <div class="method_details ">
1363
+ <h3 class="signature " id="proteinas-instance_method">
1364
+
1365
+ #<strong>proteinas</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1366
+
1367
+
1368
+
1369
+
1370
+
1371
+ </h3><div class="docstring">
1372
+ <div class="discussion">
1373
+
1374
+ <p>Returns the value of attribute proteinas</p>
1375
+
1376
+
1377
+ </div>
1378
+ </div>
1379
+ <div class="tags">
1380
+
1381
+
1382
+ </div><table class="source_code">
1383
+ <tr>
1384
+ <td>
1385
+ <pre class="lines">
1386
+
1387
+
1388
+ 6
1389
+ 7
1390
+ 8</pre>
1391
+ </td>
1392
+ <td>
1393
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1394
+
1395
+ <span class='kw'>def</span> <span class='id identifier rubyid_proteinas'>proteinas</span>
1396
+ <span class='ivar'>@proteinas</span>
1397
+ <span class='kw'>end</span></pre>
1398
+ </td>
1399
+ </tr>
1400
+ </table>
1401
+ </div>
1402
+
1403
+
1404
+ <span id=""></span>
1405
+ <div class="method_details ">
1406
+ <h3 class="signature " id="sal-instance_method">
1407
+
1408
+ #<strong>sal</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1409
+
1410
+
1411
+
1412
+
1413
+
1414
+ </h3><div class="docstring">
1415
+ <div class="discussion">
1416
+
1417
+ <p>Returns the value of attribute sal</p>
1418
+
1419
+
1420
+ </div>
1421
+ </div>
1422
+ <div class="tags">
1423
+
1424
+
1425
+ </div><table class="source_code">
1426
+ <tr>
1427
+ <td>
1428
+ <pre class="lines">
1429
+
1430
+
1431
+ 6
1432
+ 7
1433
+ 8</pre>
1434
+ </td>
1435
+ <td>
1436
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1437
+
1438
+ <span class='kw'>def</span> <span class='id identifier rubyid_sal'>sal</span>
1439
+ <span class='ivar'>@sal</span>
1440
+ <span class='kw'>end</span></pre>
1441
+ </td>
1442
+ </tr>
1443
+ </table>
1444
+ </div>
1445
+
1446
+
1447
+ <span id=""></span>
1448
+ <div class="method_details ">
1449
+ <h3 class="signature " id="vitaminas-instance_method">
1450
+
1451
+ #<strong>vitaminas</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ </h3><div class="docstring">
1458
+ <div class="discussion">
1459
+
1460
+ <p>Returns the value of attribute vitaminas</p>
1461
+
1462
+
1463
+ </div>
1464
+ </div>
1465
+ <div class="tags">
1466
+
1467
+
1468
+ </div><table class="source_code">
1469
+ <tr>
1470
+ <td>
1471
+ <pre class="lines">
1472
+
1473
+
1474
+ 6
1475
+ 7
1476
+ 8</pre>
1477
+ </td>
1478
+ <td>
1479
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 6</span>
1480
+
1481
+ <span class='kw'>def</span> <span class='id identifier rubyid_vitaminas'>vitaminas</span>
1482
+ <span class='ivar'>@vitaminas</span>
1483
+ <span class='kw'>end</span></pre>
1484
+ </td>
1485
+ </tr>
1486
+ </table>
1487
+ </div>
1488
+
1489
+ </div>
1490
+
1491
+
1492
+ <div id="instance_method_details" class="method_details_list">
1493
+ <h2>Instance Method Details</h2>
1494
+
1495
+
1496
+ <div class="method_details first">
1497
+ <h3 class="signature first" id="<=>-instance_method">
1498
+
1499
+ #<strong>&lt;=&gt;</strong>(other) &#x21d2; <tt>Object</tt>
1500
+
1501
+
1502
+
1503
+
1504
+
1505
+ </h3><div class="docstring">
1506
+ <div class="discussion">
1507
+
1508
+ <p>Metodo de comparaciones utilizado para el modulo comparable</p>
1509
+
1510
+
1511
+ </div>
1512
+ </div>
1513
+ <div class="tags">
1514
+
1515
+
1516
+ </div><table class="source_code">
1517
+ <tr>
1518
+ <td>
1519
+ <pre class="lines">
1520
+
1521
+
1522
+ 35
1523
+ 36
1524
+ 37</pre>
1525
+ </td>
1526
+ <td>
1527
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 35</span>
1528
+
1529
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
1530
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_nombre'>nombre</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_nombre'>nombre</span>
1531
+ <span class='kw'>end</span></pre>
1532
+ </td>
1533
+ </tr>
1534
+ </table>
1535
+ </div>
1536
+
1537
+ <div class="method_details ">
1538
+ <h3 class="signature " id="porciones-instance_method">
1539
+
1540
+ #<strong>porciones</strong>(n_porciones, tamaño) &#x21d2; <tt>Object</tt>
1541
+
1542
+
1543
+
1544
+
1545
+
1546
+ </h3><div class="docstring">
1547
+ <div class="discussion">
1548
+
1549
+ <p>Añade la porciones y el tamaño a la etiqueta</p>
1550
+
1551
+
1552
+ </div>
1553
+ </div>
1554
+ <div class="tags">
1555
+
1556
+
1557
+ </div><table class="source_code">
1558
+ <tr>
1559
+ <td>
1560
+ <pre class="lines">
1561
+
1562
+
1563
+ 13
1564
+ 14
1565
+ 15</pre>
1566
+ </td>
1567
+ <td>
1568
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 13</span>
1569
+
1570
+ <span class='kw'>def</span> <span class='id identifier rubyid_porciones'>porciones</span><span class='lparen'>(</span><span class='id identifier rubyid_n_porciones'>n_porciones</span><span class='comma'>,</span><span class='id identifier rubyid_tamaño'>tamaño</span><span class='rparen'>)</span>
1571
+ <span class='ivar'>@n_porciones</span><span class='comma'>,</span><span class='ivar'>@tamaño</span> <span class='op'>=</span> <span class='id identifier rubyid_n_porciones'>n_porciones</span><span class='comma'>,</span><span class='id identifier rubyid_tamaño'>tamaño</span>
1572
+ <span class='kw'>end</span></pre>
1573
+ </td>
1574
+ </tr>
1575
+ </table>
1576
+ </div>
1577
+
1578
+ <div class="method_details ">
1579
+ <h3 class="signature " id="to_s-instance_method">
1580
+
1581
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
1582
+
1583
+
1584
+
1585
+
1586
+
1587
+ </h3><div class="docstring">
1588
+ <div class="discussion">
1589
+
1590
+ <p>Convierte la etiqueta a una cadena</p>
1591
+
1592
+
1593
+ </div>
1594
+ </div>
1595
+ <div class="tags">
1596
+
1597
+
1598
+ </div><table class="source_code">
1599
+ <tr>
1600
+ <td>
1601
+ <pre class="lines">
1602
+
1603
+
1604
+ 25
1605
+ 26
1606
+ 27</pre>
1607
+ </td>
1608
+ <td>
1609
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 25</span>
1610
+
1611
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='rparen'>)</span>
1612
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Nombre:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Saturadas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_s</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nHidratos:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@hidratos</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nAzúcares:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@azucares</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nNombre:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@proteinas</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nSal:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@sal</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Monoinsaturasas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_mon</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Polisaturadas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_pol</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nPolialcoholes:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@polialcoholes</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nAlmidon:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@almidon</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nFibra:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@fibra</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nVitaminas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@vitaminas</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nMinerales:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@minerales</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nEnergía (Kj):</span><span class='embexpr_beg'>#{</span><span class='ivar'>@kj</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nEnergía (Kcal):</span><span class='embexpr_beg'>#{</span><span class='ivar'>@kcal</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
1613
+ <span class='kw'>end</span></pre>
1614
+ </td>
1615
+ </tr>
1616
+ </table>
1617
+ </div>
1618
+
1619
+ <div class="method_details ">
1620
+ <h3 class="signature " id="to_s_porcentaje-instance_method">
1621
+
1622
+ #<strong>to_s_porcentaje</strong> &#x21d2; <tt>Object</tt>
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+ </h3><div class="docstring">
1629
+ <div class="discussion">
1630
+
1631
+ <p>Convierte la etiqueta a una cadena comoun porcentaje</p>
1632
+
1633
+
1634
+ </div>
1635
+ </div>
1636
+ <div class="tags">
1637
+
1638
+
1639
+ </div><table class="source_code">
1640
+ <tr>
1641
+ <td>
1642
+ <pre class="lines">
1643
+
1644
+
1645
+ 30
1646
+ 31
1647
+ 32</pre>
1648
+ </td>
1649
+ <td>
1650
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 30</span>
1651
+
1652
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s_porcentaje'>to_s_porcentaje</span><span class='lparen'>(</span><span class='rparen'>)</span>
1653
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Nombre:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Saturadas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_s</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nHidratos:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@hidratos</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nAzúcares:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@azucares</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nNombre:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@proteinas</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nSal:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@sal</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Monoinsaturasas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_mon</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nGrasas Polisaturadas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@grasas_pol</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nPolialcoholes:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@polialcoholes</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nAlmidon:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@almidon</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nFibra:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@fibra</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nVitaminas:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@vitaminas</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nMinerales:</span><span class='embexpr_beg'>#{</span><span class='ivar'>@minerales</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nEnergía (Kj):</span><span class='embexpr_beg'>#{</span><span class='ivar'>@kj</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nEnergía (Kcal):</span><span class='embexpr_beg'>#{</span><span class='ivar'>@kcal</span><span class='op'>/</span><span class='float'>100.0</span><span class='embexpr_end'>}</span><span class='tstring_content'>\nVALORES DE REFERENCIA:\nValor energético:8.400kJ/ 2000kcal/g\nGrasa total: 70g\nAcidos grasos saturados: 20g\nHidratos de carbono: 260g\nAzúcares: 90g\nProteínas: 50g\nSal: 6g\n</span><span class='tstring_end'>&quot;</span></span>
1654
+ <span class='kw'>end</span></pre>
1655
+ </td>
1656
+ </tr>
1657
+ </table>
1658
+ </div>
1659
+
1660
+ <div class="method_details ">
1661
+ <h3 class="signature " id="valor_energetico-instance_method">
1662
+
1663
+ #<strong>valor_energetico</strong> &#x21d2; <tt>Object</tt>
1664
+
1665
+
1666
+
1667
+
1668
+
1669
+ </h3><div class="docstring">
1670
+ <div class="discussion">
1671
+
1672
+ <p>Calcula el valor energetico de una etiqueta</p>
1673
+
1674
+
1675
+ </div>
1676
+ </div>
1677
+ <div class="tags">
1678
+
1679
+
1680
+ </div><table class="source_code">
1681
+ <tr>
1682
+ <td>
1683
+ <pre class="lines">
1684
+
1685
+
1686
+ 18
1687
+ 19
1688
+ 20
1689
+ 21
1690
+ 22</pre>
1691
+ </td>
1692
+ <td>
1693
+ <pre class="code"><span class="info file"># File 'lib/gema/etiqueta_nut.rb', line 18</span>
1694
+
1695
+ <span class='kw'>def</span> <span class='id identifier rubyid_valor_energetico'>valor_energetico</span><span class='lparen'>(</span><span class='rparen'>)</span>
1696
+ <span class='ivar'>@kj</span> <span class='op'>=</span> <span class='ivar'>@grasas</span><span class='op'>*</span><span class='int'>37</span> <span class='op'>+</span> <span class='ivar'>@grasas_s</span><span class='op'>*</span><span class='int'>37</span> <span class='op'>+</span> <span class='ivar'>@hidratos</span><span class='op'>*</span><span class='int'>17</span> <span class='op'>+</span> <span class='ivar'>@azucares</span><span class='op'>*</span><span class='int'>81</span> <span class='op'>+</span> <span class='ivar'>@proteinas</span><span class='op'>*</span><span class='int'>50</span> <span class='op'>+</span> <span class='ivar'>@sal</span><span class='op'>*</span><span class='int'>25</span> <span class='op'>+</span> <span class='ivar'>@grasas_mon</span><span class='op'>*</span><span class='int'>37</span> <span class='op'>+</span> <span class='ivar'>@grasas_pol</span><span class='op'>*</span><span class='int'>37</span> <span class='op'>+</span> <span class='ivar'>@polialcoholes</span><span class='op'>*</span><span class='int'>10</span> <span class='op'>+</span> <span class='ivar'>@almidon</span><span class='op'>*</span><span class='int'>17</span> <span class='op'>+</span> <span class='ivar'>@fibra</span> <span class='op'>*</span> <span class='int'>8</span> <span class='op'>+</span> <span class='ivar'>@minerales</span><span class='op'>*</span><span class='int'>5</span>
1697
+ <span class='ivar'>@kcal</span> <span class='op'>=</span> <span class='ivar'>@grasas</span><span class='op'>*</span><span class='int'>9</span> <span class='op'>+</span> <span class='ivar'>@grasas_s</span><span class='op'>*</span><span class='int'>9</span> <span class='op'>+</span> <span class='ivar'>@hidratos</span><span class='op'>*</span><span class='int'>4</span> <span class='op'>+</span> <span class='ivar'>@azucares</span><span class='op'>*</span><span class='int'>19</span> <span class='op'>+</span> <span class='ivar'>@proteinas</span><span class='op'>*</span><span class='int'>4</span> <span class='op'>+</span> <span class='ivar'>@sal</span><span class='op'>*</span><span class='int'>6</span> <span class='op'>+</span> <span class='ivar'>@grasas_mon</span><span class='op'>*</span><span class='int'>9</span> <span class='op'>+</span> <span class='ivar'>@grasas_pol</span><span class='op'>*</span><span class='int'>9</span> <span class='op'>+</span> <span class='ivar'>@polialcoholes</span><span class='op'>*</span><span class='float'>2.4</span> <span class='op'>+</span> <span class='ivar'>@almidon</span><span class='op'>*</span><span class='int'>4</span> <span class='op'>+</span> <span class='ivar'>@fibra</span><span class='op'>*</span><span class='int'>2</span> <span class='op'>+</span> <span class='ivar'>@minerales</span><span class='op'>*</span><span class='int'>2</span>
1698
+
1699
+ <span class='kw'>end</span></pre>
1700
+ </td>
1701
+ </tr>
1702
+ </table>
1703
+ </div>
1704
+
1705
+ </div>
1706
+
1707
+ </div>
1708
+
1709
+ <div id="footer">
1710
+ Generated on Wed Dec 19 11:49:28 2018 by
1711
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1712
+ 0.9.16 (ruby-2.5.1).
1713
+ </div>
1714
+
1715
+ </div>
1716
+ </body>
1717
+ </html>