gemaalu0100884982 0.1.1

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 (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/README.md +11 -0
  8. data/Rakefile +21 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/doc/Dieta.html +681 -0
  12. data/doc/Gema.html +97 -0
  13. data/doc/Gemfile.html +120 -0
  14. data/doc/Gemfile_lock.html +204 -0
  15. data/doc/Guardfile.html +200 -0
  16. data/doc/Lista.html +587 -0
  17. data/doc/Menu_Alimentos.html +234 -0
  18. data/doc/Menu_Edad.html +234 -0
  19. data/doc/Object.html +116 -0
  20. data/doc/README_md.html +129 -0
  21. data/doc/README_md~.html +128 -0
  22. data/doc/Rakefile.html +140 -0
  23. data/doc/Rakefile~.html +140 -0
  24. data/doc/bin/setup.html +121 -0
  25. data/doc/created.rid +30 -0
  26. data/doc/css/fonts.css +167 -0
  27. data/doc/css/rdoc.css +590 -0
  28. data/doc/fonts/Lato-Light.ttf +0 -0
  29. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  30. data/doc/fonts/Lato-Regular.ttf +0 -0
  31. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  32. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  34. data/doc/gema_gemspec.html +155 -0
  35. data/doc/gema_gemspec~.html +156 -0
  36. data/doc/images/add.png +0 -0
  37. data/doc/images/arrow_up.png +0 -0
  38. data/doc/images/brick.png +0 -0
  39. data/doc/images/brick_link.png +0 -0
  40. data/doc/images/bug.png +0 -0
  41. data/doc/images/bullet_black.png +0 -0
  42. data/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/images/date.png +0 -0
  45. data/doc/images/delete.png +0 -0
  46. data/doc/images/find.png +0 -0
  47. data/doc/images/loadingAnimation.gif +0 -0
  48. data/doc/images/macFFBgHack.png +0 -0
  49. data/doc/images/package.png +0 -0
  50. data/doc/images/page_green.png +0 -0
  51. data/doc/images/page_white_text.png +0 -0
  52. data/doc/images/page_white_width.png +0 -0
  53. data/doc/images/plugin.png +0 -0
  54. data/doc/images/ruby.png +0 -0
  55. data/doc/images/tag_blue.png +0 -0
  56. data/doc/images/tag_green.png +0 -0
  57. data/doc/images/transparent.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/index.html +135 -0
  62. data/doc/js/darkfish.js +161 -0
  63. data/doc/js/jquery.js +4 -0
  64. data/doc/js/navigation.js +142 -0
  65. data/doc/js/navigation.js.gz +0 -0
  66. data/doc/js/search.js +109 -0
  67. data/doc/js/search_index.js +1 -0
  68. data/doc/js/search_index.js.gz +0 -0
  69. data/doc/js/searcher.js +228 -0
  70. data/doc/js/searcher.js.gz +0 -0
  71. data/doc/lib/gema/dieta_rb~.html +253 -0
  72. data/doc/lib/gema/lista_dll_rb~.html +253 -0
  73. data/doc/lib/gema/lista_rb~.html +241 -0
  74. data/doc/lib/gema/version_rb~.html +122 -0
  75. data/doc/lib/gema_rb~.html +123 -0
  76. data/doc/spec/dieta_spec_rb~.html +286 -0
  77. data/doc/spec/herenciadieta_spec_rb~.html +222 -0
  78. data/doc/spec/lista_spec_rb~.html +396 -0
  79. data/doc/spec/spec_helper_rb~.html +118 -0
  80. data/doc/table_of_contents.html +258 -0
  81. data/gema.gemspec +40 -0
  82. data/lib/gema.rb +6 -0
  83. data/lib/gema/dieta.rb +134 -0
  84. data/lib/gema/dieta_dsl.rb +188 -0
  85. data/lib/gema/lista_dll.rb +157 -0
  86. data/lib/gema/version.rb +4 -0
  87. metadata +228 -0
@@ -0,0 +1,234 @@
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
+ </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.html">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 class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Menu_Alimentos">
84
+ <h1 id="class-Menu_Alimentos" class="class">
85
+ class Menu_Alimentos
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ <p>Clase <a href="Menu_Alimentos.html">Menu_Alimentos</a>, que hereda de la
91
+ clase <a href="Dieta.html">Dieta</a></p>
92
+
93
+ </section>
94
+
95
+
96
+
97
+
98
+ <section id="5Buntitled-5D" class="documentation-section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <section class="attribute-method-details" class="method-section">
107
+ <header>
108
+ <h3>Attributes</h3>
109
+ </header>
110
+
111
+
112
+ <div id="attribute-i-alimentos" class="method-detail">
113
+ <div class="method-heading attribute-method-heading">
114
+ <span class="method-name">alimentos</span><span
115
+ class="attribute-access-type">[R]</span>
116
+ </div>
117
+
118
+ <div class="method-description">
119
+
120
+ <p>El atributo alimentos representa el grupo de alimentos de la <a
121
+ href="Dieta.html">Dieta</a></p>
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">(alimentos, dieta)</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
+ <p>Constructor de la clase <a href="Menu_Alimentos.html">Menu_Alimentos</a></p>
150
+
151
+
152
+ <div class="method-calls-super">
153
+ Calls superclass method
154
+ <a href="Dieta.html#method-c-new">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/gema/dieta.rb, line 117</span>
161
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">alimentos</span>, <span class="ruby-identifier">dieta</span>)
162
+ <span class="ruby-ivar">@alimentos</span>= <span class="ruby-identifier">alimentos</span>
163
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">titulo</span>,<span class="ruby-identifier">dieta</span>. <span class="ruby-identifier">porcentaje_ingesta</span>,<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">platos</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">vct</span>,<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">porcentajes</span>)
164
+
165
+ <span class="ruby-keyword">end</span></pre>
166
+ </div>
167
+
168
+ </div>
169
+
170
+
171
+
172
+
173
+ </div>
174
+
175
+
176
+ </section>
177
+
178
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
179
+ <header>
180
+ <h3>Public Instance Methods</h3>
181
+ </header>
182
+
183
+
184
+ <div id="method-i-to_s" class="method-detail ">
185
+
186
+ <div class="method-heading">
187
+ <span class="method-name">to_s</span><span
188
+ class="method-args">()</span>
189
+
190
+ <span class="method-click-advice">click to toggle source</span>
191
+
192
+ </div>
193
+
194
+
195
+ <div class="method-description">
196
+
197
+ <p>Método que imprime la dieta más el grupo de alimentos de la misma</p>
198
+
199
+
200
+ <div class="method-calls-super">
201
+ Calls superclass method
202
+ <a href="Dieta.html#method-i-to_s">Dieta#to_s</a>
203
+ </div>
204
+
205
+
206
+
207
+ <div class="method-source-code" id="to_s-source">
208
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 124</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
210
+
211
+ <span class="ruby-identifier">title</span> = <span class="ruby-keyword">super</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;\nGrupo de alimentos:#{@alimentos}&quot;</span>
212
+ <span class="ruby-keyword">end</span></pre>
213
+ </div>
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ </div>
221
+
222
+
223
+ </section>
224
+
225
+ </section>
226
+ </main>
227
+
228
+
229
+ <footer id="validator-badges" role="contentinfo">
230
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
231
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
232
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
233
+ </footer>
234
+
@@ -0,0 +1,234 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Menu_Edad - 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.html">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 class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Menu_Edad">
84
+ <h1 id="class-Menu_Edad" class="class">
85
+ class Menu_Edad
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ <p>Clase <a href="Menu_Edad.html">Menu_Edad</a>, que hereda de la clase <a
91
+ href="Dieta.html">Dieta</a></p>
92
+
93
+ </section>
94
+
95
+
96
+
97
+
98
+ <section id="5Buntitled-5D" class="documentation-section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <section class="attribute-method-details" class="method-section">
107
+ <header>
108
+ <h3>Attributes</h3>
109
+ </header>
110
+
111
+
112
+ <div id="attribute-i-edad" class="method-detail">
113
+ <div class="method-heading attribute-method-heading">
114
+ <span class="method-name">edad</span><span
115
+ class="attribute-access-type">[R]</span>
116
+ </div>
117
+
118
+ <div class="method-description">
119
+
120
+ <p>Atributo para almacenar el rango de edades para consumir la <a
121
+ href="Dieta.html">Dieta</a></p>
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">(edad, dieta)</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
+ <p>Constructor de la clase <a href="Menu_Edad.html">Menu_Edad</a></p>
150
+
151
+
152
+ <div class="method-calls-super">
153
+ Calls superclass method
154
+ <a href="Dieta.html#method-c-new">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/gema/dieta.rb, line 98</span>
161
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">edad</span>, <span class="ruby-identifier">dieta</span>)
162
+ <span class="ruby-ivar">@edad</span> = <span class="ruby-identifier">edad</span>
163
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">titulo</span>,<span class="ruby-identifier">dieta</span>. <span class="ruby-identifier">porcentaje_ingesta</span>,<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">platos</span>, <span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">vct</span>,<span class="ruby-identifier">dieta</span>.<span class="ruby-identifier">porcentajes</span>)
164
+
165
+ <span class="ruby-keyword">end</span></pre>
166
+ </div>
167
+
168
+ </div>
169
+
170
+
171
+
172
+
173
+ </div>
174
+
175
+
176
+ </section>
177
+
178
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
179
+ <header>
180
+ <h3>Public Instance Methods</h3>
181
+ </header>
182
+
183
+
184
+ <div id="method-i-to_s" class="method-detail ">
185
+
186
+ <div class="method-heading">
187
+ <span class="method-name">to_s</span><span
188
+ class="method-args">()</span>
189
+
190
+ <span class="method-click-advice">click to toggle source</span>
191
+
192
+ </div>
193
+
194
+
195
+ <div class="method-description">
196
+
197
+ <p>Método que imprime la dieta más la edad para consumirla</p>
198
+
199
+
200
+ <div class="method-calls-super">
201
+ Calls superclass method
202
+ <a href="Dieta.html#method-i-to_s">Dieta#to_s</a>
203
+ </div>
204
+
205
+
206
+
207
+ <div class="method-source-code" id="to_s-source">
208
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 104</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
210
+
211
+ <span class="ruby-identifier">title</span> = <span class="ruby-keyword">super</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;\nEdad:#{@edad}&quot;</span>
212
+ <span class="ruby-keyword">end</span></pre>
213
+ </div>
214
+
215
+ </div>
216
+
217
+
218
+
219
+
220
+ </div>
221
+
222
+
223
+ </section>
224
+
225
+ </section>
226
+ </main>
227
+
228
+
229
+ <footer id="validator-badges" role="contentinfo">
230
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
231
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
232
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
233
+ </footer>
234
+