dieta_alu0100648782 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +6 -0
- data/bat +122 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/dieta.gemspec +39 -0
- data/doc/CODE_OF_CONDUCT_md.html +197 -0
- data/doc/Dieta.html +109 -0
- data/doc/Dietas.html +219 -0
- data/doc/Gemfile.html +109 -0
- data/doc/Gemfile_lock.html +184 -0
- data/doc/Grupo_alimento.html +221 -0
- data/doc/Grupo_edad.html +221 -0
- data/doc/Guardfile.html +182 -0
- data/doc/LICENSE_txt.html +119 -0
- data/doc/Lista.html +457 -0
- data/doc/Menu.html +624 -0
- data/doc/Object.html +116 -0
- data/doc/Plato.html +314 -0
- data/doc/README_md.html +175 -0
- data/doc/Rakefile.html +103 -0
- data/doc/bat.html +224 -0
- data/doc/bin/setup.html +103 -0
- data/doc/created.rid +20 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/dieta_gemspec.html +137 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +121 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +260 -0
- data/lib/dieta/dietas.rb +11 -0
- data/lib/dieta/dsl.rb +59 -0
- data/lib/dieta/lista.rb +66 -0
- data/lib/dieta/menu.rb +79 -0
- data/lib/dieta/plato.rb +19 -0
- data/lib/dieta/version.rb +3 -0
- data/lib/dieta.rb +10 -0
- metadata +211 -0
data/doc/Menu.html
ADDED
@@ -0,0 +1,624 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class 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">#<=></a>
|
87
|
+
|
88
|
+
<li ><a href="#method-i-get_grasas">#get_grasas</a>
|
89
|
+
|
90
|
+
<li ><a href="#method-i-get_hidratos">#get_hidratos</a>
|
91
|
+
|
92
|
+
<li ><a href="#method-i-get_plato">#get_plato</a>
|
93
|
+
|
94
|
+
<li ><a href="#method-i-get_porcentaje">#get_porcentaje</a>
|
95
|
+
|
96
|
+
<li ><a href="#method-i-get_proteinas">#get_proteinas</a>
|
97
|
+
|
98
|
+
<li ><a href="#method-i-get_titulo">#get_titulo</a>
|
99
|
+
|
100
|
+
<li ><a href="#method-i-get_vct">#get_vct</a>
|
101
|
+
|
102
|
+
<li ><a href="#method-i-getall_platos">#getall_platos</a>
|
103
|
+
|
104
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
105
|
+
|
106
|
+
</ul>
|
107
|
+
</div>
|
108
|
+
|
109
|
+
</div>
|
110
|
+
</nav>
|
111
|
+
|
112
|
+
<main role="main" aria-labelledby="class-Menu">
|
113
|
+
<h1 id="class-Menu" class="class">
|
114
|
+
class Menu
|
115
|
+
</h1>
|
116
|
+
|
117
|
+
<section class="description">
|
118
|
+
|
119
|
+
</section>
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
<section class="attribute-method-details" class="method-section">
|
133
|
+
<header>
|
134
|
+
<h3>Attributes</h3>
|
135
|
+
</header>
|
136
|
+
|
137
|
+
|
138
|
+
<div id="attribute-i-grasas" class="method-detail">
|
139
|
+
<div class="method-heading attribute-method-heading">
|
140
|
+
<span class="method-name">grasas</span><span
|
141
|
+
class="attribute-access-type">[R]</span>
|
142
|
+
</div>
|
143
|
+
|
144
|
+
<div class="method-description">
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
151
|
+
<div id="attribute-i-hidratos" class="method-detail">
|
152
|
+
<div class="method-heading attribute-method-heading">
|
153
|
+
<span class="method-name">hidratos</span><span
|
154
|
+
class="attribute-access-type">[R]</span>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class="method-description">
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
</div>
|
162
|
+
</div>
|
163
|
+
|
164
|
+
<div id="attribute-i-platos" class="method-detail">
|
165
|
+
<div class="method-heading attribute-method-heading">
|
166
|
+
<span class="method-name">platos</span><span
|
167
|
+
class="attribute-access-type">[R]</span>
|
168
|
+
</div>
|
169
|
+
|
170
|
+
<div class="method-description">
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
|
177
|
+
<div id="attribute-i-porcentaje" class="method-detail">
|
178
|
+
<div class="method-heading attribute-method-heading">
|
179
|
+
<span class="method-name">porcentaje</span><span
|
180
|
+
class="attribute-access-type">[R]</span>
|
181
|
+
</div>
|
182
|
+
|
183
|
+
<div class="method-description">
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
</div>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
<div id="attribute-i-proteinas" class="method-detail">
|
191
|
+
<div class="method-heading attribute-method-heading">
|
192
|
+
<span class="method-name">proteinas</span><span
|
193
|
+
class="attribute-access-type">[R]</span>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div class="method-description">
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
</div>
|
201
|
+
</div>
|
202
|
+
|
203
|
+
<div id="attribute-i-titulo" class="method-detail">
|
204
|
+
<div class="method-heading attribute-method-heading">
|
205
|
+
<span class="method-name">titulo</span><span
|
206
|
+
class="attribute-access-type">[R]</span>
|
207
|
+
</div>
|
208
|
+
|
209
|
+
<div class="method-description">
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
</div>
|
214
|
+
</div>
|
215
|
+
|
216
|
+
<div id="attribute-i-vct" class="method-detail">
|
217
|
+
<div class="method-heading attribute-method-heading">
|
218
|
+
<span class="method-name">vct</span><span
|
219
|
+
class="attribute-access-type">[R]</span>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
<div class="method-description">
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
</section>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
234
|
+
<header>
|
235
|
+
<h3>Public Class Methods</h3>
|
236
|
+
</header>
|
237
|
+
|
238
|
+
|
239
|
+
<div id="method-c-new" class="method-detail ">
|
240
|
+
|
241
|
+
<div class="method-heading">
|
242
|
+
<span class="method-name">new</span><span
|
243
|
+
class="method-args">(titulo, porcentaje, platos, vct, proteinas, grasas, hidratos)</span>
|
244
|
+
|
245
|
+
<span class="method-click-advice">click to toggle source</span>
|
246
|
+
|
247
|
+
</div>
|
248
|
+
|
249
|
+
|
250
|
+
<div class="method-description">
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<div class="method-source-code" id="new-source">
|
258
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 6</span>
|
259
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcentaje</span>, <span class="ruby-identifier">platos</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">grasas</span>, <span class="ruby-identifier">hidratos</span>
|
260
|
+
<span class="ruby-ivar">@titulo</span>, <span class="ruby-ivar">@porcentaje</span>, <span class="ruby-ivar">@platos</span>, <span class="ruby-ivar">@vct</span>, <span class="ruby-ivar">@proteinas</span>, <span class="ruby-ivar">@grasas</span>, <span class="ruby-ivar">@hidratos</span> = <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcentaje</span>, <span class="ruby-identifier">platos</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">grasas</span>, <span class="ruby-identifier">hidratos</span>
|
261
|
+
<span class="ruby-keyword">end</span></pre>
|
262
|
+
</div>
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
|
272
|
+
</section>
|
273
|
+
|
274
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
275
|
+
<header>
|
276
|
+
<h3>Public Instance Methods</h3>
|
277
|
+
</header>
|
278
|
+
|
279
|
+
|
280
|
+
<div id="method-i-3C-3D-3E" class="method-detail ">
|
281
|
+
|
282
|
+
<div class="method-heading">
|
283
|
+
<span class="method-name"><=></span><span
|
284
|
+
class="method-args">(otro)</span>
|
285
|
+
|
286
|
+
<span class="method-click-advice">click to toggle source</span>
|
287
|
+
|
288
|
+
</div>
|
289
|
+
|
290
|
+
|
291
|
+
<div class="method-description">
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
|
298
|
+
<div class="method-source-code" id="3C-3D-3E-source">
|
299
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 39</span>
|
300
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">otro</span>)
|
301
|
+
<span class="ruby-identifier">titulo</span><span class="ruby-operator"><=></span><span class="ruby-identifier">otro</span>.<span class="ruby-identifier">titulo</span>
|
302
|
+
<span class="ruby-keyword">end</span></pre>
|
303
|
+
</div>
|
304
|
+
|
305
|
+
</div>
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
</div>
|
311
|
+
|
312
|
+
|
313
|
+
<div id="method-i-get_grasas" class="method-detail ">
|
314
|
+
|
315
|
+
<div class="method-heading">
|
316
|
+
<span class="method-name">get_grasas</span><span
|
317
|
+
class="method-args">()</span>
|
318
|
+
|
319
|
+
<span class="method-click-advice">click to toggle source</span>
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
|
324
|
+
<div class="method-description">
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
|
331
|
+
<div class="method-source-code" id="get_grasas-source">
|
332
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 33</span>
|
333
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_grasas</span>
|
334
|
+
<span class="ruby-ivar">@grasas</span>
|
335
|
+
<span class="ruby-keyword">end</span></pre>
|
336
|
+
</div>
|
337
|
+
|
338
|
+
</div>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</div>
|
344
|
+
|
345
|
+
|
346
|
+
<div id="method-i-get_hidratos" class="method-detail ">
|
347
|
+
|
348
|
+
<div class="method-heading">
|
349
|
+
<span class="method-name">get_hidratos</span><span
|
350
|
+
class="method-args">()</span>
|
351
|
+
|
352
|
+
<span class="method-click-advice">click to toggle source</span>
|
353
|
+
|
354
|
+
</div>
|
355
|
+
|
356
|
+
|
357
|
+
<div class="method-description">
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
<div class="method-source-code" id="get_hidratos-source">
|
365
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 36</span>
|
366
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_hidratos</span>
|
367
|
+
<span class="ruby-ivar">@hidratos</span>
|
368
|
+
<span class="ruby-keyword">end</span></pre>
|
369
|
+
</div>
|
370
|
+
|
371
|
+
</div>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
</div>
|
377
|
+
|
378
|
+
|
379
|
+
<div id="method-i-get_plato" class="method-detail ">
|
380
|
+
|
381
|
+
<div class="method-heading">
|
382
|
+
<span class="method-name">get_plato</span><span
|
383
|
+
class="method-args">(i)</span>
|
384
|
+
|
385
|
+
<span class="method-click-advice">click to toggle source</span>
|
386
|
+
|
387
|
+
</div>
|
388
|
+
|
389
|
+
|
390
|
+
<div class="method-description">
|
391
|
+
|
392
|
+
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
<div class="method-source-code" id="get_plato-source">
|
398
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 12</span>
|
399
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_plato</span> <span class="ruby-identifier">i</span>
|
400
|
+
<span class="ruby-ivar">@platos</span>[<span class="ruby-identifier">i</span>]
|
401
|
+
<span class="ruby-keyword">end</span></pre>
|
402
|
+
</div>
|
403
|
+
|
404
|
+
</div>
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
</div>
|
410
|
+
|
411
|
+
|
412
|
+
<div id="method-i-get_porcentaje" class="method-detail ">
|
413
|
+
|
414
|
+
<div class="method-heading">
|
415
|
+
<span class="method-name">get_porcentaje</span><span
|
416
|
+
class="method-args">()</span>
|
417
|
+
|
418
|
+
<span class="method-click-advice">click to toggle source</span>
|
419
|
+
|
420
|
+
</div>
|
421
|
+
|
422
|
+
|
423
|
+
<div class="method-description">
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
|
429
|
+
|
430
|
+
<div class="method-source-code" id="get_porcentaje-source">
|
431
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 21</span>
|
432
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_porcentaje</span>
|
433
|
+
<span class="ruby-ivar">@porcentaje</span>
|
434
|
+
<span class="ruby-keyword">end</span></pre>
|
435
|
+
</div>
|
436
|
+
|
437
|
+
</div>
|
438
|
+
|
439
|
+
|
440
|
+
|
441
|
+
|
442
|
+
</div>
|
443
|
+
|
444
|
+
|
445
|
+
<div id="method-i-get_proteinas" class="method-detail ">
|
446
|
+
|
447
|
+
<div class="method-heading">
|
448
|
+
<span class="method-name">get_proteinas</span><span
|
449
|
+
class="method-args">()</span>
|
450
|
+
|
451
|
+
<span class="method-click-advice">click to toggle source</span>
|
452
|
+
|
453
|
+
</div>
|
454
|
+
|
455
|
+
|
456
|
+
<div class="method-description">
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
<div class="method-source-code" id="get_proteinas-source">
|
464
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 30</span>
|
465
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_proteinas</span>
|
466
|
+
<span class="ruby-ivar">@proteinas</span>
|
467
|
+
<span class="ruby-keyword">end</span></pre>
|
468
|
+
</div>
|
469
|
+
|
470
|
+
</div>
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
</div>
|
476
|
+
|
477
|
+
|
478
|
+
<div id="method-i-get_titulo" class="method-detail ">
|
479
|
+
|
480
|
+
<div class="method-heading">
|
481
|
+
<span class="method-name">get_titulo</span><span
|
482
|
+
class="method-args">()</span>
|
483
|
+
|
484
|
+
<span class="method-click-advice">click to toggle source</span>
|
485
|
+
|
486
|
+
</div>
|
487
|
+
|
488
|
+
|
489
|
+
<div class="method-description">
|
490
|
+
|
491
|
+
|
492
|
+
|
493
|
+
|
494
|
+
|
495
|
+
|
496
|
+
<div class="method-source-code" id="get_titulo-source">
|
497
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 9</span>
|
498
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_titulo</span>
|
499
|
+
<span class="ruby-ivar">@titulo</span>
|
500
|
+
<span class="ruby-keyword">end</span></pre>
|
501
|
+
</div>
|
502
|
+
|
503
|
+
</div>
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
</div>
|
509
|
+
|
510
|
+
|
511
|
+
<div id="method-i-get_vct" class="method-detail ">
|
512
|
+
|
513
|
+
<div class="method-heading">
|
514
|
+
<span class="method-name">get_vct</span><span
|
515
|
+
class="method-args">()</span>
|
516
|
+
|
517
|
+
<span class="method-click-advice">click to toggle source</span>
|
518
|
+
|
519
|
+
</div>
|
520
|
+
|
521
|
+
|
522
|
+
<div class="method-description">
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
<div class="method-source-code" id="get_vct-source">
|
530
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 18</span>
|
531
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_vct</span>
|
532
|
+
<span class="ruby-ivar">@vct</span>
|
533
|
+
<span class="ruby-keyword">end</span></pre>
|
534
|
+
</div>
|
535
|
+
|
536
|
+
</div>
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
</div>
|
542
|
+
|
543
|
+
|
544
|
+
<div id="method-i-getall_platos" class="method-detail ">
|
545
|
+
|
546
|
+
<div class="method-heading">
|
547
|
+
<span class="method-name">getall_platos</span><span
|
548
|
+
class="method-args">()</span>
|
549
|
+
|
550
|
+
<span class="method-click-advice">click to toggle source</span>
|
551
|
+
|
552
|
+
</div>
|
553
|
+
|
554
|
+
|
555
|
+
<div class="method-description">
|
556
|
+
|
557
|
+
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
<div class="method-source-code" id="getall_platos-source">
|
563
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 15</span>
|
564
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getall_platos</span>
|
565
|
+
<span class="ruby-ivar">@platos</span>
|
566
|
+
<span class="ruby-keyword">end</span></pre>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
</div>
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
</div>
|
575
|
+
|
576
|
+
|
577
|
+
<div id="method-i-to_s" class="method-detail ">
|
578
|
+
|
579
|
+
<div class="method-heading">
|
580
|
+
<span class="method-name">to_s</span><span
|
581
|
+
class="method-args">()</span>
|
582
|
+
|
583
|
+
<span class="method-click-advice">click to toggle source</span>
|
584
|
+
|
585
|
+
</div>
|
586
|
+
|
587
|
+
|
588
|
+
<div class="method-description">
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
|
594
|
+
|
595
|
+
<div class="method-source-code" id="to_s-source">
|
596
|
+
<pre><span class="ruby-comment"># File lib/dieta/menu.rb, line 24</span>
|
597
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
598
|
+
<span class="ruby-identifier">out</span> = <span class="ruby-node">"#{@titulo.upcase} (#{@porcentaje}%)\n"</span>
|
599
|
+
<span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-ivar">@platos</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">plato</span><span class="ruby-operator">|</span> <span class="ruby-node">"- #{plato}"</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">",\n"</span>)
|
600
|
+
<span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"\nV.C.T. | % #{vct} kcal | #{proteinas}% - #{grasas}% - #{hidratos}%"</span>
|
601
|
+
<span class="ruby-identifier">out</span>
|
602
|
+
<span class="ruby-keyword">end</span></pre>
|
603
|
+
</div>
|
604
|
+
|
605
|
+
</div>
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
|
610
|
+
</div>
|
611
|
+
|
612
|
+
|
613
|
+
</section>
|
614
|
+
|
615
|
+
</section>
|
616
|
+
</main>
|
617
|
+
|
618
|
+
|
619
|
+
<footer id="validator-badges" role="contentinfo">
|
620
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
621
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
622
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
623
|
+
</footer>
|
624
|
+
|