menu_nitesh 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.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +0 -0
  4. data/CODE_OF_CONDUCT.md +49 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +41 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/doc/CODE_OF_CONDUCT_md.html +149 -0
  13. data/doc/Gemfile.html +100 -0
  14. data/doc/Gemfile_lock.html +182 -0
  15. data/doc/Guardfile.html +180 -0
  16. data/doc/LICENSE_txt.html +117 -0
  17. data/doc/Lista.html +497 -0
  18. data/doc/Menu.html +117 -0
  19. data/doc/Menu/Menu.html +810 -0
  20. data/doc/Menu_edad.html +98 -0
  21. data/doc/Menu_edad/Menu_edad.html +242 -0
  22. data/doc/Menu_tipo.html +98 -0
  23. data/doc/Menu_tipo/Menu_tipo.html +242 -0
  24. data/doc/Object.html +118 -0
  25. data/doc/README_md.html +164 -0
  26. data/doc/Rakefile.html +101 -0
  27. data/doc/bin/setup.html +101 -0
  28. data/doc/created.rid +17 -0
  29. data/doc/css/fonts.css +167 -0
  30. data/doc/css/rdoc.css +590 -0
  31. data/doc/fonts/Lato-Light.ttf +0 -0
  32. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  33. data/doc/fonts/Lato-Regular.ttf +0 -0
  34. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  35. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  36. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  37. data/doc/images/add.png +0 -0
  38. data/doc/images/arrow_up.png +0 -0
  39. data/doc/images/brick.png +0 -0
  40. data/doc/images/brick_link.png +0 -0
  41. data/doc/images/bug.png +0 -0
  42. data/doc/images/bullet_black.png +0 -0
  43. data/doc/images/bullet_toggle_minus.png +0 -0
  44. data/doc/images/bullet_toggle_plus.png +0 -0
  45. data/doc/images/date.png +0 -0
  46. data/doc/images/delete.png +0 -0
  47. data/doc/images/find.png +0 -0
  48. data/doc/images/loadingAnimation.gif +0 -0
  49. data/doc/images/macFFBgHack.png +0 -0
  50. data/doc/images/package.png +0 -0
  51. data/doc/images/page_green.png +0 -0
  52. data/doc/images/page_white_text.png +0 -0
  53. data/doc/images/page_white_width.png +0 -0
  54. data/doc/images/plugin.png +0 -0
  55. data/doc/images/ruby.png +0 -0
  56. data/doc/images/tag_blue.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/transparent.png +0 -0
  59. data/doc/images/wrench.png +0 -0
  60. data/doc/images/wrench_orange.png +0 -0
  61. data/doc/images/zoom.png +0 -0
  62. data/doc/index.html +119 -0
  63. data/doc/js/darkfish.js +161 -0
  64. data/doc/js/jquery.js +4 -0
  65. data/doc/js/navigation.js +142 -0
  66. data/doc/js/navigation.js.gz +0 -0
  67. data/doc/js/search.js +109 -0
  68. data/doc/js/search_index.js +1 -0
  69. data/doc/js/search_index.js.gz +0 -0
  70. data/doc/js/searcher.js +228 -0
  71. data/doc/js/searcher.js.gz +0 -0
  72. data/doc/menu_gemspec.html +136 -0
  73. data/doc/table_of_contents.html +234 -0
  74. data/lib/menu.rb +5 -0
  75. data/lib/menu/codigo_lista.rb +98 -0
  76. data/lib/menu/codigo_menu.rb +157 -0
  77. data/lib/menu/codigo_menu_dsl.rb +107 -0
  78. data/lib/menu/version.rb +5 -0
  79. data/menu.gemspec +39 -0
  80. metadata +209 -0
