pract06 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 (75) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +5 -0
  4. data/Documentacion_rdoc/Datos.html +96 -0
  5. data/Documentacion_rdoc/Dieta.html +647 -0
  6. data/Documentacion_rdoc/Edad.html +311 -0
  7. data/Documentacion_rdoc/Gemfile.html +93 -0
  8. data/Documentacion_rdoc/Gemfile_lock.html +175 -0
  9. data/Documentacion_rdoc/Lse.html +679 -0
  10. data/Documentacion_rdoc/Menu_alimentos.html +312 -0
  11. data/Documentacion_rdoc/Object.html +182 -0
  12. data/Documentacion_rdoc/Pract06.html +110 -0
  13. data/Documentacion_rdoc/Pract08.html +110 -0
  14. data/Documentacion_rdoc/Pract09.html +110 -0
  15. data/Documentacion_rdoc/README_md.html +123 -0
  16. data/Documentacion_rdoc/Rakefile.html +94 -0
  17. data/Documentacion_rdoc/created.rid +13 -0
  18. data/Documentacion_rdoc/css/fonts.css +167 -0
  19. data/Documentacion_rdoc/css/rdoc.css +590 -0
  20. data/Documentacion_rdoc/fonts/Lato-Light.ttf +0 -0
  21. data/Documentacion_rdoc/fonts/Lato-LightItalic.ttf +0 -0
  22. data/Documentacion_rdoc/fonts/Lato-Regular.ttf +0 -0
  23. data/Documentacion_rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  24. data/Documentacion_rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  25. data/Documentacion_rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  26. data/Documentacion_rdoc/images/add.png +0 -0
  27. data/Documentacion_rdoc/images/arrow_up.png +0 -0
  28. data/Documentacion_rdoc/images/brick.png +0 -0
  29. data/Documentacion_rdoc/images/brick_link.png +0 -0
  30. data/Documentacion_rdoc/images/bug.png +0 -0
  31. data/Documentacion_rdoc/images/bullet_black.png +0 -0
  32. data/Documentacion_rdoc/images/bullet_toggle_minus.png +0 -0
  33. data/Documentacion_rdoc/images/bullet_toggle_plus.png +0 -0
  34. data/Documentacion_rdoc/images/date.png +0 -0
  35. data/Documentacion_rdoc/images/delete.png +0 -0
  36. data/Documentacion_rdoc/images/find.png +0 -0
  37. data/Documentacion_rdoc/images/loadingAnimation.gif +0 -0
  38. data/Documentacion_rdoc/images/macFFBgHack.png +0 -0
  39. data/Documentacion_rdoc/images/package.png +0 -0
  40. data/Documentacion_rdoc/images/page_green.png +0 -0
  41. data/Documentacion_rdoc/images/page_white_text.png +0 -0
  42. data/Documentacion_rdoc/images/page_white_width.png +0 -0
  43. data/Documentacion_rdoc/images/plugin.png +0 -0
  44. data/Documentacion_rdoc/images/ruby.png +0 -0
  45. data/Documentacion_rdoc/images/tag_blue.png +0 -0
  46. data/Documentacion_rdoc/images/tag_green.png +0 -0
  47. data/Documentacion_rdoc/images/transparent.png +0 -0
  48. data/Documentacion_rdoc/images/wrench.png +0 -0
  49. data/Documentacion_rdoc/images/wrench_orange.png +0 -0
  50. data/Documentacion_rdoc/images/zoom.png +0 -0
  51. data/Documentacion_rdoc/index.html +135 -0
  52. data/Documentacion_rdoc/js/darkfish.js +161 -0
  53. data/Documentacion_rdoc/js/jquery.js +4 -0
  54. data/Documentacion_rdoc/js/navigation.js +142 -0
  55. data/Documentacion_rdoc/js/navigation.js.gz +0 -0
  56. data/Documentacion_rdoc/js/search.js +109 -0
  57. data/Documentacion_rdoc/js/search_index.js +1 -0
  58. data/Documentacion_rdoc/js/search_index.js.gz +0 -0
  59. data/Documentacion_rdoc/js/searcher.js +229 -0
  60. data/Documentacion_rdoc/js/searcher.js.gz +0 -0
  61. data/Documentacion_rdoc/pract06_gemspec.html +127 -0
  62. data/Documentacion_rdoc/table_of_contents.html +248 -0
  63. data/Gemfile +4 -0
  64. data/Guardfile +82 -0
  65. data/README.md +19 -0
  66. data/Rakefile +6 -0
  67. data/bin/console +14 -0
  68. data/bin/setup +8 -0
  69. data/lib/pract06.rb +16 -0
  70. data/lib/pract06/Dieta.rb +122 -0
  71. data/lib/pract06/menu.rb +164 -0
  72. data/lib/pract06/menu_dieta.rb +162 -0
  73. data/lib/pract06/version.rb +15 -0
  74. data/pract06.gemspec +39 -0
  75. metadata +201 -0
