MenuDietetico_alu0100825510 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +8 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Guardfile +82 -0
  8. data/LICENSE.txt +21 -0
  9. data/MenuDietetico.gemspec +34 -0
  10. data/README.md +41 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/doc/CODE_OF_CONDUCT_md.html +195 -0
  15. data/doc/Gemfile.html +100 -0
  16. data/doc/Gemfile_lock.html +182 -0
  17. data/doc/Guardfile.html +180 -0
  18. data/doc/LICENSE_txt.html +117 -0
  19. data/doc/List.html +532 -0
  20. data/doc/Menu.html +645 -0
  21. data/doc/MenuAlimentos.html +231 -0
  22. data/doc/MenuDietetico.html +109 -0
  23. data/doc/MenuDietetico_gemspec.html +135 -0
  24. data/doc/MenuEdad.html +231 -0
  25. data/doc/Object.html +116 -0
  26. data/doc/Plato.html +247 -0
  27. data/doc/README_md.html +164 -0
  28. data/doc/Rakefile.html +101 -0
  29. data/doc/bin/setup.html +101 -0
  30. data/doc/created.rid +19 -0
  31. data/doc/css/fonts.css +167 -0
  32. data/doc/css/rdoc.css +590 -0
  33. data/doc/fonts/Lato-Light.ttf +0 -0
  34. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  35. data/doc/fonts/Lato-Regular.ttf +0 -0
  36. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  37. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  38. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  39. data/doc/images/add.png +0 -0
  40. data/doc/images/arrow_up.png +0 -0
  41. data/doc/images/brick.png +0 -0
  42. data/doc/images/brick_link.png +0 -0
  43. data/doc/images/bug.png +0 -0
  44. data/doc/images/bullet_black.png +0 -0
  45. data/doc/images/bullet_toggle_minus.png +0 -0
  46. data/doc/images/bullet_toggle_plus.png +0 -0
  47. data/doc/images/date.png +0 -0
  48. data/doc/images/delete.png +0 -0
  49. data/doc/images/find.png +0 -0
  50. data/doc/images/loadingAnimation.gif +0 -0
  51. data/doc/images/macFFBgHack.png +0 -0
  52. data/doc/images/package.png +0 -0
  53. data/doc/images/page_green.png +0 -0
  54. data/doc/images/page_white_text.png +0 -0
  55. data/doc/images/page_white_width.png +0 -0
  56. data/doc/images/plugin.png +0 -0
  57. data/doc/images/ruby.png +0 -0
  58. data/doc/images/tag_blue.png +0 -0
  59. data/doc/images/tag_green.png +0 -0
  60. data/doc/images/transparent.png +0 -0
  61. data/doc/images/wrench.png +0 -0
  62. data/doc/images/wrench_orange.png +0 -0
  63. data/doc/images/zoom.png +0 -0
  64. data/doc/index.html +117 -0
  65. data/doc/js/darkfish.js +161 -0
  66. data/doc/js/jquery.js +5 -0
  67. data/doc/js/navigation.js +142 -0
  68. data/doc/js/navigation.js.gz +0 -0
  69. data/doc/js/search.js +109 -0
  70. data/doc/js/search_index.js +1 -0
  71. data/doc/js/search_index.js.gz +0 -0
  72. data/doc/js/searcher.js +228 -0
  73. data/doc/js/searcher.js.gz +0 -0
  74. data/doc/table_of_contents.html +237 -0
  75. data/lib/MenuDietetico.rb +7 -0
  76. data/lib/MenuDietetico/lista.rb +139 -0
  77. data/lib/MenuDietetico/menu.rb +145 -0
  78. data/lib/MenuDietetico/menu_dsl.rb +85 -0
  79. data/lib/MenuDietetico/version.rb +3 -0
  80. metadata +206 -0
