Dieta 0.2.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 (67) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.travis.yml +5 -0
  4. data/Dieta.gemspec +36 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/README.md +49 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/doc/Dieta.html +111 -0
  12. data/doc/Dieta/Dieta.html +648 -0
  13. data/doc/Lista.html +313 -0
  14. data/doc/ListaDoblementeEnlazada.html +472 -0
  15. data/doc/MenuPorClaseDeAlimento.html +267 -0
  16. data/doc/MenuPorGrupoDeEdad.html +267 -0
  17. data/doc/Object.html +121 -0
  18. data/doc/created.rid +5 -0
  19. data/doc/css/fonts.css +167 -0
  20. data/doc/css/rdoc.css +590 -0
  21. data/doc/fonts/Lato-Light.ttf +0 -0
  22. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  23. data/doc/fonts/Lato-Regular.ttf +0 -0
  24. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/doc/images/add.png +0 -0
  28. data/doc/images/arrow_up.png +0 -0
  29. data/doc/images/brick.png +0 -0
  30. data/doc/images/brick_link.png +0 -0
  31. data/doc/images/bug.png +0 -0
  32. data/doc/images/bullet_black.png +0 -0
  33. data/doc/images/bullet_toggle_minus.png +0 -0
  34. data/doc/images/bullet_toggle_plus.png +0 -0
  35. data/doc/images/date.png +0 -0
  36. data/doc/images/delete.png +0 -0
  37. data/doc/images/find.png +0 -0
  38. data/doc/images/loadingAnimation.gif +0 -0
  39. data/doc/images/macFFBgHack.png +0 -0
  40. data/doc/images/package.png +0 -0
  41. data/doc/images/page_green.png +0 -0
  42. data/doc/images/page_white_text.png +0 -0
  43. data/doc/images/page_white_width.png +0 -0
  44. data/doc/images/plugin.png +0 -0
  45. data/doc/images/ruby.png +0 -0
  46. data/doc/images/tag_blue.png +0 -0
  47. data/doc/images/tag_green.png +0 -0
  48. data/doc/images/transparent.png +0 -0
  49. data/doc/images/wrench.png +0 -0
  50. data/doc/images/wrench_orange.png +0 -0
  51. data/doc/images/zoom.png +0 -0
  52. data/doc/index.html +92 -0
  53. data/doc/js/darkfish.js +161 -0
  54. data/doc/js/jquery.js +4 -0
  55. data/doc/js/navigation.js +142 -0
  56. data/doc/js/navigation.js.gz +0 -0
  57. data/doc/js/search.js +109 -0
  58. data/doc/js/search_index.js +1 -0
  59. data/doc/js/search_index.js.gz +0 -0
  60. data/doc/js/searcher.js +228 -0
  61. data/doc/js/searcher.js.gz +0 -0
  62. data/doc/table_of_contents.html +212 -0
  63. data/lib/Dieta.rb +7 -0
  64. data/lib/Dieta/dieta_codigo.rb +149 -0
  65. data/lib/Dieta/lista_codigo.rb +151 -0
  66. data/lib/Dieta/version.rb +3 -0
  67. metadata +193 -0