@@ -0,0 +1,312 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Menu_alimentos - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link"><a href="Dieta.html">Dieta</a>
63
+
64
+ </div>
65
+
66
+
67
+
68
+ <!-- Method Quickref -->
69
+ <div id="method-list-section" class="nav-section">
70
+ <h3>Methods</h3>
71
+
72
+ <ul class="link-list" role="directory">
73
+
74
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
75
+
76
+ <li class="calls-super" ><a href="#method-i-3C-3C">#&lt;&lt;</a>
77
+
78
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
79
+
80
+ <li ><a href="#method-i-change_type">#change_type</a>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+ </div>
86
+ </nav>
87
+
88
+ <main role="main" aria-labelledby="class-Menu_alimentos">
89
+ <h1 id="class-Menu_alimentos" class="class">
90
+ class Menu_alimentos
91
+ </h1>
92
+
93
+ <section class="description">
94
+
95
+ <p>CLASE DE GRUPO BASADA EN TIPO DE ALIMENTOS</p>
96
+
97
+ </section>
98
+
99
+
100
+
101
+
102
+ <section id="5Buntitled-5D" class="documentation-section">
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <section class="attribute-method-details" class="method-section">
111
+ <header>
112
+ <h3>Attributes</h3>
113
+ </header>
114
+
115
+
116
+ <div id="attribute-i-Tipo" class="method-detail">
117
+ <div class="method-heading attribute-method-heading">
118
+ <span class="method-name">Tipo</span><span
119
+ class="attribute-access-type">[R]</span>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+
124
+ <p>metodo de acceso a la variable de instancia</p>
125
+
126
+ </div>
127
+ </div>
128
+
129
+ </section>
130
+
131
+
132
+
133
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
134
+ <header>
135
+ <h3>Public Class Methods</h3>
136
+ </header>
137
+
138
+
139
+ <div id="method-c-new" class="method-detail ">
140
+
141
+ <div class="method-heading">
142
+ <span class="method-name">new</span><span
143
+ class="method-args">(t)</span>
144
+
145
+ <span class="method-click-advice">click to toggle source</span>
146
+
147
+ </div>
148
+
149
+
150
+ <div class="method-description">
151
+
152
+
153
+
154
+
155
+ <div class="method-calls-super">
156
+ Calls superclass method
157
+ <a href="Dieta.html#method-c-new">Dieta.new</a>
158
+ </div>
159
+
160
+
161
+
162
+ <div class="method-source-code" id="new-source">
163
+ <pre><span class="ruby-comment"># File lib/pract06/menu.rb, line 13</span>
164
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">t</span>)
165
+ <span class="ruby-keyword">super</span>(<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>,<span class="ruby-value">0</span>)
166
+ <span class="ruby-comment">#la variable tipo almacenara el conjunto de alimentos </span>
167
+ <span class="ruby-comment">#a los que pertenece la dieta</span>
168
+ <span class="ruby-ivar">@Tipo</span> = <span class="ruby-identifier">t</span>
169
+ <span class="ruby-keyword">end</span></pre>
170
+ </div>
171
+
172
+ </div>
173
+
174
+
175
+
176
+
177
+ </div>
178
+
179
+
180
+ </section>
181
+
182
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
183
+ <header>
184
+ <h3>Public Instance Methods</h3>
185
+ </header>
186
+
187
+
188
+ <div id="method-i-3C-3C" class="method-detail ">
189
+
190
+ <div class="method-heading">
191
+ <span class="method-name">&lt;&lt;</span><span
192
+ class="method-args">(dieta)</span>
193
+
194
+ <span class="method-click-advice">click to toggle source</span>
195
+
196
+ </div>
197
+
198
+
199
+ <div class="method-description">
200
+
201
+ <p>Metodo instancia, permite intersar una dieta en el grupo</p>
202
+
203
+
204
+ <div class="method-calls-super">
205
+ Calls superclass method
206
+ <a href="Dieta.html#method-i-3C-3C">Dieta#<<</a>
207
+ </div>
208
+
209
+
210
+
211
+ <div class="method-source-code" id="3C-3C-source">
212
+ <pre><span class="ruby-comment"># File lib/pract06/menu.rb, line 39</span>
213
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;&lt;</span>(<span class="ruby-identifier">dieta</span>)
214
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">tipo_dieta</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">ingesta</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">descripcion</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">racion</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">cantidad</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">kcal</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">percent</span>)
215
+ <span class="ruby-keyword">end</span></pre>
216
+ </div>
217
+
218
+ </div>
219
+
220
+
221
+
222
+
223
+ </div>
224
+
225
+
226
+ <div id="method-i-3C-3D-3E" class="method-detail ">
227
+
228
+ <div class="method-heading">
229
+ <span class="method-name">&lt;=&gt;</span><span
230
+ class="method-args">(otro)</span>
231
+
232
+ <span class="method-click-advice">click to toggle source</span>
233
+
234
+ </div>
235
+
236
+
237
+ <div class="method-description">
238
+
239
+ <p>Comparable_____________________________________</p>
240
+
241
+
242
+
243
+
244
+ <div class="method-source-code" id="3C-3D-3E-source">
245
+ <pre><span class="ruby-comment"># File lib/pract06/menu.rb, line 25</span>
246
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">otro</span>)
247
+ <span class="ruby-comment">#Implementanto este apartado, elaboramos un metodo</span>
248
+ <span class="ruby-comment">#que distingue no solo entre calorias si no </span>
249
+ <span class="ruby-comment">#tambien en el porcentaje de grasas, proteinas, etc.</span>
250
+ <span class="ruby-keyword">if</span>(<span class="ruby-keyword">self</span>.<span class="ruby-identifier">kcal</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">otro</span>.<span class="ruby-identifier">kcal</span>)
251
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_prot</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">otro</span>.<span class="ruby-identifier">get_prot</span>
252
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_gras</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">otro</span>.<span class="ruby-identifier">get_gras</span>
253
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_hidr</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">otro</span>.<span class="ruby-identifier">get_hidr</span>
254
+ <span class="ruby-keyword">else</span>
255
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">kcal</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">otro</span>.<span class="ruby-identifier">kcal</span>
256
+ <span class="ruby-keyword">end</span>
257
+ <span class="ruby-keyword">end</span></pre>
258
+ </div>
259
+
260
+ </div>
261
+
262
+
263
+
264
+
265
+ </div>
266
+
267
+
268
+ <div id="method-i-change_type" class="method-detail ">
269
+
270
+ <div class="method-heading">
271
+ <span class="method-name">change_type</span><span
272
+ class="method-args">(tipo)</span>
273
+
274
+ <span class="method-click-advice">click to toggle source</span>
275
+
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+ <p>Metodo instancia, permite cambiar el tipo del drupo de alimentos</p>
282
+
283
+
284
+
285
+
286
+ <div class="method-source-code" id="change_type-source">
287
+ <pre><span class="ruby-comment"># File lib/pract06/menu.rb, line 21</span>
288
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">change_type</span>(<span class="ruby-identifier">tipo</span>)
289
+ <span class="ruby-ivar">@Tipo</span>=<span class="ruby-identifier">tipo</span>
290
+ <span class="ruby-keyword">end</span></pre>
291
+ </div>
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div>
299
+
300
+
301
+ </section>
302
+
303
+ </section>
304
+ </main>
305
+
306
+
307
+ <footer id="validator-badges" role="contentinfo">
308
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
309
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
310
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
311
+ </footer>
312
+
@@ -0,0 +1,182 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Object - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link">BasicObject
63
+
64
+ </div>
65
+
66
+
67
+
68
+
69
+ </div>
70
+ </nav>
71
+
72
+ <main role="main" aria-labelledby="class-Object">
73
+ <h1 id="class-Object" class="class">
74
+ class Object
75
+ </h1>
76
+
77
+ <section class="description">
78
+
79
+ </section>
80
+
81
+
82
+
83
+
84
+ <section id="5Buntitled-5D" class="documentation-section">
85
+
86
+
87
+
88
+
89
+
90
+ <section class="constants-list">
91
+ <header>
92
+ <h3>Constants</h3>
93
+ </header>
94
+ <dl>
95
+
96
+ <dt id="A">A
97
+
98
+ <dd>
99
+
100
+
101
+ <dt id="D">D
102
+
103
+ <dd>
104
+
105
+
106
+ <dt id="F">F
107
+
108
+ <dd>
109
+
110
+
111
+ <dt id="G">G
112
+
113
+ <dd>
114
+
115
+
116
+ <dt id="H">H
117
+
118
+ <dd><p>Failure/Error: expect(H.is_a? Enumerable).to be_truthy</p>
119
+
120
+
121
+ <dt id="I">I
122
+
123
+ <dd>
124
+
125
+
126
+ <dt id="J">J
127
+
128
+ <dd><p>Failure/Error: expect(J.is_a? Comparable).to be_truthy</p>
129
+
130
+
131
+ <dt id="K">K
132
+
133
+ <dd>
134
+
135
+
136
+ <dt id="M">M
137
+
138
+ <dd><p>objeto de pruebas</p>
139
+
140
+
141
+ <dt id="N">N
142
+
143
+ <dd><p>objeto de pruebas</p>
144
+
145
+
146
+ <dt id="Node">Node
147
+
148
+ <dd><p>Mayra Garcia, LPP PRACTICA 9</p>
149
+
150
+
151
+ <dt id="P">P
152
+
153
+ <dd>
154
+
155
+
156
+ <dt id="Q">Q
157
+
158
+ <dd><p>objeto de pruebas</p>
159
+
160
+
161
+ <dt id="TAM_MAX_LIST">TAM_MAX_LIST
162
+
163
+ <dd>
164
+
165
+
166
+ </dl>
167
+ </section>
168
+
169
+
170
+
171
+
172
+
173
+ </section>
174
+ </main>
175
+
176
+
177
+ <footer id="validator-badges" role="contentinfo">
178
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
179
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
180
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
181
+ </footer>
182
+