@@ -0,0 +1,117 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Menu - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="module">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+
58
+
59
+
60
+
61
+ </div>
62
+ </nav>
63
+
64
+ <main role="main" aria-labelledby="module-Menu">
65
+ <h1 id="module-Menu" class="module">
66
+ module Menu
67
+ </h1>
68
+
69
+ <section class="description">
70
+ <ul><li>
71
+ <p>Módulo Menú</p>
72
+ </li></ul>
73
+ <ul><li>
74
+ <p>Módulo Menú</p>
75
+ </li></ul>
76
+
77
+ </section>
78
+
79
+
80
+
81
+
82
+ <section id="5Buntitled-5D" class="documentation-section">
83
+
84
+
85
+
86
+
87
+
88
+ <section class="constants-list">
89
+ <header>
90
+ <h3>Constants</h3>
91
+ </header>
92
+ <dl>
93
+
94
+ <dt id="VERSION">VERSION
95
+
96
+ <dd><ul><li>
97
+ <p>Versión del Menú</p>
98
+ </li></ul>
99
+
100
+
101
+ </dl>
102
+ </section>
103
+
104
+
105
+
106
+
107
+
108
+ </section>
109
+ </main>
110
+
111
+
112
+ <footer id="validator-badges" role="contentinfo">
113
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
114
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
115
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
116
+ </footer>
117
+
@@ -0,0 +1,810 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Menu::Menu - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "../";
11
+ </script>
12
+
13
+ <script src="../js/jquery.js"></script>
14
+ <script src="../js/darkfish.js"></script>
15
+
16
+ <link href="../css/fonts.css" rel="stylesheet">
17
+ <link href="../css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="../index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="../table_of_contents.html#pages">Pages</a>
31
+ <a href="../table_of_contents.html#classes">Classes</a>
32
+ <a href="../table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link"><a href="../Object.html">Object</a>
62
+
63
+ </div>
64
+
65
+ <div id="includes-section" class="nav-section">
66
+ <h3>Included Modules</h3>
67
+
68
+ <ul class="link-list">
69
+
70
+
71
+ <li><span class="include">Comparable</span>
72
+
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Method Quickref -->
79
+ <div id="method-list-section" class="nav-section">
80
+ <h3>Methods</h3>
81
+
82
+ <ul class="link-list" role="directory">
83
+
84
+ <li ><a href="#method-c-new">::new</a>
85
+
86
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
87
+
88
+ <li ><a href="#method-i-get_conjunto_plat">#get_conjunto_plat</a>
89
+
90
+ <li ><a href="#method-i-get_desc">#get_desc</a>
91
+
92
+ <li ><a href="#method-i-get_grss">#get_grss</a>
93
+
94
+ <li ><a href="#method-i-get_hidr">#get_hidr</a>
95
+
96
+ <li ><a href="#method-i-get_ing">#get_ing</a>
97
+
98
+ <li ><a href="#method-i-get_porcentaje">#get_porcentaje</a>
99
+
100
+ <li ><a href="#method-i-get_prcn">#get_prcn</a>
101
+
102
+ <li ><a href="#method-i-get_prot">#get_prot</a>
103
+
104
+ <li ><a href="#method-i-get_titulo">#get_titulo</a>
105
+
106
+ <li ><a href="#method-i-get_un_plat">#get_un_plat</a>
107
+
108
+ <li ><a href="#method-i-get_vct">#get_vct</a>
109
+
110
+ <li ><a href="#method-i-to_s">#to_s</a>
111
+
112
+ </ul>
113
+ </div>
114
+
115
+ </div>
116
+ </nav>
117
+
118
+ <main role="main" aria-labelledby="class-Menu::Menu">
119
+ <h1 id="class-Menu::Menu" class="class">
120
+ class Menu::Menu
121
+ </h1>
122
+
123
+ <section class="description">
124
+ <ul><li>
125
+ <p>Clase Menú</p>
126
+ </li></ul>
127
+
128
+ </section>
129
+
130
+
131
+
132
+
133
+ <section id="5Buntitled-5D" class="documentation-section">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <section class="attribute-method-details" class="method-section">
142
+ <header>
143
+ <h3>Attributes</h3>
144
+ </header>
145
+
146
+
147
+ <div id="attribute-i-grss" class="method-detail">
148
+ <div class="method-heading attribute-method-heading">
149
+ <span class="method-name">grss</span><span
150
+ class="attribute-access-type">[R]</span>
151
+ </div>
152
+
153
+ <div class="method-description">
154
+
155
+ <ul><li>
156
+ <p>Atributos</p>
157
+ </li></ul>
158
+
159
+ </div>
160
+ </div>
161
+
162
+ <div id="attribute-i-hidr" class="method-detail">
163
+ <div class="method-heading attribute-method-heading">
164
+ <span class="method-name">hidr</span><span
165
+ class="attribute-access-type">[R]</span>
166
+ </div>
167
+
168
+ <div class="method-description">
169
+
170
+ <ul><li>
171
+ <p>Atributos</p>
172
+ </li></ul>
173
+
174
+ </div>
175
+ </div>
176
+
177
+ <div id="attribute-i-plat" class="method-detail">
178
+ <div class="method-heading attribute-method-heading">
179
+ <span class="method-name">plat</span><span
180
+ class="attribute-access-type">[R]</span>
181
+ </div>
182
+
183
+ <div class="method-description">
184
+
185
+ <ul><li>
186
+ <p>Atributos</p>
187
+ </li></ul>
188
+
189
+ </div>
190
+ </div>
191
+
192
+ <div id="attribute-i-porcent" class="method-detail">
193
+ <div class="method-heading attribute-method-heading">
194
+ <span class="method-name">porcent</span><span
195
+ class="attribute-access-type">[R]</span>
196
+ </div>
197
+
198
+ <div class="method-description">
199
+
200
+ <ul><li>
201
+ <p>Atributos</p>
202
+ </li></ul>
203
+
204
+ </div>
205
+ </div>
206
+
207
+ <div id="attribute-i-prot" class="method-detail">
208
+ <div class="method-heading attribute-method-heading">
209
+ <span class="method-name">prot</span><span
210
+ class="attribute-access-type">[R]</span>
211
+ </div>
212
+
213
+ <div class="method-description">
214
+
215
+ <ul><li>
216
+ <p>Atributos</p>
217
+ </li></ul>
218
+
219
+ </div>
220
+ </div>
221
+
222
+ <div id="attribute-i-titulo" class="method-detail">
223
+ <div class="method-heading attribute-method-heading">
224
+ <span class="method-name">titulo</span><span
225
+ class="attribute-access-type">[R]</span>
226
+ </div>
227
+
228
+ <div class="method-description">
229
+
230
+ <ul><li>
231
+ <p>Atributos</p>
232
+ </li></ul>
233
+
234
+ </div>
235
+ </div>
236
+
237
+ <div id="attribute-i-vct" class="method-detail">
238
+ <div class="method-heading attribute-method-heading">
239
+ <span class="method-name">vct</span><span
240
+ class="attribute-access-type">[R]</span>
241
+ </div>
242
+
243
+ <div class="method-description">
244
+
245
+ <ul><li>
246
+ <p>Atributos</p>
247
+ </li></ul>
248
+
249
+ </div>
250
+ </div>
251
+
252
+ </section>
253
+
254
+
255
+
256
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
257
+ <header>
258
+ <h3>Public Class Methods</h3>
259
+ </header>
260
+
261
+
262
+ <div id="method-c-new" class="method-detail ">
263
+
264
+ <div class="method-heading">
265
+ <span class="method-name">new</span><span
266
+ class="method-args">(titulo, porcent, plat, vct, prot, grss, hidr)</span>
267
+
268
+ <span class="method-click-advice">click to toggle source</span>
269
+
270
+ </div>
271
+
272
+
273
+ <div class="method-description">
274
+
275
+ <ul><li>
276
+ <p>Construyendo el Objeto <a href="Menu.html">Menu</a> de tipo “Clase”.</p>
277
+ </li></ul>
278
+
279
+
280
+
281
+
282
+ <div class="method-source-code" id="new-source">
283
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 11</span>
284
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcent</span>, <span class="ruby-identifier">plat</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">prot</span>, <span class="ruby-identifier">grss</span>, <span class="ruby-identifier">hidr</span>)
285
+ <span class="ruby-ivar">@titulo</span> = <span class="ruby-identifier">titulo</span>
286
+ <span class="ruby-ivar">@porcent</span> = <span class="ruby-identifier">porcent</span>
287
+ <span class="ruby-ivar">@plat</span> = <span class="ruby-identifier">plat</span>
288
+ <span class="ruby-ivar">@vct</span> = <span class="ruby-identifier">vct</span>
289
+ <span class="ruby-ivar">@prot</span> = <span class="ruby-identifier">prot</span>
290
+ <span class="ruby-ivar">@grss</span> = <span class="ruby-identifier">grss</span>
291
+ <span class="ruby-ivar">@hidr</span> = <span class="ruby-identifier">hidr</span>
292
+ <span class="ruby-keyword">end</span></pre>
293
+ </div>
294
+
295
+ </div>
296
+
297
+
298
+
299
+
300
+ </div>
301
+
302
+
303
+ </section>
304
+
305
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
306
+ <header>
307
+ <h3>Public Instance Methods</h3>
308
+ </header>
309
+
310
+
311
+ <div id="method-i-3C-3D-3E" class="method-detail ">
312
+
313
+ <div class="method-heading">
314
+ <span class="method-name">&lt;=&gt;</span><span
315
+ class="method-args">(other)</span>
316
+
317
+ <span class="method-click-advice">click to toggle source</span>
318
+
319
+ </div>
320
+
321
+
322
+ <div class="method-description">
323
+
324
+ <ul><li>
325
+ <p>Creando el método &lt;=&gt; (menor igual mayor para ejecutar pruebas del
326
+ módulo Comparable.</p>
327
+ </li></ul>
328
+
329
+
330
+
331
+
332
+ <div class="method-source-code" id="3C-3D-3E-source">
333
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 22</span>
334
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span> (<span class="ruby-identifier">other</span>)
335
+ <span class="ruby-ivar">@vct</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">vct</span>
336
+ <span class="ruby-ivar">@prot</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">prot</span>
337
+ <span class="ruby-keyword">end</span></pre>
338
+ </div>
339
+
340
+ </div>
341
+
342
+
343
+
344
+
345
+ </div>
346
+
347
+
348
+ <div id="method-i-get_conjunto_plat" class="method-detail ">
349
+
350
+ <div class="method-heading">
351
+ <span class="method-name">get_conjunto_plat</span><span
352
+ class="method-args">()</span>
353
+
354
+ <span class="method-click-advice">click to toggle source</span>
355
+
356
+ </div>
357
+
358
+
359
+ <div class="method-description">
360
+
361
+ <ul><li>
362
+ <p>Creando el método <a
363
+ href="Menu.html#method-i-get_conjunto_plat">#get_conjunto_plat</a> que
364
+ impime por pantalla el conjunto de los platos del Menú.</p>
365
+ </li></ul>
366
+
367
+
368
+
369
+
370
+ <div class="method-source-code" id="get_conjunto_plat-source">
371
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 61</span>
372
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_conjunto_plat</span>
373
+ <span class="ruby-identifier">i</span> = <span class="ruby-value">1</span>
374
+ <span class="ruby-identifier">s</span> = <span class="ruby-string">&quot;&quot;</span>
375
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-ivar">@plat</span>.<span class="ruby-identifier">length</span>
376
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;- #{get_un_plat(i)}&quot;</span>
377
+ <span class="ruby-identifier">i</span> <span class="ruby-operator">+=</span> <span class="ruby-value">1</span>
378
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">i</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-ivar">@plat</span>.<span class="ruby-identifier">length</span>
379
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-string">&quot;\n&quot;</span>
380
+ <span class="ruby-keyword">end</span>
381
+ <span class="ruby-keyword">end</span>
382
+ <span class="ruby-identifier">s</span>
383
+ <span class="ruby-keyword">end</span></pre>
384
+ </div>
385
+
386
+ </div>
387
+
388
+
389
+
390
+
391
+ </div>
392
+
393
+
394
+ <div id="method-i-get_desc" class="method-detail ">
395
+
396
+ <div class="method-heading">
397
+ <span class="method-name">get_desc</span><span
398
+ class="method-args">(n)</span>
399
+
400
+ <span class="method-click-advice">click to toggle source</span>
401
+
402
+ </div>
403
+
404
+
405
+ <div class="method-description">
406
+
407
+ <ul><li>
408
+ <p>Creando el método <a href="Menu.html#method-i-get_desc">#get_desc</a> que
409
+ devuelve la descripción de un plato del Menú.</p>
410
+ </li></ul>
411
+
412
+
413
+
414
+
415
+ <div class="method-source-code" id="get_desc-source">
416
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 38</span>
417
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_desc</span>(<span class="ruby-identifier">n</span>)
418
+ <span class="ruby-node">&quot;#{@plat[n-1][0]}&quot;</span>
419
+ <span class="ruby-keyword">end</span></pre>
420
+ </div>
421
+
422
+ </div>
423
+
424
+
425
+
426
+
427
+ </div>
428
+
429
+
430
+ <div id="method-i-get_grss" class="method-detail ">
431
+
432
+ <div class="method-heading">
433
+ <span class="method-name">get_grss</span><span
434
+ class="method-args">()</span>
435
+
436
+ <span class="method-click-advice">click to toggle source</span>
437
+
438
+ </div>
439
+
440
+
441
+ <div class="method-description">
442
+
443
+ <ul><li>
444
+ <p>Creando el método <a href="Menu.html#method-i-get_grss">#get_grss</a> que
445
+ devuelve las grasas del Menú.</p>
446
+ </li></ul>
447
+
448
+
449
+
450
+
451
+ <div class="method-source-code" id="get_grss-source">
452
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 85</span>
453
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_grss</span>
454
+ <span class="ruby-ivar">@grss</span>
455
+ <span class="ruby-keyword">end</span></pre>
456
+ </div>
457
+
458
+ </div>
459
+
460
+
461
+
462
+
463
+ </div>
464
+
465
+
466
+ <div id="method-i-get_hidr" class="method-detail ">
467
+
468
+ <div class="method-heading">
469
+ <span class="method-name">get_hidr</span><span
470
+ class="method-args">()</span>
471
+
472
+ <span class="method-click-advice">click to toggle source</span>
473
+
474
+ </div>
475
+
476
+
477
+ <div class="method-description">
478
+
479
+ <ul><li>
480
+ <p>Creando el método <a href="Menu.html#method-i-get_hidr">#get_hidr</a> que
481
+ devuelve los Hidratos de Carbono del Menú.</p>
482
+ </li></ul>
483
+
484
+
485
+
486
+
487
+ <div class="method-source-code" id="get_hidr-source">
488
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 90</span>
489
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_hidr</span>
490
+ <span class="ruby-ivar">@hidr</span>
491
+ <span class="ruby-keyword">end</span></pre>
492
+ </div>
493
+
494
+ </div>
495
+
496
+
497
+
498
+
499
+ </div>
500
+
501
+
502
+ <div id="method-i-get_ing" class="method-detail ">
503
+
504
+ <div class="method-heading">
505
+ <span class="method-name">get_ing</span><span
506
+ class="method-args">(n)</span>
507
+
508
+ <span class="method-click-advice">click to toggle source</span>
509
+
510
+ </div>
511
+
512
+
513
+ <div class="method-description">
514
+
515
+ <ul><li>
516
+ <p>Creando el método <a href="Menu.html#method-i-get_ing">#get_ing</a> que
517
+ devuelve las ingestas de un plato del Menú.</p>
518
+ </li></ul>
519
+
520
+
521
+
522
+
523
+ <div class="method-source-code" id="get_ing-source">
524
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 48</span>
525
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_ing</span>(<span class="ruby-identifier">n</span>)
526
+ <span class="ruby-node">&quot;#{@plat[n-1][2]}&quot;</span>
527
+ <span class="ruby-keyword">end</span></pre>
528
+ </div>
529
+
530
+ </div>
531
+
532
+
533
+
534
+
535
+ </div>
536
+
537
+
538
+ <div id="method-i-get_porcentaje" class="method-detail ">
539
+
540
+ <div class="method-heading">
541
+ <span class="method-name">get_porcentaje</span><span
542
+ class="method-args">()</span>
543
+
544
+ <span class="method-click-advice">click to toggle source</span>
545
+
546
+ </div>
547
+
548
+
549
+ <div class="method-description">
550
+
551
+ <ul><li>
552
+ <p>Creando el método <a
553
+ href="Menu.html#method-i-get_porcentaje">#get_porcentaje</a> que devuelve
554
+ el porcentaje del Menú.</p>
555
+ </li></ul>
556
+
557
+
558
+
559
+
560
+ <div class="method-source-code" id="get_porcentaje-source">
561
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 33</span>
562
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_porcentaje</span>
563
+ <span class="ruby-ivar">@porcent</span>
564
+ <span class="ruby-keyword">end</span></pre>
565
+ </div>
566
+
567
+ </div>
568
+
569
+
570
+
571
+
572
+ </div>
573
+
574
+
575
+ <div id="method-i-get_prcn" class="method-detail ">
576
+
577
+ <div class="method-heading">
578
+ <span class="method-name">get_prcn</span><span
579
+ class="method-args">(n)</span>
580
+
581
+ <span class="method-click-advice">click to toggle source</span>
582
+
583
+ </div>
584
+
585
+
586
+ <div class="method-description">
587
+
588
+ <ul><li>
589
+ <p>Creando el método <a href="Menu.html#method-i-get_prcn">#get_prcn</a> que
590
+ devuelve las porciones de un plato del Menú.</p>
591
+ </li></ul>
592
+
593
+
594
+
595
+
596
+ <div class="method-source-code" id="get_prcn-source">
597
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 43</span>
598
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_prcn</span>(<span class="ruby-identifier">n</span>)
599
+ <span class="ruby-node">&quot;#{@plat[n-1][1]}&quot;</span>
600
+ <span class="ruby-keyword">end</span></pre>
601
+ </div>
602
+
603
+ </div>
604
+
605
+
606
+
607
+
608
+ </div>
609
+
610
+
611
+ <div id="method-i-get_prot" class="method-detail ">
612
+
613
+ <div class="method-heading">
614
+ <span class="method-name">get_prot</span><span
615
+ class="method-args">()</span>
616
+
617
+ <span class="method-click-advice">click to toggle source</span>
618
+
619
+ </div>
620
+
621
+
622
+ <div class="method-description">
623
+
624
+ <ul><li>
625
+ <p>Creando el método <a href="Menu.html#method-i-get_prot">#get_prot</a> que
626
+ devuelve las proteínas del Menú.</p>
627
+ </li></ul>
628
+
629
+
630
+
631
+
632
+ <div class="method-source-code" id="get_prot-source">
633
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 80</span>
634
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_prot</span>
635
+ <span class="ruby-ivar">@prot</span>
636
+ <span class="ruby-keyword">end</span></pre>
637
+ </div>
638
+
639
+ </div>
640
+
641
+
642
+
643
+
644
+ </div>
645
+
646
+
647
+ <div id="method-i-get_titulo" class="method-detail ">
648
+
649
+ <div class="method-heading">
650
+ <span class="method-name">get_titulo</span><span
651
+ class="method-args">()</span>
652
+
653
+ <span class="method-click-advice">click to toggle source</span>
654
+
655
+ </div>
656
+
657
+
658
+ <div class="method-description">
659
+
660
+ <ul><li>
661
+ <p>Creando el método <a href="Menu.html#method-i-get_titulo">#get_titulo</a>
662
+ que devuelve el título del Menú.</p>
663
+ </li></ul>
664
+
665
+
666
+
667
+
668
+ <div class="method-source-code" id="get_titulo-source">
669
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 28</span>
670
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_titulo</span>
671
+ <span class="ruby-ivar">@titulo</span>
672
+ <span class="ruby-keyword">end</span></pre>
673
+ </div>
674
+
675
+ </div>
676
+
677
+
678
+
679
+
680
+ </div>
681
+
682
+
683
+ <div id="method-i-get_un_plat" class="method-detail ">
684
+
685
+ <div class="method-heading">
686
+ <span class="method-name">get_un_plat</span><span
687
+ class="method-args">(n)</span>
688
+
689
+ <span class="method-click-advice">click to toggle source</span>
690
+
691
+ </div>
692
+
693
+
694
+ <div class="method-description">
695
+
696
+ <ul><li>
697
+ <p>Creando el método <a href="Menu.html#method-i-get_un_plat">#get_un_plat</a>
698
+ que imprime por pantalla un plato del Menú.</p>
699
+ </li></ul>
700
+
701
+
702
+
703
+
704
+ <div class="method-source-code" id="get_un_plat-source">
705
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 53</span>
706
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_un_plat</span>(<span class="ruby-identifier">n</span>)
707
+ <span class="ruby-identifier">s</span> = <span class="ruby-node">&quot;#{get_desc(n)}, &quot;</span>
708
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_prcn(n)}, &quot;</span>
709
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_ing(n)}&quot;</span>
710
+ <span class="ruby-identifier">s</span>
711
+ <span class="ruby-keyword">end</span></pre>
712
+ </div>
713
+
714
+ </div>
715
+
716
+
717
+
718
+
719
+ </div>
720
+
721
+
722
+ <div id="method-i-get_vct" class="method-detail ">
723
+
724
+ <div class="method-heading">
725
+ <span class="method-name">get_vct</span><span
726
+ class="method-args">()</span>
727
+
728
+ <span class="method-click-advice">click to toggle source</span>
729
+
730
+ </div>
731
+
732
+
733
+ <div class="method-description">
734
+
735
+ <ul><li>
736
+ <p>Creando el método <a href="Menu.html#method-i-get_vct">#get_vct</a> que
737
+ devuelve el VCT del Menú.</p>
738
+ </li></ul>
739
+
740
+
741
+
742
+
743
+ <div class="method-source-code" id="get_vct-source">
744
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 75</span>
745
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_vct</span>
746
+ <span class="ruby-ivar">@vct</span>
747
+ <span class="ruby-keyword">end</span></pre>
748
+ </div>
749
+
750
+ </div>
751
+
752
+
753
+
754
+
755
+ </div>
756
+
757
+
758
+ <div id="method-i-to_s" class="method-detail ">
759
+
760
+ <div class="method-heading">
761
+ <span class="method-name">to_s</span><span
762
+ class="method-args">()</span>
763
+
764
+ <span class="method-click-advice">click to toggle source</span>
765
+
766
+ </div>
767
+
768
+
769
+ <div class="method-description">
770
+
771
+ <ul><li>
772
+ <p>Creando el método <a href="Menu.html#method-i-to_s">#to_s</a> que imprime
773
+ por pantalla TODO el Menú.</p>
774
+ </li></ul>
775
+
776
+
777
+
778
+
779
+ <div class="method-source-code" id="to_s-source">
780
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 95</span>
781
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
782
+ <span class="ruby-identifier">s</span> = <span class="ruby-node">&quot;\n#{get_titulo} (#{get_porcentaje})\n#{get_conjunto_plat}&quot;</span>
783
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\nVCT: #{get_vct} kcal | &quot;</span>
784
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_prot}% proteínas - &quot;</span>
785
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_grss}% grasas - &quot;</span>
786
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_hidr}% hidratos de carbono\n&quot;</span>
787
+ <span class="ruby-identifier">s</span>
788
+ <span class="ruby-keyword">end</span></pre>
789
+ </div>
790
+
791
+ </div>
792
+
793
+
794
+
795
+
796
+ </div>
797
+
798
+
799
+ </section>
800
+
801
+ </section>
802
+ </main>
803
+
804
+
805
+ <footer id="validator-badges" role="contentinfo">
806
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
807
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
808
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
809
+ </footer>
810
+