jsprac 0.3.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 (62) hide show
  1. checksums.yaml +7 -0
  2. data/.bundle/config +2 -0
  3. data/.rspec +2 -0
  4. data/.yardoc/checksums +5 -0
  5. data/.yardoc/complete +0 -0
  6. data/.yardoc/object_types +0 -0
  7. data/.yardoc/objects/root.dat +0 -0
  8. data/.yardoc/proxy_types +0 -0
  9. data/Gemfile +7 -0
  10. data/Gemfile.lock +80 -0
  11. data/Guardfile +82 -0
  12. data/LICENSE.txt +21 -0
  13. data/README.md +1 -0
  14. data/Rakefile +6 -0
  15. data/bin/_guard-core +17 -0
  16. data/bin/bundler +17 -0
  17. data/bin/coderay +17 -0
  18. data/bin/console +14 -0
  19. data/bin/guard +17 -0
  20. data/bin/htmldiff +17 -0
  21. data/bin/ldiff +17 -0
  22. data/bin/listen +17 -0
  23. data/bin/pry +17 -0
  24. data/bin/rake +17 -0
  25. data/bin/rspec +17 -0
  26. data/bin/setup +8 -0
  27. data/bin/thor +17 -0
  28. data/doc/Alimentos.html +368 -0
  29. data/doc/Diet.html +916 -0
  30. data/doc/Edad.html +368 -0
  31. data/doc/List.html +764 -0
  32. data/doc/Node.html +411 -0
  33. data/doc/Prct06.html +117 -0
  34. data/doc/_index.html +174 -0
  35. data/doc/class_list.html +51 -0
  36. data/doc/css/common.css +1 -0
  37. data/doc/css/full_list.css +58 -0
  38. data/doc/css/style.css +481 -0
  39. data/doc/file.README.html +74 -0
  40. data/doc/file_list.html +56 -0
  41. data/doc/frames.html +17 -0
  42. data/doc/index.html +74 -0
  43. data/doc/js/app.js +243 -0
  44. data/doc/js/full_list.js +216 -0
  45. data/doc/js/jquery.js +4 -0
  46. data/doc/method_list.html +291 -0
  47. data/doc/top-level-namespace.html +114 -0
  48. data/lib/prct06/.prct06menu.rb.swp +0 -0
  49. data/lib/prct06/.yardoc/checksums +0 -0
  50. data/lib/prct06/.yardoc/complete +0 -0
  51. data/lib/prct06/.yardoc/object_types +0 -0
  52. data/lib/prct06/.yardoc/objects/root.dat +0 -0
  53. data/lib/prct06/.yardoc/proxy_types +0 -0
  54. data/lib/prct06/menualimentos.rb +13 -0
  55. data/lib/prct06/menuedad.rb +13 -0
  56. data/lib/prct06/prct06.rb +50 -0
  57. data/lib/prct06/prct06menu.rb +56 -0
  58. data/lib/prct06/version.rb +3 -0
  59. data/pkg/jsprac-0.1.0.gem +0 -0
  60. data/pkg/prct06-0.1.0.gem +0 -0
  61. data/prct06.gemspec +40 -0
  62. metadata +189 -0
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+ #
4
+ # This file was generated by Bundler.
5
+ #
6
+ # The application 'thor' is installed as part of a gem, and
7
+ # this file is here to facilitate running it.
8
+ #
9
+
10
+ require "pathname"
11
+ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
12
+ Pathname.new(__FILE__).realpath)
13
+
14
+ require "rubygems"
15
+ require "bundler/setup"
16
+
17
+ load Gem.bin_path("thor", "thor")
@@ -0,0 +1,368 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Alimentos
8
+
9
+ &mdash; Documentation by YARD 0.9.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Alimentos";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (A)</a> &raquo;
40
+
41
+
42
+ <span class="title">Alimentos</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame" src="class_list.html"></iframe>
63
+
64
+ <div id="content"><h1>Class: Alimentos
65
+
66
+
67
+
68
+ </h1>
69
+ <div class="box_info">
70
+
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
74
+ <span class="inheritName"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></li>
80
+
81
+ <li class="next">Alimentos</li>
82
+
83
+ </ul>
84
+ <a href="#" class="inheritanceTree">show all</a>
85
+
86
+ </dd>
87
+ </dl>
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+ <dl>
100
+ <dt>Defined in:</dt>
101
+ <dd>lib/prct06/menualimentos.rb</dd>
102
+ </dl>
103
+
104
+ </div>
105
+
106
+
107
+
108
+
109
+
110
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
111
+ <ul class="summary">
112
+
113
+ <li class="public ">
114
+ <span class="summary_signature">
115
+
116
+ <a href="#alimentos-instance_method" title="#alimentos (instance method)">#<strong>alimentos</strong> &#x21d2; Object </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+ <span class="summary_desc"><div class='inline'>
134
+ <p>Returns the value of attribute alimentos.</p>
135
+ </div></span>
136
+
137
+ </li>
138
+
139
+
140
+ </ul>
141
+
142
+
143
+
144
+
145
+
146
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
147
+ <p class="inherited"><span class='object_link'><a href="Diet.html#dip-instance_method" title="Diet#dip (method)">#dip</a></span>, <span class='object_link'><a href="Diet.html#pchdt-instance_method" title="Diet#pchdt (method)">#pchdt</a></span>, <span class='object_link'><a href="Diet.html#pfts-instance_method" title="Diet#pfts (method)">#pfts</a></span>, <span class='object_link'><a href="Diet.html#pprtn-instance_method" title="Diet#pprtn (method)">#pprtn</a></span>, <span class='object_link'><a href="Diet.html#rcps-instance_method" title="Diet#rcps (method)">#rcps</a></span>, <span class='object_link'><a href="Diet.html#ttl-instance_method" title="Diet#ttl (method)">#ttl</a></span>, <span class='object_link'><a href="Diet.html#vct-instance_method" title="Diet#vct (method)">#vct</a></span></p>
148
+
149
+
150
+
151
+ <h2>
152
+ Instance Method Summary
153
+ <small><a href="#" class="summary_toggle">collapse</a></small>
154
+ </h2>
155
+
156
+ <ul class="summary">
157
+
158
+ <li class="public ">
159
+ <span class="summary_signature">
160
+
161
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(alimentos, ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; Alimentos </a>
162
+
163
+
164
+
165
+ </span>
166
+
167
+
168
+ <span class="note title constructor">constructor</span>
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <span class="summary_desc"><div class='inline'>
178
+ <p>A new instance of Alimentos.</p>
179
+ </div></span>
180
+
181
+ </li>
182
+
183
+
184
+ <li class="public ">
185
+ <span class="summary_signature">
186
+
187
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
188
+
189
+
190
+
191
+ </span>
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+ <span class="summary_desc"><div class='inline'></div></span>
202
+
203
+ </li>
204
+
205
+
206
+ </ul>
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
219
+ <p class="inherited"><span class='object_link'><a href="Diet.html#%3C%3D%3E-instance_method" title="Diet#&lt;=&gt; (method)">#<=></a></span>, <span class='object_link'><a href="Diet.html#new_recipe-instance_method" title="Diet#new_recipe (method)">#new_recipe</a></span></p>
220
+
221
+ <div id="constructor_details" class="method_details_list">
222
+ <h2>Constructor Details</h2>
223
+
224
+ <div class="method_details first">
225
+ <h3 class="signature first" id="initialize-instance_method">
226
+
227
+ #<strong>initialize</strong>(alimentos, ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; <tt><span class='object_link'><a href="" title="Alimentos (class)">Alimentos</a></span></tt>
228
+
229
+
230
+
231
+
232
+
233
+ </h3><div class="docstring">
234
+ <div class="discussion">
235
+
236
+ <p>Returns a new instance of Alimentos</p>
237
+
238
+
239
+ </div>
240
+ </div>
241
+ <div class="tags">
242
+
243
+
244
+ </div><table class="source_code">
245
+ <tr>
246
+ <td>
247
+ <pre class="lines">
248
+
249
+
250
+ 4
251
+ 5
252
+ 6
253
+ 7</pre>
254
+ </td>
255
+ <td>
256
+ <pre class="code"><span class="info file"># File 'lib/prct06/menualimentos.rb', line 4</span>
257
+
258
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_alimentos'>alimentos</span><span class='comma'>,</span><span class='id identifier rubyid_ttl'>ttl</span><span class='comma'>,</span><span class='id identifier rubyid_dip'>dip</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_pprtn'>pprtn</span><span class='comma'>,</span><span class='id identifier rubyid_pfts'>pfts</span><span class='comma'>,</span><span class='id identifier rubyid_pchdt'>pchdt</span><span class='rparen'>)</span>
259
+ <span class='ivar'>@alimentos</span> <span class='op'>=</span> <span class='id identifier rubyid_alimentos'>alimentos</span>
260
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_ttl'>ttl</span><span class='comma'>,</span> <span class='id identifier rubyid_dip'>dip</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_pprtn'>pprtn</span><span class='comma'>,</span> <span class='id identifier rubyid_pfts'>pfts</span><span class='comma'>,</span> <span class='id identifier rubyid_pchdt'>pchdt</span><span class='rparen'>)</span>
261
+ <span class='kw'>end</span></pre>
262
+ </td>
263
+ </tr>
264
+ </table>
265
+ </div>
266
+
267
+ </div>
268
+
269
+ <div id="instance_attr_details" class="attr_details">
270
+ <h2>Instance Attribute Details</h2>
271
+
272
+
273
+ <span id="alimentos=-instance_method"></span>
274
+ <div class="method_details first">
275
+ <h3 class="signature first" id="alimentos-instance_method">
276
+
277
+ #<strong>alimentos</strong> &#x21d2; <tt>Object</tt>
278
+
279
+
280
+
281
+
282
+
283
+ </h3><div class="docstring">
284
+ <div class="discussion">
285
+
286
+ <p>Returns the value of attribute alimentos</p>
287
+
288
+
289
+ </div>
290
+ </div>
291
+ <div class="tags">
292
+
293
+
294
+ </div><table class="source_code">
295
+ <tr>
296
+ <td>
297
+ <pre class="lines">
298
+
299
+
300
+ 3
301
+ 4
302
+ 5</pre>
303
+ </td>
304
+ <td>
305
+ <pre class="code"><span class="info file"># File 'lib/prct06/menualimentos.rb', line 3</span>
306
+
307
+ <span class='kw'>def</span> <span class='id identifier rubyid_alimentos'>alimentos</span>
308
+ <span class='ivar'>@alimentos</span>
309
+ <span class='kw'>end</span></pre>
310
+ </td>
311
+ </tr>
312
+ </table>
313
+ </div>
314
+
315
+ </div>
316
+
317
+
318
+ <div id="instance_method_details" class="method_details_list">
319
+ <h2>Instance Method Details</h2>
320
+
321
+
322
+ <div class="method_details first">
323
+ <h3 class="signature first" id="to_s-instance_method">
324
+
325
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
326
+
327
+
328
+
329
+
330
+
331
+ </h3><table class="source_code">
332
+ <tr>
333
+ <td>
334
+ <pre class="lines">
335
+
336
+
337
+ 8
338
+ 9
339
+ 10
340
+ 11
341
+ 12</pre>
342
+ </td>
343
+ <td>
344
+ <pre class="code"><span class="info file"># File 'lib/prct06/menualimentos.rb', line 8</span>
345
+
346
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
347
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
348
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='ivar'>@alimentos</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
349
+ <span class='id identifier rubyid_a'>a</span> <span class='op'>&lt;&lt;</span> <span class='kw'>super</span>
350
+ <span class='kw'>end</span></pre>
351
+ </td>
352
+ </tr>
353
+ </table>
354
+ </div>
355
+
356
+ </div>
357
+
358
+ </div>
359
+
360
+ <div id="footer">
361
+ Generated on Tue Nov 22 18:46:04 2016 by
362
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
363
+ 0.9.5 (ruby-2.3.0).
364
+ </div>
365
+
366
+ </div>
367
+ </body>
368
+ </html>
@@ -0,0 +1,916 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Diet
8
+
9
+ &mdash; Documentation by YARD 0.9.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Diet";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (D)</a> &raquo;
40
+
41
+
42
+ <span class="title">Diet</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <iframe id="search_frame" src="class_list.html"></iframe>
63
+
64
+ <div id="content"><h1>Class: Diet
65
+
66
+
67
+
68
+ </h1>
69
+ <div class="box_info">
70
+
71
+ <dl>
72
+ <dt>Inherits:</dt>
73
+ <dd>
74
+ <span class="inheritName">Object</span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next">Diet</li>
80
+
81
+ </ul>
82
+ <a href="#" class="inheritanceTree">show all</a>
83
+
84
+ </dd>
85
+ </dl>
86
+
87
+
88
+
89
+
90
+
91
+
92
+ <dl>
93
+ <dt>Includes:</dt>
94
+ <dd>Comparable</dd>
95
+ </dl>
96
+
97
+
98
+
99
+
100
+
101
+
102
+ <dl>
103
+ <dt>Defined in:</dt>
104
+ <dd>lib/prct06/prct06menu.rb</dd>
105
+ </dl>
106
+
107
+ </div>
108
+
109
+ <div id="subclasses">
110
+ <h2>Direct Known Subclasses</h2>
111
+ <p class="children"><span class='object_link'><a href="Alimentos.html" title="Alimentos (class)">Alimentos</a></span>, <span class='object_link'><a href="Edad.html" title="Edad (class)">Edad</a></span></p>
112
+ </div>
113
+
114
+
115
+
116
+
117
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
118
+ <ul class="summary">
119
+
120
+ <li class="public ">
121
+ <span class="summary_signature">
122
+
123
+ <a href="#dip-instance_method" title="#dip (instance method)">#<strong>dip</strong> &#x21d2; Object </a>
124
+
125
+
126
+
127
+ </span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+ <span class="summary_desc"><div class='inline'>
141
+ <p>Ingesta Diaria.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#pchdt-instance_method" title="#pchdt (instance method)">#<strong>pchdt</strong> &#x21d2; Object </a>
151
+
152
+
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+ <span class="summary_desc"><div class='inline'>
168
+ <p>Porcentaje de hidratos de carbono.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#pfts-instance_method" title="#pfts (instance method)">#<strong>pfts</strong> &#x21d2; Object </a>
178
+
179
+
180
+
181
+ </span>
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'>
195
+ <p>Porcentaje de grasas.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#pprtn-instance_method" title="#pprtn (instance method)">#<strong>pprtn</strong> &#x21d2; Object </a>
205
+
206
+
207
+
208
+ </span>
209
+
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+ <span class="summary_desc"><div class='inline'>
222
+ <p>Porcentaje de proteínas.</p>
223
+ </div></span>
224
+
225
+ </li>
226
+
227
+
228
+ <li class="public ">
229
+ <span class="summary_signature">
230
+
231
+ <a href="#rcps-instance_method" title="#rcps (instance method)">#<strong>rcps</strong> &#x21d2; Object </a>
232
+
233
+
234
+
235
+ </span>
236
+
237
+
238
+
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'>
249
+ <p>Array de platos.</p>
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#ttl-instance_method" title="#ttl (instance method)">#<strong>ttl</strong> &#x21d2; Object </a>
259
+
260
+
261
+
262
+ </span>
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+ <span class="summary_desc"><div class='inline'>
276
+ <p>Título.</p>
277
+ </div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#vct-instance_method" title="#vct (instance method)">#<strong>vct</strong> &#x21d2; Object </a>
286
+
287
+
288
+
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'>
303
+ <p>Valor calorífico Total.</p>
304
+ </div></span>
305
+
306
+ </li>
307
+
308
+
309
+ </ul>
310
+
311
+
312
+
313
+
314
+
315
+ <h2>
316
+ Instance Method Summary
317
+ <small><a href="#" class="summary_toggle">collapse</a></small>
318
+ </h2>
319
+
320
+ <ul class="summary">
321
+
322
+ <li class="public ">
323
+ <span class="summary_signature">
324
+
325
+ <a href="#%3C%3D%3E-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(otra_dieta) &#x21d2; Object </a>
326
+
327
+
328
+
329
+ </span>
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+ <span class="summary_desc"><div class='inline'></div></span>
340
+
341
+ </li>
342
+
343
+
344
+ <li class="public ">
345
+ <span class="summary_signature">
346
+
347
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; Diet </a>
348
+
349
+
350
+
351
+ </span>
352
+
353
+
354
+ <span class="note title constructor">constructor</span>
355
+
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+ <span class="summary_desc"><div class='inline'>
364
+ <p>A new instance of Diet.</p>
365
+ </div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#new_recipe-instance_method" title="#new_recipe (instance method)">#<strong>new_recipe</strong>(dstn, ptn, dig) &#x21d2; Object </a>
374
+
375
+
376
+
377
+ </span>
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+ <span class="summary_desc"><div class='inline'>
388
+ <p>Con este método añadimos en el array un nuevo plato siguiendo el formato
389
+ predefinido.</p>
390
+ </div></span>
391
+
392
+ </li>
393
+
394
+
395
+ <li class="public ">
396
+ <span class="summary_signature">
397
+
398
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
399
+
400
+
401
+
402
+ </span>
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+ <span class="summary_desc"><div class='inline'></div></span>
413
+
414
+ </li>
415
+
416
+
417
+ </ul>
418
+
419
+
420
+
421
+ <div id="constructor_details" class="method_details_list">
422
+ <h2>Constructor Details</h2>
423
+
424
+ <div class="method_details first">
425
+ <h3 class="signature first" id="initialize-instance_method">
426
+
427
+ #<strong>initialize</strong>(ttl, dip, vct, pprtn, pfts, pchdt) &#x21d2; <tt><span class='object_link'><a href="" title="Diet (class)">Diet</a></span></tt>
428
+
429
+
430
+
431
+
432
+
433
+ </h3><div class="docstring">
434
+ <div class="discussion">
435
+
436
+ <p>Returns a new instance of Diet</p>
437
+
438
+
439
+ </div>
440
+ </div>
441
+ <div class="tags">
442
+
443
+
444
+ </div><table class="source_code">
445
+ <tr>
446
+ <td>
447
+ <pre class="lines">
448
+
449
+
450
+ 13
451
+ 14
452
+ 15
453
+ 16
454
+ 17
455
+ 18
456
+ 19
457
+ 20
458
+ 21</pre>
459
+ </td>
460
+ <td>
461
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 13</span>
462
+
463
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_ttl'>ttl</span><span class='comma'>,</span><span class='id identifier rubyid_dip'>dip</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_pprtn'>pprtn</span><span class='comma'>,</span><span class='id identifier rubyid_pfts'>pfts</span><span class='comma'>,</span><span class='id identifier rubyid_pchdt'>pchdt</span><span class='rparen'>)</span>
464
+ <span class='ivar'>@ttl</span> <span class='op'>=</span> <span class='id identifier rubyid_ttl'>ttl</span> <span class='comment'>#Título
465
+ </span> <span class='ivar'>@dip</span> <span class='op'>=</span> <span class='id identifier rubyid_dip'>dip</span> <span class='comment'>#Ingesta Diaria
466
+ </span> <span class='ivar'>@vct</span> <span class='op'>=</span> <span class='id identifier rubyid_vct'>vct</span> <span class='comment'>#Valor calorífico Total
467
+ </span> <span class='ivar'>@rcps</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='comment'>#Array de platos
468
+ </span> <span class='ivar'>@pprtn</span> <span class='op'>=</span> <span class='id identifier rubyid_pprtn'>pprtn</span> <span class='comment'>#Porcentaje de proteínas
469
+ </span> <span class='ivar'>@pfts</span> <span class='op'>=</span> <span class='id identifier rubyid_pfts'>pfts</span> <span class='comment'>#Porcentaje de grasas
470
+ </span> <span class='ivar'>@pchdt</span> <span class='op'>=</span> <span class='id identifier rubyid_pchdt'>pchdt</span> <span class='comment'>#Porcentaje de hidratos de carbono
471
+ </span><span class='kw'>end</span></pre>
472
+ </td>
473
+ </tr>
474
+ </table>
475
+ </div>
476
+
477
+ </div>
478
+
479
+ <div id="instance_attr_details" class="attr_details">
480
+ <h2>Instance Attribute Details</h2>
481
+
482
+
483
+ <span id="dip=-instance_method"></span>
484
+ <div class="method_details first">
485
+ <h3 class="signature first" id="dip-instance_method">
486
+
487
+ #<strong>dip</strong> &#x21d2; <tt>Object</tt>
488
+
489
+
490
+
491
+
492
+
493
+ </h3><div class="docstring">
494
+ <div class="discussion">
495
+
496
+ <p>Ingesta Diaria</p>
497
+
498
+
499
+ </div>
500
+ </div>
501
+ <div class="tags">
502
+
503
+
504
+ </div><table class="source_code">
505
+ <tr>
506
+ <td>
507
+ <pre class="lines">
508
+
509
+
510
+ 7
511
+ 8
512
+ 9</pre>
513
+ </td>
514
+ <td>
515
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 7</span>
516
+
517
+ <span class='kw'>def</span> <span class='id identifier rubyid_dip'>dip</span>
518
+ <span class='ivar'>@dip</span>
519
+ <span class='kw'>end</span></pre>
520
+ </td>
521
+ </tr>
522
+ </table>
523
+ </div>
524
+
525
+
526
+ <span id="pchdt=-instance_method"></span>
527
+ <div class="method_details ">
528
+ <h3 class="signature " id="pchdt-instance_method">
529
+
530
+ #<strong>pchdt</strong> &#x21d2; <tt>Object</tt>
531
+
532
+
533
+
534
+
535
+
536
+ </h3><div class="docstring">
537
+ <div class="discussion">
538
+
539
+ <p>Porcentaje de hidratos de carbono</p>
540
+
541
+
542
+ </div>
543
+ </div>
544
+ <div class="tags">
545
+
546
+
547
+ </div><table class="source_code">
548
+ <tr>
549
+ <td>
550
+ <pre class="lines">
551
+
552
+
553
+ 12
554
+ 13
555
+ 14</pre>
556
+ </td>
557
+ <td>
558
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 12</span>
559
+
560
+ <span class='kw'>def</span> <span class='id identifier rubyid_pchdt'>pchdt</span>
561
+ <span class='ivar'>@pchdt</span>
562
+ <span class='kw'>end</span></pre>
563
+ </td>
564
+ </tr>
565
+ </table>
566
+ </div>
567
+
568
+
569
+ <span id="pfts=-instance_method"></span>
570
+ <div class="method_details ">
571
+ <h3 class="signature " id="pfts-instance_method">
572
+
573
+ #<strong>pfts</strong> &#x21d2; <tt>Object</tt>
574
+
575
+
576
+
577
+
578
+
579
+ </h3><div class="docstring">
580
+ <div class="discussion">
581
+
582
+ <p>Porcentaje de grasas</p>
583
+
584
+
585
+ </div>
586
+ </div>
587
+ <div class="tags">
588
+
589
+
590
+ </div><table class="source_code">
591
+ <tr>
592
+ <td>
593
+ <pre class="lines">
594
+
595
+
596
+ 11
597
+ 12
598
+ 13</pre>
599
+ </td>
600
+ <td>
601
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 11</span>
602
+
603
+ <span class='kw'>def</span> <span class='id identifier rubyid_pfts'>pfts</span>
604
+ <span class='ivar'>@pfts</span>
605
+ <span class='kw'>end</span></pre>
606
+ </td>
607
+ </tr>
608
+ </table>
609
+ </div>
610
+
611
+
612
+ <span id="pprtn=-instance_method"></span>
613
+ <div class="method_details ">
614
+ <h3 class="signature " id="pprtn-instance_method">
615
+
616
+ #<strong>pprtn</strong> &#x21d2; <tt>Object</tt>
617
+
618
+
619
+
620
+
621
+
622
+ </h3><div class="docstring">
623
+ <div class="discussion">
624
+
625
+ <p>Porcentaje de proteínas</p>
626
+
627
+
628
+ </div>
629
+ </div>
630
+ <div class="tags">
631
+
632
+
633
+ </div><table class="source_code">
634
+ <tr>
635
+ <td>
636
+ <pre class="lines">
637
+
638
+
639
+ 10
640
+ 11
641
+ 12</pre>
642
+ </td>
643
+ <td>
644
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 10</span>
645
+
646
+ <span class='kw'>def</span> <span class='id identifier rubyid_pprtn'>pprtn</span>
647
+ <span class='ivar'>@pprtn</span>
648
+ <span class='kw'>end</span></pre>
649
+ </td>
650
+ </tr>
651
+ </table>
652
+ </div>
653
+
654
+
655
+ <span id="rcps=-instance_method"></span>
656
+ <div class="method_details ">
657
+ <h3 class="signature " id="rcps-instance_method">
658
+
659
+ #<strong>rcps</strong> &#x21d2; <tt>Object</tt>
660
+
661
+
662
+
663
+
664
+
665
+ </h3><div class="docstring">
666
+ <div class="discussion">
667
+
668
+ <p>Array de platos</p>
669
+
670
+
671
+ </div>
672
+ </div>
673
+ <div class="tags">
674
+
675
+
676
+ </div><table class="source_code">
677
+ <tr>
678
+ <td>
679
+ <pre class="lines">
680
+
681
+
682
+ 9
683
+ 10
684
+ 11</pre>
685
+ </td>
686
+ <td>
687
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 9</span>
688
+
689
+ <span class='kw'>def</span> <span class='id identifier rubyid_rcps'>rcps</span>
690
+ <span class='ivar'>@rcps</span>
691
+ <span class='kw'>end</span></pre>
692
+ </td>
693
+ </tr>
694
+ </table>
695
+ </div>
696
+
697
+
698
+ <span id="ttl=-instance_method"></span>
699
+ <div class="method_details ">
700
+ <h3 class="signature " id="ttl-instance_method">
701
+
702
+ #<strong>ttl</strong> &#x21d2; <tt>Object</tt>
703
+
704
+
705
+
706
+
707
+
708
+ </h3><div class="docstring">
709
+ <div class="discussion">
710
+
711
+ <p>Título</p>
712
+
713
+
714
+ </div>
715
+ </div>
716
+ <div class="tags">
717
+
718
+
719
+ </div><table class="source_code">
720
+ <tr>
721
+ <td>
722
+ <pre class="lines">
723
+
724
+
725
+ 6
726
+ 7
727
+ 8</pre>
728
+ </td>
729
+ <td>
730
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 6</span>
731
+
732
+ <span class='kw'>def</span> <span class='id identifier rubyid_ttl'>ttl</span>
733
+ <span class='ivar'>@ttl</span>
734
+ <span class='kw'>end</span></pre>
735
+ </td>
736
+ </tr>
737
+ </table>
738
+ </div>
739
+
740
+
741
+ <span id="vct=-instance_method"></span>
742
+ <div class="method_details ">
743
+ <h3 class="signature " id="vct-instance_method">
744
+
745
+ #<strong>vct</strong> &#x21d2; <tt>Object</tt>
746
+
747
+
748
+
749
+
750
+
751
+ </h3><div class="docstring">
752
+ <div class="discussion">
753
+
754
+ <p>Valor calorífico Total</p>
755
+
756
+
757
+ </div>
758
+ </div>
759
+ <div class="tags">
760
+
761
+
762
+ </div><table class="source_code">
763
+ <tr>
764
+ <td>
765
+ <pre class="lines">
766
+
767
+
768
+ 8
769
+ 9
770
+ 10</pre>
771
+ </td>
772
+ <td>
773
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 8</span>
774
+
775
+ <span class='kw'>def</span> <span class='id identifier rubyid_vct'>vct</span>
776
+ <span class='ivar'>@vct</span>
777
+ <span class='kw'>end</span></pre>
778
+ </td>
779
+ </tr>
780
+ </table>
781
+ </div>
782
+
783
+ </div>
784
+
785
+
786
+ <div id="instance_method_details" class="method_details_list">
787
+ <h2>Instance Method Details</h2>
788
+
789
+
790
+ <div class="method_details first">
791
+ <h3 class="signature first" id="<=>-instance_method">
792
+
793
+ #<strong>&lt;=&gt;</strong>(otra_dieta) &#x21d2; <tt>Object</tt>
794
+
795
+
796
+
797
+
798
+
799
+ </h3><table class="source_code">
800
+ <tr>
801
+ <td>
802
+ <pre class="lines">
803
+
804
+
805
+ 29
806
+ 30
807
+ 31</pre>
808
+ </td>
809
+ <td>
810
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 29</span>
811
+
812
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_otra_dieta'>otra_dieta</span>
813
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_vct'>vct</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_otra_dieta'>otra_dieta</span><span class='period'>.</span><span class='id identifier rubyid_vct'>vct</span>
814
+ <span class='kw'>end</span></pre>
815
+ </td>
816
+ </tr>
817
+ </table>
818
+ </div>
819
+
820
+ <div class="method_details ">
821
+ <h3 class="signature " id="new_recipe-instance_method">
822
+
823
+ #<strong>new_recipe</strong>(dstn, ptn, dig) &#x21d2; <tt>Object</tt>
824
+
825
+
826
+
827
+
828
+
829
+ </h3><div class="docstring">
830
+ <div class="discussion">
831
+
832
+ <p>Con este método añadimos en el array un nuevo plato siguiendo el formato
833
+ predefinido.</p>
834
+
835
+
836
+ </div>
837
+ </div>
838
+ <div class="tags">
839
+
840
+
841
+ </div><table class="source_code">
842
+ <tr>
843
+ <td>
844
+ <pre class="lines">
845
+
846
+
847
+ 24
848
+ 25
849
+ 26
850
+ 27</pre>
851
+ </td>
852
+ <td>
853
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 24</span>
854
+
855
+ <span class='kw'>def</span> <span class='id identifier rubyid_new_recipe'>new_recipe</span><span class='lparen'>(</span><span class='id identifier rubyid_dstn'>dstn</span><span class='comma'>,</span><span class='id identifier rubyid_ptn'>ptn</span><span class='comma'>,</span><span class='id identifier rubyid_dig'>dig</span><span class='rparen'>)</span>
856
+ <span class='id identifier rubyid_tmp'>tmp</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>- </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dstn'>dstn</span><span class='embexpr_end'>}</span><span class='tstring_content'>, </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_ptn'>ptn</span><span class='embexpr_end'>}</span><span class='tstring_content'> unidades, </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_dig'>dig</span><span class='embexpr_end'>}</span><span class='tstring_content'> g\n</span><span class='tstring_end'>&quot;</span></span>
857
+ <span class='id identifier rubyid_rcps'>rcps</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_tmp'>tmp</span>
858
+ <span class='kw'>end</span></pre>
859
+ </td>
860
+ </tr>
861
+ </table>
862
+ </div>
863
+
864
+ <div class="method_details ">
865
+ <h3 class="signature " id="to_s-instance_method">
866
+
867
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
868
+
869
+
870
+
871
+
872
+
873
+ </h3><table class="source_code">
874
+ <tr>
875
+ <td>
876
+ <pre class="lines">
877
+
878
+
879
+ 33
880
+ 34
881
+ 35
882
+ 36
883
+ 37
884
+ 38
885
+ 39
886
+ 40</pre>
887
+ </td>
888
+ <td>
889
+ <pre class="code"><span class="info file"># File 'lib/prct06/prct06menu.rb', line 33</span>
890
+
891
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
892
+ <span class='id identifier rubyid_mostrar'>mostrar</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_end'>&quot;</span></span>
893
+ <span class='id identifier rubyid_mostrar'>mostrar</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>\n\n</span><span class='embexpr_beg'>#{</span><span class='ivar'>@ttl</span><span class='embexpr_end'>}</span><span class='tstring_content'> (</span><span class='embexpr_beg'>#{</span><span class='ivar'>@dip</span><span class='embexpr_end'>}</span><span class='tstring_content'> %)\n</span><span class='tstring_end'>&quot;</span></span>
894
+ <span class='kw'>for</span> <span class='id identifier rubyid_i'>i</span> <span class='kw'>in</span> <span class='int'>0</span><span class='op'>..</span><span class='lparen'>(</span><span class='ivar'>@rcps</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='op'>-</span><span class='int'>1</span><span class='rparen'>)</span>
895
+ <span class='id identifier rubyid_mostrar'>mostrar</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>- </span><span class='embexpr_beg'>#{</span><span class='ivar'>@rcps</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n</span><span class='tstring_end'>&quot;</span></span>
896
+ <span class='kw'>end</span>
897
+ <span class='id identifier rubyid_mostrar'>mostrar</span> <span class='op'>&lt;&lt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>V.C.T | % </span><span class='embexpr_beg'>#{</span><span class='ivar'>@vct</span><span class='embexpr_end'>}</span><span class='tstring_content'> kcal | </span><span class='embexpr_beg'>#{</span><span class='ivar'>@pprtn</span><span class='embexpr_end'>}</span><span class='tstring_content'>% - </span><span class='embexpr_beg'>#{</span><span class='ivar'>@pfts</span><span class='embexpr_end'>}</span><span class='tstring_content'>% - </span><span class='embexpr_beg'>#{</span><span class='ivar'>@pchdt</span><span class='embexpr_end'>}</span><span class='tstring_content'>%\n\n</span><span class='tstring_end'>&quot;</span></span>
898
+ <span class='kw'>end</span></pre>
899
+ </td>
900
+ </tr>
901
+ </table>
902
+ </div>
903
+
904
+ </div>
905
+
906
+ </div>
907
+
908
+ <div id="footer">
909
+ Generated on Tue Nov 22 18:46:04 2016 by
910
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
911
+ 0.9.5 (ruby-2.3.0).
912
+ </div>
913
+
914
+ </div>
915
+ </body>
916
+ </html>