prct11_edu 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 58374cf7db4f719503b60621fe1d1bde9bbe865c
4
+ data.tar.gz: 10a8a9fc6685523689fd101c86a8b83517cebd03
5
+ SHA512:
6
+ metadata.gz: 47a60dacdde73f36ffa4ec97c38d5a5ae1b325b657bbc4b5c386fe1103055cf330a08e5f9021da4b94b90be33c93169bd57354b31fcd88f358b5e31f02c289ec
7
+ data.tar.gz: 36cb95820b38034ae5b700f5fd558619c207aa37c05f15fe63f6b489c9ea684ea621d81d97f127c84bb5e428e550d533be4b2f9ea66bbf0854944d7bedd69790
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.0.0
5
+ before_install: gem install bundler -v 1.13.6
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at alu0100892260@ull.edu.es. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in prct06.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016 Sergio García
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Prct06
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/prct06`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'prct06'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install prct06
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/prct06. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
+
37
+
38
+ ## License
39
+
40
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
41
+
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ desc "Ejecutar las espectativas de la clase Receta"
9
+ task :spec do
10
+ sh "rspec -I. spec/prct06_spec.rb"
11
+ end
12
+
13
+ desc "Ejecutar con documentacion"
14
+ task :doc do
15
+ sh "rspec -I. spec/prct06_spec.rb --format documentation"
16
+ end
17
+
18
+ desc "Ejecutar clase"
19
+ task :simple do
20
+ sh "ruby lib/prct06/prct06.rb"
21
+ end
data/Rakefile~ ADDED
@@ -0,0 +1,21 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
7
+
8
+ desc "Ejecutar las espectativas de la clase Receta"
9
+ task :spec do
10
+ sh "rspec -I. spec/prct06_spec.rb"
11
+ end
12
+
13
+ desc "Ejecutar con documentacion"
14
+ task :doc do
15
+ sh "rspec -I. spec/prct06_spec.rb --format documentation"
16
+ end
17
+
18
+ desc "Ejecutar clase"
19
+ task :simple do
20
+ sh "ruby lib/prct06.rb"
21
+ end
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "prct06"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,1091 @@
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: Dieta
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 = "Dieta";
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">Dieta</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: Dieta
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">Dieta</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/dieta.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="DietaEdad.html" title="DietaEdad (class)">DietaEdad</a></span>, <span class='object_link'><a href="DietaTipo.html" title="DietaTipo (class)">DietaTipo</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="#conjplatos-instance_method" title="#conjplatos (instance method)">#<strong>conjplatos</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>reader y writter para cada variable.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#descripcion-instance_method" title="#descripcion (instance method)">#<strong>descripcion</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>reader y writter para cada variable.</p>
169
+ </div></span>
170
+
171
+ </li>
172
+
173
+
174
+ <li class="public ">
175
+ <span class="summary_signature">
176
+
177
+ <a href="#ingengr-instance_method" title="#ingengr (instance method)">#<strong>ingengr</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>reader y writter para cada variable.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ <li class="public ">
202
+ <span class="summary_signature">
203
+
204
+ <a href="#porcdiario-instance_method" title="#porcdiario (instance method)">#<strong>porcdiario</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>reader y writter para cada variable.</p>
223
+ </div></span>
224
+
225
+ </li>
226
+
227
+
228
+ <li class="public ">
229
+ <span class="summary_signature">
230
+
231
+ <a href="#porcgrasas-instance_method" title="#porcgrasas (instance method)">#<strong>porcgrasas</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>reader y writter para cada variable.</p>
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#porchidratos-instance_method" title="#porchidratos (instance method)">#<strong>porchidratos</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>reader y writter para cada variable.</p>
277
+ </div></span>
278
+
279
+ </li>
280
+
281
+
282
+ <li class="public ">
283
+ <span class="summary_signature">
284
+
285
+ <a href="#porciones-instance_method" title="#porciones (instance method)">#<strong>porciones</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>reader y writter para cada variable.</p>
304
+ </div></span>
305
+
306
+ </li>
307
+
308
+
309
+ <li class="public ">
310
+ <span class="summary_signature">
311
+
312
+ <a href="#porcproteinas-instance_method" title="#porcproteinas (instance method)">#<strong>porcproteinas</strong> &#x21d2; Object </a>
313
+
314
+
315
+
316
+ </span>
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+ <span class="summary_desc"><div class='inline'>
330
+ <p>reader y writter para cada variable.</p>
331
+ </div></span>
332
+
333
+ </li>
334
+
335
+
336
+ <li class="public ">
337
+ <span class="summary_signature">
338
+
339
+ <a href="#titulo-instance_method" title="#titulo (instance method)">#<strong>titulo</strong> &#x21d2; Object </a>
340
+
341
+
342
+
343
+ </span>
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+
354
+
355
+
356
+ <span class="summary_desc"><div class='inline'>
357
+ <p>reader y writter para cada variable.</p>
358
+ </div></span>
359
+
360
+ </li>
361
+
362
+
363
+ <li class="public ">
364
+ <span class="summary_signature">
365
+
366
+ <a href="#vct-instance_method" title="#vct (instance method)">#<strong>vct</strong> &#x21d2; Object </a>
367
+
368
+
369
+
370
+ </span>
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <span class="summary_desc"><div class='inline'>
384
+ <p>reader y writter para cada variable.</p>
385
+ </div></span>
386
+
387
+ </li>
388
+
389
+
390
+ </ul>
391
+
392
+
393
+
394
+
395
+
396
+ <h2>
397
+ Instance Method Summary
398
+ <small><a href="#" class="summary_toggle">collapse</a></small>
399
+ </h2>
400
+
401
+ <ul class="summary">
402
+
403
+ <li class="public ">
404
+ <span class="summary_signature">
405
+
406
+ <a href="#%3C%3D%3E-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(other) &#x21d2; Object </a>
407
+
408
+
409
+
410
+ </span>
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+ <span class="summary_desc"><div class='inline'>
421
+ <p>Definición del &lt;=&gt; para Comparable.</p>
422
+ </div></span>
423
+
424
+ </li>
425
+
426
+
427
+ <li class="public ">
428
+ <span class="summary_signature">
429
+
430
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos) &#x21d2; Dieta </a>
431
+
432
+
433
+
434
+ </span>
435
+
436
+
437
+ <span class="note title constructor">constructor</span>
438
+
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+ <span class="summary_desc"><div class='inline'>
447
+ <p>A new instance of Dieta.</p>
448
+ </div></span>
449
+
450
+ </li>
451
+
452
+
453
+ <li class="public ">
454
+ <span class="summary_signature">
455
+
456
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
457
+
458
+
459
+
460
+ </span>
461
+
462
+
463
+
464
+
465
+
466
+
467
+
468
+
469
+
470
+ <span class="summary_desc"><div class='inline'>
471
+ <p>Definición del método to_s para mostrar el menú por pantalla.</p>
472
+ </div></span>
473
+
474
+ </li>
475
+
476
+
477
+ </ul>
478
+
479
+
480
+
481
+ <div id="constructor_details" class="method_details_list">
482
+ <h2>Constructor Details</h2>
483
+
484
+ <div class="method_details first">
485
+ <h3 class="signature first" id="initialize-instance_method">
486
+
487
+ #<strong>initialize</strong>(titulo, porcdiario, descripcion, porciones, ingengr, conjplatos, vct, porcproteinas, porcgrasas, porchidratos) &#x21d2; <tt><span class='object_link'><a href="" title="Dieta (class)">Dieta</a></span></tt>
488
+
489
+
490
+
491
+
492
+
493
+ </h3><div class="docstring">
494
+ <div class="discussion">
495
+
496
+ <p>Returns a new instance of Dieta</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
+ 12
511
+ 13
512
+ 14
513
+ 15
514
+ 16
515
+ 17
516
+ 18
517
+ 19
518
+ 20
519
+ 21
520
+ 22
521
+ 23</pre>
522
+ </td>
523
+ <td>
524
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 12</span>
525
+
526
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcdiario'>porcdiario</span><span class='comma'>,</span> <span class='id identifier rubyid_descripcion'>descripcion</span><span class='comma'>,</span> <span class='id identifier rubyid_porciones'>porciones</span><span class='comma'>,</span> <span class='id identifier rubyid_ingengr'>ingengr</span><span class='comma'>,</span> <span class='id identifier rubyid_conjplatos'>conjplatos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_porcproteinas'>porcproteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_porcgrasas'>porcgrasas</span><span class='comma'>,</span> <span class='id identifier rubyid_porchidratos'>porchidratos</span><span class='rparen'>)</span>
527
+ <span class='ivar'>@titulo</span> <span class='op'>=</span> <span class='id identifier rubyid_titulo'>titulo</span>
528
+ <span class='ivar'>@porcdiario</span> <span class='op'>=</span> <span class='id identifier rubyid_porcdiario'>porcdiario</span>
529
+ <span class='ivar'>@descripcion</span> <span class='op'>=</span> <span class='id identifier rubyid_descripcion'>descripcion</span>
530
+ <span class='ivar'>@porciones</span> <span class='op'>=</span> <span class='id identifier rubyid_porciones'>porciones</span>
531
+ <span class='ivar'>@ingengr</span> <span class='op'>=</span> <span class='id identifier rubyid_ingengr'>ingengr</span>
532
+ <span class='ivar'>@conjplatos</span> <span class='op'>=</span> <span class='id identifier rubyid_conjplatos'>conjplatos</span>
533
+ <span class='ivar'>@vct</span> <span class='op'>=</span> <span class='id identifier rubyid_vct'>vct</span>
534
+ <span class='ivar'>@porcproteinas</span> <span class='op'>=</span> <span class='id identifier rubyid_porcproteinas'>porcproteinas</span>
535
+ <span class='ivar'>@porcgrasas</span> <span class='op'>=</span> <span class='id identifier rubyid_porcgrasas'>porcgrasas</span>
536
+ <span class='ivar'>@porchidratos</span> <span class='op'>=</span> <span class='id identifier rubyid_porchidratos'>porchidratos</span>
537
+ <span class='kw'>end</span></pre>
538
+ </td>
539
+ </tr>
540
+ </table>
541
+ </div>
542
+
543
+ </div>
544
+
545
+ <div id="instance_attr_details" class="attr_details">
546
+ <h2>Instance Attribute Details</h2>
547
+
548
+
549
+ <span id="conjplatos=-instance_method"></span>
550
+ <div class="method_details first">
551
+ <h3 class="signature first" id="conjplatos-instance_method">
552
+
553
+ #<strong>conjplatos</strong> &#x21d2; <tt>Object</tt>
554
+
555
+
556
+
557
+
558
+
559
+ </h3><div class="docstring">
560
+ <div class="discussion">
561
+
562
+ <p>reader y writter para cada variable</p>
563
+
564
+
565
+ </div>
566
+ </div>
567
+ <div class="tags">
568
+
569
+
570
+ </div><table class="source_code">
571
+ <tr>
572
+ <td>
573
+ <pre class="lines">
574
+
575
+
576
+ 7
577
+ 8
578
+ 9</pre>
579
+ </td>
580
+ <td>
581
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
582
+
583
+ <span class='kw'>def</span> <span class='id identifier rubyid_conjplatos'>conjplatos</span>
584
+ <span class='ivar'>@conjplatos</span>
585
+ <span class='kw'>end</span></pre>
586
+ </td>
587
+ </tr>
588
+ </table>
589
+ </div>
590
+
591
+
592
+ <span id="descripcion=-instance_method"></span>
593
+ <div class="method_details ">
594
+ <h3 class="signature " id="descripcion-instance_method">
595
+
596
+ #<strong>descripcion</strong> &#x21d2; <tt>Object</tt>
597
+
598
+
599
+
600
+
601
+
602
+ </h3><div class="docstring">
603
+ <div class="discussion">
604
+
605
+ <p>reader y writter para cada variable</p>
606
+
607
+
608
+ </div>
609
+ </div>
610
+ <div class="tags">
611
+
612
+
613
+ </div><table class="source_code">
614
+ <tr>
615
+ <td>
616
+ <pre class="lines">
617
+
618
+
619
+ 7
620
+ 8
621
+ 9</pre>
622
+ </td>
623
+ <td>
624
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
625
+
626
+ <span class='kw'>def</span> <span class='id identifier rubyid_descripcion'>descripcion</span>
627
+ <span class='ivar'>@descripcion</span>
628
+ <span class='kw'>end</span></pre>
629
+ </td>
630
+ </tr>
631
+ </table>
632
+ </div>
633
+
634
+
635
+ <span id="ingengr=-instance_method"></span>
636
+ <div class="method_details ">
637
+ <h3 class="signature " id="ingengr-instance_method">
638
+
639
+ #<strong>ingengr</strong> &#x21d2; <tt>Object</tt>
640
+
641
+
642
+
643
+
644
+
645
+ </h3><div class="docstring">
646
+ <div class="discussion">
647
+
648
+ <p>reader y writter para cada variable</p>
649
+
650
+
651
+ </div>
652
+ </div>
653
+ <div class="tags">
654
+
655
+
656
+ </div><table class="source_code">
657
+ <tr>
658
+ <td>
659
+ <pre class="lines">
660
+
661
+
662
+ 7
663
+ 8
664
+ 9</pre>
665
+ </td>
666
+ <td>
667
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
668
+
669
+ <span class='kw'>def</span> <span class='id identifier rubyid_ingengr'>ingengr</span>
670
+ <span class='ivar'>@ingengr</span>
671
+ <span class='kw'>end</span></pre>
672
+ </td>
673
+ </tr>
674
+ </table>
675
+ </div>
676
+
677
+
678
+ <span id="porcdiario=-instance_method"></span>
679
+ <div class="method_details ">
680
+ <h3 class="signature " id="porcdiario-instance_method">
681
+
682
+ #<strong>porcdiario</strong> &#x21d2; <tt>Object</tt>
683
+
684
+
685
+
686
+
687
+
688
+ </h3><div class="docstring">
689
+ <div class="discussion">
690
+
691
+ <p>reader y writter para cada variable</p>
692
+
693
+
694
+ </div>
695
+ </div>
696
+ <div class="tags">
697
+
698
+
699
+ </div><table class="source_code">
700
+ <tr>
701
+ <td>
702
+ <pre class="lines">
703
+
704
+
705
+ 7
706
+ 8
707
+ 9</pre>
708
+ </td>
709
+ <td>
710
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
711
+
712
+ <span class='kw'>def</span> <span class='id identifier rubyid_porcdiario'>porcdiario</span>
713
+ <span class='ivar'>@porcdiario</span>
714
+ <span class='kw'>end</span></pre>
715
+ </td>
716
+ </tr>
717
+ </table>
718
+ </div>
719
+
720
+
721
+ <span id="porcgrasas=-instance_method"></span>
722
+ <div class="method_details ">
723
+ <h3 class="signature " id="porcgrasas-instance_method">
724
+
725
+ #<strong>porcgrasas</strong> &#x21d2; <tt>Object</tt>
726
+
727
+
728
+
729
+
730
+
731
+ </h3><div class="docstring">
732
+ <div class="discussion">
733
+
734
+ <p>reader y writter para cada variable</p>
735
+
736
+
737
+ </div>
738
+ </div>
739
+ <div class="tags">
740
+
741
+
742
+ </div><table class="source_code">
743
+ <tr>
744
+ <td>
745
+ <pre class="lines">
746
+
747
+
748
+ 7
749
+ 8
750
+ 9</pre>
751
+ </td>
752
+ <td>
753
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
754
+
755
+ <span class='kw'>def</span> <span class='id identifier rubyid_porcgrasas'>porcgrasas</span>
756
+ <span class='ivar'>@porcgrasas</span>
757
+ <span class='kw'>end</span></pre>
758
+ </td>
759
+ </tr>
760
+ </table>
761
+ </div>
762
+
763
+
764
+ <span id="porchidratos=-instance_method"></span>
765
+ <div class="method_details ">
766
+ <h3 class="signature " id="porchidratos-instance_method">
767
+
768
+ #<strong>porchidratos</strong> &#x21d2; <tt>Object</tt>
769
+
770
+
771
+
772
+
773
+
774
+ </h3><div class="docstring">
775
+ <div class="discussion">
776
+
777
+ <p>reader y writter para cada variable</p>
778
+
779
+
780
+ </div>
781
+ </div>
782
+ <div class="tags">
783
+
784
+
785
+ </div><table class="source_code">
786
+ <tr>
787
+ <td>
788
+ <pre class="lines">
789
+
790
+
791
+ 7
792
+ 8
793
+ 9</pre>
794
+ </td>
795
+ <td>
796
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
797
+
798
+ <span class='kw'>def</span> <span class='id identifier rubyid_porchidratos'>porchidratos</span>
799
+ <span class='ivar'>@porchidratos</span>
800
+ <span class='kw'>end</span></pre>
801
+ </td>
802
+ </tr>
803
+ </table>
804
+ </div>
805
+
806
+
807
+ <span id="porciones=-instance_method"></span>
808
+ <div class="method_details ">
809
+ <h3 class="signature " id="porciones-instance_method">
810
+
811
+ #<strong>porciones</strong> &#x21d2; <tt>Object</tt>
812
+
813
+
814
+
815
+
816
+
817
+ </h3><div class="docstring">
818
+ <div class="discussion">
819
+
820
+ <p>reader y writter para cada variable</p>
821
+
822
+
823
+ </div>
824
+ </div>
825
+ <div class="tags">
826
+
827
+
828
+ </div><table class="source_code">
829
+ <tr>
830
+ <td>
831
+ <pre class="lines">
832
+
833
+
834
+ 7
835
+ 8
836
+ 9</pre>
837
+ </td>
838
+ <td>
839
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
840
+
841
+ <span class='kw'>def</span> <span class='id identifier rubyid_porciones'>porciones</span>
842
+ <span class='ivar'>@porciones</span>
843
+ <span class='kw'>end</span></pre>
844
+ </td>
845
+ </tr>
846
+ </table>
847
+ </div>
848
+
849
+
850
+ <span id="porcproteinas=-instance_method"></span>
851
+ <div class="method_details ">
852
+ <h3 class="signature " id="porcproteinas-instance_method">
853
+
854
+ #<strong>porcproteinas</strong> &#x21d2; <tt>Object</tt>
855
+
856
+
857
+
858
+
859
+
860
+ </h3><div class="docstring">
861
+ <div class="discussion">
862
+
863
+ <p>reader y writter para cada variable</p>
864
+
865
+
866
+ </div>
867
+ </div>
868
+ <div class="tags">
869
+
870
+
871
+ </div><table class="source_code">
872
+ <tr>
873
+ <td>
874
+ <pre class="lines">
875
+
876
+
877
+ 7
878
+ 8
879
+ 9</pre>
880
+ </td>
881
+ <td>
882
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
883
+
884
+ <span class='kw'>def</span> <span class='id identifier rubyid_porcproteinas'>porcproteinas</span>
885
+ <span class='ivar'>@porcproteinas</span>
886
+ <span class='kw'>end</span></pre>
887
+ </td>
888
+ </tr>
889
+ </table>
890
+ </div>
891
+
892
+
893
+ <span id="titulo=-instance_method"></span>
894
+ <div class="method_details ">
895
+ <h3 class="signature " id="titulo-instance_method">
896
+
897
+ #<strong>titulo</strong> &#x21d2; <tt>Object</tt>
898
+
899
+
900
+
901
+
902
+
903
+ </h3><div class="docstring">
904
+ <div class="discussion">
905
+
906
+ <p>reader y writter para cada variable</p>
907
+
908
+
909
+ </div>
910
+ </div>
911
+ <div class="tags">
912
+
913
+
914
+ </div><table class="source_code">
915
+ <tr>
916
+ <td>
917
+ <pre class="lines">
918
+
919
+
920
+ 7
921
+ 8
922
+ 9</pre>
923
+ </td>
924
+ <td>
925
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
926
+
927
+ <span class='kw'>def</span> <span class='id identifier rubyid_titulo'>titulo</span>
928
+ <span class='ivar'>@titulo</span>
929
+ <span class='kw'>end</span></pre>
930
+ </td>
931
+ </tr>
932
+ </table>
933
+ </div>
934
+
935
+
936
+ <span id="vct=-instance_method"></span>
937
+ <div class="method_details ">
938
+ <h3 class="signature " id="vct-instance_method">
939
+
940
+ #<strong>vct</strong> &#x21d2; <tt>Object</tt>
941
+
942
+
943
+
944
+
945
+
946
+ </h3><div class="docstring">
947
+ <div class="discussion">
948
+
949
+ <p>reader y writter para cada variable</p>
950
+
951
+
952
+ </div>
953
+ </div>
954
+ <div class="tags">
955
+
956
+
957
+ </div><table class="source_code">
958
+ <tr>
959
+ <td>
960
+ <pre class="lines">
961
+
962
+
963
+ 7
964
+ 8
965
+ 9</pre>
966
+ </td>
967
+ <td>
968
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 7</span>
969
+
970
+ <span class='kw'>def</span> <span class='id identifier rubyid_vct'>vct</span>
971
+ <span class='ivar'>@vct</span>
972
+ <span class='kw'>end</span></pre>
973
+ </td>
974
+ </tr>
975
+ </table>
976
+ </div>
977
+
978
+ </div>
979
+
980
+
981
+ <div id="instance_method_details" class="method_details_list">
982
+ <h2>Instance Method Details</h2>
983
+
984
+
985
+ <div class="method_details first">
986
+ <h3 class="signature first" id="<=>-instance_method">
987
+
988
+ #<strong>&lt;=&gt;</strong>(other) &#x21d2; <tt>Object</tt>
989
+
990
+
991
+
992
+
993
+
994
+ </h3><div class="docstring">
995
+ <div class="discussion">
996
+
997
+ <p>Definición del &lt;=&gt; para Comparable</p>
998
+
999
+
1000
+ </div>
1001
+ </div>
1002
+ <div class="tags">
1003
+
1004
+
1005
+ </div><table class="source_code">
1006
+ <tr>
1007
+ <td>
1008
+ <pre class="lines">
1009
+
1010
+
1011
+ 34
1012
+ 35
1013
+ 36
1014
+ 37</pre>
1015
+ </td>
1016
+ <td>
1017
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 34</span>
1018
+
1019
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
1020
+ <span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_instance_of?'>instance_of?</span> <span class='const'>Dieta</span>
1021
+ <span class='id identifier rubyid_vct'>vct</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_vct'>vct</span>
1022
+ <span class='kw'>end</span></pre>
1023
+ </td>
1024
+ </tr>
1025
+ </table>
1026
+ </div>
1027
+
1028
+ <div class="method_details ">
1029
+ <h3 class="signature " id="to_s-instance_method">
1030
+
1031
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
1032
+
1033
+
1034
+
1035
+
1036
+
1037
+ </h3><div class="docstring">
1038
+ <div class="discussion">
1039
+
1040
+ <p>Definición del método to_s para mostrar el menú por pantalla</p>
1041
+
1042
+
1043
+ </div>
1044
+ </div>
1045
+ <div class="tags">
1046
+
1047
+
1048
+ </div><table class="source_code">
1049
+ <tr>
1050
+ <td>
1051
+ <pre class="lines">
1052
+
1053
+
1054
+ 25
1055
+ 26
1056
+ 27
1057
+ 28
1058
+ 29
1059
+ 30
1060
+ 31
1061
+ 32</pre>
1062
+ </td>
1063
+ <td>
1064
+ <pre class="code"><span class="info file"># File 'lib/prct06/dieta.rb', line 25</span>
1065
+
1066
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1067
+ <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>
1068
+ <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'>@titulo</span><span class='embexpr_end'>}</span><span class='tstring_content'> (</span><span class='embexpr_beg'>#{</span><span class='ivar'>@porcdiario</span><span class='embexpr_end'>}</span><span class='tstring_content'> %)\n</span><span class='tstring_end'>&quot;</span></span>
1069
+ <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'>@conjplatos</span><span class='op'>-</span><span class='int'>1</span><span class='rparen'>)</span>
1070
+ <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'>@descripcion</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'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@porciones</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'>, </span><span class='embexpr_beg'>#{</span><span class='ivar'>@ingengr</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>
1071
+ <span class='kw'>end</span>
1072
+ <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'>@porcproteinas</span><span class='embexpr_end'>}</span><span class='tstring_content'>% - </span><span class='embexpr_beg'>#{</span><span class='ivar'>@porcgrasas</span><span class='embexpr_end'>}</span><span class='tstring_content'>% - </span><span class='embexpr_beg'>#{</span><span class='ivar'>@porchidratos</span><span class='embexpr_end'>}</span><span class='tstring_content'>%\n</span><span class='tstring_end'>&quot;</span></span>
1073
+ <span class='kw'>end</span></pre>
1074
+ </td>
1075
+ </tr>
1076
+ </table>
1077
+ </div>
1078
+
1079
+ </div>
1080
+
1081
+ </div>
1082
+
1083
+ <div id="footer">
1084
+ Generated on Tue Nov 22 09:11:06 2016 by
1085
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1086
+ 0.9.5 (ruby-2.3.0).
1087
+ </div>
1088
+
1089
+ </div>
1090
+ </body>
1091
+ </html>