@@ -0,0 +1,267 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class MenuPorClaseDeAlimento - 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="Dieta/Dieta.html">Dieta::Dieta</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-get_grupo">#get_grupo</a>
76
+
77
+ <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-MenuPorClaseDeAlimento">
86
+ <h1 id="class-MenuPorClaseDeAlimento" class="class">
87
+ class MenuPorClaseDeAlimento
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>Clase que añade al menu una categoria de alimento</p>
93
+
94
+ </section>
95
+
96
+
97
+
98
+
99
+ <section id="5Buntitled-5D" class="documentation-section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <section class="attribute-method-details" class="method-section">
108
+ <header>
109
+ <h3>Attributes</h3>
110
+ </header>
111
+
112
+
113
+ <div id="attribute-i-grupo" class="method-detail">
114
+ <div class="method-heading attribute-method-heading">
115
+ <span class="method-name">grupo</span><span
116
+ class="attribute-access-type">[R]</span>
117
+ </div>
118
+
119
+ <div class="method-description">
120
+
121
+
122
+
123
+ </div>
124
+ </div>
125
+
126
+ </section>
127
+
128
+
129
+
130
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
131
+ <header>
132
+ <h3>Public Class Methods</h3>
133
+ </header>
134
+
135
+
136
+ <div id="method-c-new" class="method-detail ">
137
+
138
+ <div class="method-heading">
139
+ <span class="method-name">new</span><span
140
+ class="method-args">(descripcion, ingredientes, informacion, grupo)</span>
141
+
142
+ <span class="method-click-advice">click to toggle source</span>
143
+
144
+ </div>
145
+
146
+
147
+ <div class="method-description">
148
+
149
+
150
+
151
+
152
+ <div class="method-calls-super">
153
+ Calls superclass method
154
+ <a href="Dieta/Dieta.html#method-c-new">Dieta::Dieta.new</a>
155
+ </div>
156
+
157
+
158
+
159
+ <div class="method-source-code" id="new-source">
160
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 90</span>
161
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">descripcion</span>, <span class="ruby-identifier">ingredientes</span>, <span class="ruby-identifier">informacion</span>, <span class="ruby-identifier">grupo</span>)
162
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">descripcion</span>, <span class="ruby-identifier">ingredientes</span>, <span class="ruby-identifier">informacion</span>)
163
+ <span class="ruby-ivar">@grupo</span> = <span class="ruby-identifier">grupo</span>
164
+ <span class="ruby-keyword">end</span></pre>
165
+ </div>
166
+
167
+ </div>
168
+
169
+
170
+
171
+
172
+ </div>
173
+
174
+
175
+ </section>
176
+
177
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
178
+ <header>
179
+ <h3>Public Instance Methods</h3>
180
+ </header>
181
+
182
+
183
+ <div id="method-i-get_grupo" class="method-detail ">
184
+
185
+ <div class="method-heading">
186
+ <span class="method-name">get_grupo</span><span
187
+ class="method-args">()</span>
188
+
189
+ <span class="method-click-advice">click to toggle source</span>
190
+
191
+ </div>
192
+
193
+
194
+ <div class="method-description">
195
+
196
+ <p>Devuelve el grupo de alimento</p>
197
+
198
+
199
+
200
+
201
+ <div class="method-source-code" id="get_grupo-source">
202
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 102</span>
203
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_grupo</span>
204
+ <span class="ruby-ivar">@grupo</span>
205
+ <span class="ruby-keyword">end</span></pre>
206
+ </div>
207
+
208
+ </div>
209
+
210
+
211
+
212
+
213
+ </div>
214
+
215
+
216
+ <div id="method-i-to_s" class="method-detail ">
217
+
218
+ <div class="method-heading">
219
+ <span class="method-name">to_s</span><span
220
+ class="method-args">()</span>
221
+
222
+ <span class="method-click-advice">click to toggle source</span>
223
+
224
+ </div>
225
+
226
+
227
+ <div class="method-description">
228
+
229
+ <p>Añade al <a href="MenuPorClaseDeAlimento.html#method-i-to_s">#to_s</a> de
230
+ la clase padre el tipo de alimento</p>
231
+
232
+
233
+ <div class="method-calls-super">
234
+ Calls superclass method
235
+ <a href="Dieta/Dieta.html#method-i-to_s">Dieta::Dieta#to_s</a>
236
+ </div>
237
+
238
+
239
+
240
+ <div class="method-source-code" id="to_s-source">
241
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 96</span>
242
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
243
+ <span class="ruby-identifier">output</span> = <span class="ruby-keyword">super</span>
244
+ <span class="ruby-identifier">output</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;\nGrupo: #{@grupo}&quot;</span>
245
+ <span class="ruby-keyword">end</span></pre>
246
+ </div>
247
+
248
+ </div>
249
+
250
+
251
+
252
+
253
+ </div>
254
+
255
+
256
+ </section>
257
+
258
+ </section>
259
+ </main>
260
+
261
+
262
+ <footer id="validator-badges" role="contentinfo">
263
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
264
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
265
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
266
+ </footer>
267
+
@@ -0,0 +1,267 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class MenuPorGrupoDeEdad - 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="Dieta/Dieta.html">Dieta::Dieta</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-get_grupo_edad">#get_grupo_edad</a>
76
+
77
+ <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-MenuPorGrupoDeEdad">
86
+ <h1 id="class-MenuPorGrupoDeEdad" class="class">
87
+ class MenuPorGrupoDeEdad
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>Clase que agrupa los menus por grupo de edad</p>
93
+
94
+ </section>
95
+
96
+
97
+
98
+
99
+ <section id="5Buntitled-5D" class="documentation-section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ <section class="attribute-method-details" class="method-section">
108
+ <header>
109
+ <h3>Attributes</h3>
110
+ </header>
111
+
112
+
113
+ <div id="attribute-i-grupo" class="method-detail">
114
+ <div class="method-heading attribute-method-heading">
115
+ <span class="method-name">grupo</span><span
116
+ class="attribute-access-type">[R]</span>
117
+ </div>
118
+
119
+ <div class="method-description">
120
+
121
+
122
+
123
+ </div>
124
+ </div>
125
+
126
+ </section>
127
+
128
+
129
+
130
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
131
+ <header>
132
+ <h3>Public Class Methods</h3>
133
+ </header>
134
+
135
+
136
+ <div id="method-c-new" class="method-detail ">
137
+
138
+ <div class="method-heading">
139
+ <span class="method-name">new</span><span
140
+ class="method-args">(descripcion, ingredientes, informacion, grupo_de_edad)</span>
141
+
142
+ <span class="method-click-advice">click to toggle source</span>
143
+
144
+ </div>
145
+
146
+
147
+ <div class="method-description">
148
+
149
+
150
+
151
+
152
+ <div class="method-calls-super">
153
+ Calls superclass method
154
+ <a href="Dieta/Dieta.html#method-c-new">Dieta::Dieta.new</a>
155
+ </div>
156
+
157
+
158
+
159
+ <div class="method-source-code" id="new-source">
160
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 111</span>
161
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">descripcion</span>, <span class="ruby-identifier">ingredientes</span>, <span class="ruby-identifier">informacion</span>, <span class="ruby-identifier">grupo_de_edad</span>)
162
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">descripcion</span>, <span class="ruby-identifier">ingredientes</span>, <span class="ruby-identifier">informacion</span>)
163
+ <span class="ruby-ivar">@grupo</span> = <span class="ruby-identifier">grupo_de_edad</span>
164
+ <span class="ruby-keyword">end</span></pre>
165
+ </div>
166
+
167
+ </div>
168
+
169
+
170
+
171
+
172
+ </div>
173
+
174
+
175
+ </section>
176
+
177
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
178
+ <header>
179
+ <h3>Public Instance Methods</h3>
180
+ </header>
181
+
182
+
183
+ <div id="method-i-get_grupo_edad" class="method-detail ">
184
+
185
+ <div class="method-heading">
186
+ <span class="method-name">get_grupo_edad</span><span
187
+ class="method-args">()</span>
188
+
189
+ <span class="method-click-advice">click to toggle source</span>
190
+
191
+ </div>
192
+
193
+
194
+ <div class="method-description">
195
+
196
+ <p>Devuelve el array representando el rango de edad</p>
197
+
198
+
199
+
200
+
201
+ <div class="method-source-code" id="get_grupo_edad-source">
202
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 123</span>
203
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_grupo_edad</span>
204
+ <span class="ruby-ivar">@grupo</span>
205
+ <span class="ruby-keyword">end</span></pre>
206
+ </div>
207
+
208
+ </div>
209
+
210
+
211
+
212
+
213
+ </div>
214
+
215
+
216
+ <div id="method-i-to_s" class="method-detail ">
217
+
218
+ <div class="method-heading">
219
+ <span class="method-name">to_s</span><span
220
+ class="method-args">()</span>
221
+
222
+ <span class="method-click-advice">click to toggle source</span>
223
+
224
+ </div>
225
+
226
+
227
+ <div class="method-description">
228
+
229
+ <p>Añade al <a href="MenuPorGrupoDeEdad.html#method-i-to_s">#to_s</a> original
230
+ la descripcion del grupo de edad</p>
231
+
232
+
233
+ <div class="method-calls-super">
234
+ Calls superclass method
235
+ <a href="Dieta/Dieta.html#method-i-to_s">Dieta::Dieta#to_s</a>
236
+ </div>
237
+
238
+
239
+
240
+ <div class="method-source-code" id="to_s-source">
241
+ <pre><span class="ruby-comment"># File lib/Dieta/dieta_codigo.rb, line 117</span>
242
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
243
+ <span class="ruby-identifier">output</span> = <span class="ruby-keyword">super</span>
244
+ <span class="ruby-identifier">output</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;\nGrupo de edad: #{@grupo[0]}-#{@grupo[1]} años&quot;</span>
245
+ <span class="ruby-keyword">end</span></pre>
246
+ </div>
247
+
248
+ </div>
249
+
250
+
251
+
252
+
253
+ </div>
254
+
255
+
256
+ </section>
257
+
258
+ </section>
259
+ </main>
260
+
261
+
262
+ <footer id="validator-badges" role="contentinfo">
263
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
264
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
265
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
266
+ </footer>
267
+