data/doc/MenuEdad.html ADDED
@@ -0,0 +1,231 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class MenuEdad - 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="Menu.html">Menu</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-MenuEdad">
84
+ <h1 id="class-MenuEdad" class="class">
85
+ class MenuEdad
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ </section>
91
+
92
+
93
+
94
+
95
+ <section id="5Buntitled-5D" class="documentation-section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <section class="attribute-method-details" class="method-section">
104
+ <header>
105
+ <h3>Attributes</h3>
106
+ </header>
107
+
108
+
109
+ <div id="attribute-i-edad" class="method-detail">
110
+ <div class="method-heading attribute-method-heading">
111
+ <span class="method-name">edad</span><span
112
+ class="attribute-access-type">[R]</span>
113
+ </div>
114
+
115
+ <div class="method-description">
116
+
117
+
118
+
119
+ </div>
120
+ </div>
121
+
122
+ </section>
123
+
124
+
125
+
126
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
127
+ <header>
128
+ <h3>Public Class Methods</h3>
129
+ </header>
130
+
131
+
132
+ <div id="method-c-new" class="method-detail ">
133
+
134
+ <div class="method-heading">
135
+ <span class="method-name">new</span><span
136
+ class="method-args">(edad, menu)</span>
137
+
138
+ <span class="method-click-advice">click to toggle source</span>
139
+
140
+ </div>
141
+
142
+
143
+ <div class="method-description">
144
+
145
+
146
+
147
+
148
+ <div class="method-calls-super">
149
+ Calls superclass method
150
+ <a href="Menu.html#method-c-new">Menu.new</a>
151
+ </div>
152
+
153
+
154
+
155
+ <div class="method-source-code" id="new-source">
156
+ <pre><span class="ruby-comment"># File lib/MenuDietetico/menu.rb, line 111</span>
157
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">edad</span>, <span class="ruby-identifier">menu</span>)
158
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">menu</span>.<span class="ruby-identifier">titulo</span>,<span class="ruby-identifier">menu</span>.<span class="ruby-identifier">porcentaje</span>,<span class="ruby-identifier">menu</span>.<span class="ruby-identifier">platos</span>, <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">vct</span>, <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">grasas</span>, <span class="ruby-identifier">menu</span>.<span class="ruby-identifier">hidratos_carbono</span>)
159
+ <span class="ruby-ivar">@edad</span> = <span class="ruby-identifier">edad</span>
160
+
161
+
162
+ <span class="ruby-keyword">end</span></pre>
163
+ </div>
164
+
165
+ </div>
166
+
167
+
168
+
169
+
170
+ </div>
171
+
172
+
173
+ </section>
174
+
175
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
176
+ <header>
177
+ <h3>Public Instance Methods</h3>
178
+ </header>
179
+
180
+
181
+ <div id="method-i-to_s" class="method-detail ">
182
+
183
+ <div class="method-heading">
184
+ <span class="method-name">to_s</span><span
185
+ class="method-args">()</span>
186
+
187
+ <span class="method-click-advice">click to toggle source</span>
188
+
189
+ </div>
190
+
191
+
192
+ <div class="method-description">
193
+
194
+
195
+
196
+
197
+ <div class="method-calls-super">
198
+ Calls superclass method
199
+ <a href="Menu.html#method-i-to_s">Menu#to_s</a>
200
+ </div>
201
+
202
+
203
+
204
+ <div class="method-source-code" id="to_s-source">
205
+ <pre><span class="ruby-comment"># File lib/MenuDietetico/menu.rb, line 118</span>
206
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
207
+
208
+ <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>
209
+ <span class="ruby-keyword">end</span></pre>
210
+ </div>
211
+
212
+ </div>
213
+
214
+
215
+
216
+
217
+ </div>
218
+
219
+
220
+ </section>
221
+
222
+ </section>
223
+ </main>
224
+
225
+
226
+ <footer id="validator-badges" role="contentinfo">
227
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
228
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
229
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
230
+ </footer>
231
+
data/doc/Object.html ADDED
@@ -0,0 +1,116 @@
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
+ </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">BasicObject
62
+
63
+ </div>
64
+
65
+
66
+
67
+
68
+ </div>
69
+ </nav>
70
+
71
+ <main role="main" aria-labelledby="class-Object">
72
+ <h1 id="class-Object" class="class">
73
+ class Object
74
+ </h1>
75
+
76
+ <section class="description">
77
+
78
+ </section>
79
+
80
+
81
+
82
+
83
+ <section id="5Buntitled-5D" class="documentation-section">
84
+
85
+
86
+
87
+
88
+
89
+ <section class="constants-list">
90
+ <header>
91
+ <h3>Constants</h3>
92
+ </header>
93
+ <dl>
94
+
95
+ <dt id="Node">Node
96
+
97
+ <dd>
98
+
99
+
100
+ </dl>
101
+ </section>
102
+
103
+
104
+
105
+
106
+
107
+ </section>
108
+ </main>
109
+
110
+
111
+ <footer id="validator-badges" role="contentinfo">
112
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
113
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
114
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
115
+ </footer>
116
+
data/doc/Plato.html ADDED
@@ -0,0 +1,247 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Plato - 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
+
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 ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><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-Plato">
84
+ <h1 id="class-Plato" class="class">
85
+ class Plato
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ </section>
91
+
92
+
93
+
94
+
95
+ <section id="5Buntitled-5D" class="documentation-section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <section class="attribute-method-details" class="method-section">
104
+ <header>
105
+ <h3>Attributes</h3>
106
+ </header>
107
+
108
+
109
+ <div id="attribute-i-gramos" class="method-detail">
110
+ <div class="method-heading attribute-method-heading">
111
+ <span class="method-name">gramos</span><span
112
+ class="attribute-access-type">[R]</span>
113
+ </div>
114
+
115
+ <div class="method-description">
116
+
117
+
118
+
119
+ </div>
120
+ </div>
121
+
122
+ <div id="attribute-i-porcion" class="method-detail">
123
+ <div class="method-heading attribute-method-heading">
124
+ <span class="method-name">porcion</span><span
125
+ class="attribute-access-type">[R]</span>
126
+ </div>
127
+
128
+ <div class="method-description">
129
+
130
+
131
+
132
+ </div>
133
+ </div>
134
+
135
+ <div id="attribute-i-titulo" class="method-detail">
136
+ <div class="method-heading attribute-method-heading">
137
+ <span class="method-name">titulo</span><span
138
+ class="attribute-access-type">[R]</span>
139
+ </div>
140
+
141
+ <div class="method-description">
142
+
143
+
144
+
145
+ </div>
146
+ </div>
147
+
148
+ </section>
149
+
150
+
151
+
152
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
153
+ <header>
154
+ <h3>Public Class Methods</h3>
155
+ </header>
156
+
157
+
158
+ <div id="method-c-new" class="method-detail ">
159
+
160
+ <div class="method-heading">
161
+ <span class="method-name">new</span><span
162
+ class="method-args">(titulo, porcion, gramos)</span>
163
+
164
+ <span class="method-click-advice">click to toggle source</span>
165
+
166
+ </div>
167
+
168
+
169
+ <div class="method-description">
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <div class="method-source-code" id="new-source">
177
+ <pre><span class="ruby-comment"># File lib/MenuDietetico/menu.rb, line 6</span>
178
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcion</span>, <span class="ruby-identifier">gramos</span>)
179
+
180
+ <span class="ruby-ivar">@titulo</span> = <span class="ruby-identifier">titulo</span>
181
+ <span class="ruby-ivar">@porcion</span> = <span class="ruby-identifier">porcion</span>
182
+ <span class="ruby-ivar">@gramos</span> = <span class="ruby-identifier">gramos</span>
183
+
184
+ <span class="ruby-keyword">end</span></pre>
185
+ </div>
186
+
187
+ </div>
188
+
189
+
190
+
191
+
192
+ </div>
193
+
194
+
195
+ </section>
196
+
197
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
198
+ <header>
199
+ <h3>Public Instance Methods</h3>
200
+ </header>
201
+
202
+
203
+ <div id="method-i-to_s" class="method-detail ">
204
+
205
+ <div class="method-heading">
206
+ <span class="method-name">to_s</span><span
207
+ class="method-args">()</span>
208
+
209
+ <span class="method-click-advice">click to toggle source</span>
210
+
211
+ </div>
212
+
213
+
214
+ <div class="method-description">
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <div class="method-source-code" id="to_s-source">
222
+ <pre><span class="ruby-comment"># File lib/MenuDietetico/menu.rb, line 15</span>
223
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
224
+ <span class="ruby-node">&quot;#{@titulo}, #{@porcion}, #{@gramos}&quot;</span>
225
+ <span class="ruby-keyword">end</span></pre>
226
+ </div>
227
+
228
+ </div>
229
+
230
+
231
+
232
+
233
+ </div>
234
+
235
+
236
+ </section>
237
+
238
+ </section>
239
+ </main>
240
+
241
+
242
+ <footer id="validator-badges" role="contentinfo">
243
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
244
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
245
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
246
+ </footer>
247
+