alu0100905885 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.travis.yml +12 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +8 -0
  6. data/LICENSE.txt +21 -0
  7. data/README.md +43 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/doc/Alimentos.html +513 -0
  12. data/doc/CODE_OF_CONDUCT_md.html +192 -0
  13. data/doc/Gemfile.html +98 -0
  14. data/doc/LICENSE_txt.html +114 -0
  15. data/doc/Listas.html +512 -0
  16. data/doc/Object.html +126 -0
  17. data/doc/Plato_.html +409 -0
  18. data/doc/Platos.html +389 -0
  19. data/doc/Prct6.html +108 -0
  20. data/doc/Prct6/Error.html +101 -0
  21. data/doc/README_md.html +169 -0
  22. data/doc/Rakefile.html +98 -0
  23. data/doc/bin/setup.html +98 -0
  24. data/doc/created.rid +16 -0
  25. data/doc/css/fonts.css +167 -0
  26. data/doc/css/rdoc.css +590 -0
  27. data/doc/fonts/Lato-Light.ttf +0 -0
  28. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  29. data/doc/fonts/Lato-Regular.ttf +0 -0
  30. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  31. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  32. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  33. data/doc/images/add.png +0 -0
  34. data/doc/images/arrow_up.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +114 -0
  59. data/doc/js/darkfish.js +161 -0
  60. data/doc/js/jquery.js +5 -0
  61. data/doc/js/navigation.js +142 -0
  62. data/doc/js/navigation.js.gz +0 -0
  63. data/doc/js/search.js +109 -0
  64. data/doc/js/search_index.js +1 -0
  65. data/doc/js/search_index.js.gz +0 -0
  66. data/doc/js/searcher.js +229 -0
  67. data/doc/js/searcher.js.gz +0 -0
  68. data/doc/prct6_gemspec.html +129 -0
  69. data/doc/table_of_contents.html +238 -0
  70. data/lib/prct6.rb +11 -0
  71. data/lib/prct6/listas.rb +68 -0
  72. data/lib/prct6/menu_dsl.rb +33 -0
  73. data/lib/prct6/plato_dsl.rb +29 -0
  74. data/lib/prct6/platos.rb +154 -0
  75. data/lib/prct6/prct6.rb +62 -0
  76. data/lib/prct6/version.rb +3 -0
  77. data/pkg/alu0100905885-0.1.0.gem +0 -0
  78. data/pkg/prct6-0.1.0.gem +0 -0
  79. data/prct6.gemspec +34 -0
  80. metadata +208 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 502dc7c5a4f2e9f8406c7d493744eb34a2a634ab35743ffcde826baddaab2da6
4
+ data.tar.gz: d4f492079b9ad3b42798ea2a457947237b7129f80852cc57ec2da5765f407024
5
+ SHA512:
6
+ metadata.gz: 85c3ca002f0b3a32337926b78674c749ff02d061f0d60e3e9034a661658dcbb323a868742c9cd8229079fe6fa829e370874f1d34ec53b4c21e710e732d8d4be7
7
+ data.tar.gz: 84106aeac18bb1b132a588a6f47b05b51f32a3fd1337235a9e014aa686212f429b2c58cbce35c72270892ebe1b839ef13a2271ca8965e0a4f370d5b6637f8614
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,12 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
8
+
9
+ deploy:
10
+ provider: pages
11
+ skip-cleanup: true
12
+ github-token: $TOKEN10
@@ -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 alu0100905885@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,8 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in prct6.gemspec
4
+ gem 'nokogiri'
5
+ gem 'rack', '~> 2.0.1'
6
+ gem 'rspec'
7
+ gem 'coveralls', require: false
8
+ gemspec
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Alejandro Medina
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.
@@ -0,0 +1,43 @@
1
+ # Prct6
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/prct6`. 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 'prct6'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install prct6
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]/prct6. 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
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Prct6 project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/prct6/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "prct6"
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(__FILE__)
@@ -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,513 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Alimentos - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+ <body id="top" role="document" class="class">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="class-metadata">
57
+
58
+ <div id="parent-class-section" class="nav-section">
59
+ <h3>Parent</h3>
60
+
61
+
62
+ <p class="link"><a href="Object.html">Object</a>
63
+
64
+ </div>
65
+
66
+ <div id="includes-section" class="nav-section">
67
+ <h3>Included Modules</h3>
68
+
69
+ <ul class="link-list">
70
+
71
+
72
+ <li><span class="include">Comparable</span>
73
+
74
+
75
+ </ul>
76
+ </div>
77
+
78
+
79
+ <!-- Method Quickref -->
80
+ <div id="method-list-section" class="nav-section">
81
+ <h3>Methods</h3>
82
+
83
+ <ul class="link-list" role="directory">
84
+
85
+ <li ><a href="#method-c-new">::new</a>
86
+
87
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
88
+
89
+ <li ><a href="#method-i-cal">#cal</a>
90
+
91
+ <li ><a href="#method-i-d_emision">#d_emision</a>
92
+
93
+ <li ><a href="#method-i-d_nombre">#d_nombre</a>
94
+
95
+ <li ><a href="#method-i-d_proteinas">#d_proteinas</a>
96
+
97
+ <li ><a href="#method-i-d_terreno">#d_terreno</a>
98
+
99
+ <li ><a href="#method-i-form">#form</a>
100
+
101
+ </ul>
102
+ </div>
103
+
104
+ </div>
105
+ </nav>
106
+
107
+ <main role="main" aria-labelledby="class-Alimentos">
108
+ <h1 id="class-Alimentos" class="class">
109
+ class Alimentos
110
+ </h1>
111
+
112
+ <section class="description">
113
+
114
+ <p>Declaración de la clase alimentos</p>
115
+
116
+ </section>
117
+
118
+
119
+ <section id="5Buntitled-5D" class="documentation-section">
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+ <section class="attribute-method-details" class="method-section">
128
+ <header>
129
+ <h3>Attributes</h3>
130
+ </header>
131
+
132
+
133
+ <div id="attribute-i-carbo" class="method-detail">
134
+ <div class="method-heading attribute-method-heading">
135
+ <span class="method-name">carbo</span><span
136
+ class="attribute-access-type">[R]</span>
137
+ </div>
138
+
139
+ <div class="method-description">
140
+
141
+
142
+
143
+ </div>
144
+ </div>
145
+
146
+ <div id="attribute-i-emision" class="method-detail">
147
+ <div class="method-heading attribute-method-heading">
148
+ <span class="method-name">emision</span><span
149
+ class="attribute-access-type">[R]</span>
150
+ </div>
151
+
152
+ <div class="method-description">
153
+
154
+
155
+
156
+ </div>
157
+ </div>
158
+
159
+ <div id="attribute-i-lipidos" class="method-detail">
160
+ <div class="method-heading attribute-method-heading">
161
+ <span class="method-name">lipidos</span><span
162
+ class="attribute-access-type">[R]</span>
163
+ </div>
164
+
165
+ <div class="method-description">
166
+
167
+
168
+
169
+ </div>
170
+ </div>
171
+
172
+ <div id="attribute-i-nombre" class="method-detail">
173
+ <div class="method-heading attribute-method-heading">
174
+ <span class="method-name">nombre</span><span
175
+ class="attribute-access-type">[R]</span>
176
+ </div>
177
+
178
+ <div class="method-description">
179
+
180
+
181
+
182
+ </div>
183
+ </div>
184
+
185
+ <div id="attribute-i-proteinas" class="method-detail">
186
+ <div class="method-heading attribute-method-heading">
187
+ <span class="method-name">proteinas</span><span
188
+ class="attribute-access-type">[R]</span>
189
+ </div>
190
+
191
+ <div class="method-description">
192
+
193
+
194
+
195
+ </div>
196
+ </div>
197
+
198
+ <div id="attribute-i-terreno" class="method-detail">
199
+ <div class="method-heading attribute-method-heading">
200
+ <span class="method-name">terreno</span><span
201
+ class="attribute-access-type">[R]</span>
202
+ </div>
203
+
204
+ <div class="method-description">
205
+
206
+
207
+
208
+ </div>
209
+ </div>
210
+
211
+ </section>
212
+
213
+
214
+
215
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
216
+ <header>
217
+ <h3>Public Class Methods</h3>
218
+ </header>
219
+
220
+
221
+ <div id="method-c-new" class="method-detail ">
222
+
223
+ <div class="method-heading">
224
+ <span class="method-name">new</span><span
225
+ class="method-args">(nombre, proteinas, carbo, lipidos, emision, terreno)</span>
226
+
227
+ <span class="method-click-advice">click to toggle source</span>
228
+
229
+ </div>
230
+
231
+
232
+ <div class="method-description">
233
+
234
+ <p>Método initialize Inicializa los diferentes atributos de la clase</p>
235
+
236
+
237
+
238
+
239
+ <div class="method-source-code" id="new-source">
240
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 11</span>
241
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>(<span class="ruby-identifier">nombre</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">carbo</span>, <span class="ruby-identifier">lipidos</span>, <span class="ruby-identifier">emision</span>, <span class="ruby-identifier">terreno</span>)
242
+ <span class="ruby-ivar">@nombre</span> = <span class="ruby-identifier">nombre</span>
243
+ <span class="ruby-ivar">@emision</span> = <span class="ruby-identifier">emision</span>
244
+ <span class="ruby-ivar">@terreno</span> = <span class="ruby-identifier">terreno</span>
245
+ <span class="ruby-ivar">@proteinas</span> = <span class="ruby-identifier">proteinas</span>
246
+ <span class="ruby-ivar">@carbo</span> = <span class="ruby-identifier">carbo</span>
247
+ <span class="ruby-ivar">@lipidos</span> = <span class="ruby-identifier">lipidos</span>
248
+ <span class="ruby-ivar">@cal</span> = <span class="ruby-identifier">cal</span>
249
+ <span class="ruby-keyword">end</span></pre>
250
+ </div>
251
+
252
+ </div>
253
+
254
+
255
+
256
+
257
+ </div>
258
+
259
+
260
+ </section>
261
+
262
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
263
+ <header>
264
+ <h3>Public Instance Methods</h3>
265
+ </header>
266
+
267
+
268
+ <div id="method-i-3C-3D-3E" class="method-detail ">
269
+
270
+ <div class="method-heading">
271
+ <span class="method-name">&lt;=&gt;</span><span
272
+ class="method-args">(other)</span>
273
+
274
+ <span class="method-click-advice">click to toggle source</span>
275
+
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+ <p>Método &lt;=&gt; Compara las calorias del alimento</p>
282
+
283
+
284
+
285
+
286
+ <div class="method-source-code" id="3C-3D-3E-source">
287
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 58</span>
288
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
289
+ <span class="ruby-ivar">@cal</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">cal</span>
290
+ <span class="ruby-keyword">end</span></pre>
291
+ </div>
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div>
299
+
300
+
301
+ <div id="method-i-cal" class="method-detail ">
302
+
303
+ <div class="method-heading">
304
+ <span class="method-name">cal</span><span
305
+ class="method-args">()</span>
306
+
307
+ <span class="method-click-advice">click to toggle source</span>
308
+
309
+ </div>
310
+
311
+
312
+ <div class="method-description">
313
+
314
+ <p>Método cal @return: Devuelve las calorias que aporta un alimento</p>
315
+
316
+
317
+
318
+
319
+ <div class="method-source-code" id="cal-source">
320
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 41</span>
321
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cal</span>()
322
+ <span class="ruby-keyword">return</span> ((<span class="ruby-ivar">@proteinas</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>) <span class="ruby-operator">+</span> (<span class="ruby-ivar">@carbo</span> <span class="ruby-operator">*</span> <span class="ruby-value">9</span>) <span class="ruby-operator">+</span> (<span class="ruby-ivar">@lipidos</span> <span class="ruby-operator">*</span> <span class="ruby-value">4</span>)).<span class="ruby-identifier">round</span>(<span class="ruby-value">1</span>)
323
+ <span class="ruby-keyword">end</span></pre>
324
+ </div>
325
+
326
+ </div>
327
+
328
+
329
+
330
+
331
+ </div>
332
+
333
+
334
+ <div id="method-i-d_emision" class="method-detail ">
335
+
336
+ <div class="method-heading">
337
+ <span class="method-name">d_emision</span><span
338
+ class="method-args">()</span>
339
+
340
+ <span class="method-click-advice">click to toggle source</span>
341
+
342
+ </div>
343
+
344
+
345
+ <div class="method-description">
346
+
347
+ <p>Método <a href="Alimentos.html#method-i-d_emision">#d_emision</a> @return:
348
+ Devuelve las emisiones del alimento</p>
349
+
350
+
351
+
352
+
353
+ <div class="method-source-code" id="d_emision-source">
354
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 29</span>
355
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">d_emision</span>()
356
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@emision</span>
357
+ <span class="ruby-keyword">end</span></pre>
358
+ </div>
359
+
360
+ </div>
361
+
362
+
363
+
364
+
365
+ </div>
366
+
367
+
368
+ <div id="method-i-d_nombre" class="method-detail ">
369
+
370
+ <div class="method-heading">
371
+ <span class="method-name">d_nombre</span><span
372
+ class="method-args">()</span>
373
+
374
+ <span class="method-click-advice">click to toggle source</span>
375
+
376
+ </div>
377
+
378
+
379
+ <div class="method-description">
380
+
381
+ <p>Método <a href="Alimentos.html#method-i-d_nombre">#d_nombre</a> @return:
382
+ Devuelve el nombre del alimento</p>
383
+
384
+
385
+
386
+
387
+ <div class="method-source-code" id="d_nombre-source">
388
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 23</span>
389
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">d_nombre</span>()
390
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@nombre</span>
391
+ <span class="ruby-keyword">end</span></pre>
392
+ </div>
393
+
394
+ </div>
395
+
396
+
397
+
398
+
399
+ </div>
400
+
401
+
402
+ <div id="method-i-d_proteinas" class="method-detail ">
403
+
404
+ <div class="method-heading">
405
+ <span class="method-name">d_proteinas</span><span
406
+ class="method-args">()</span>
407
+
408
+ <span class="method-click-advice">click to toggle source</span>
409
+
410
+ </div>
411
+
412
+
413
+ <div class="method-description">
414
+
415
+ <p>Método d_prteinas @return: Devuelve las proteinas del alimento</p>
416
+
417
+
418
+
419
+
420
+ <div class="method-source-code" id="d_proteinas-source">
421
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 47</span>
422
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">d_proteinas</span>()
423
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@proteinas</span>
424
+ <span class="ruby-keyword">end</span></pre>
425
+ </div>
426
+
427
+ </div>
428
+
429
+
430
+
431
+
432
+ </div>
433
+
434
+
435
+ <div id="method-i-d_terreno" class="method-detail ">
436
+
437
+ <div class="method-heading">
438
+ <span class="method-name">d_terreno</span><span
439
+ class="method-args">()</span>
440
+
441
+ <span class="method-click-advice">click to toggle source</span>
442
+
443
+ </div>
444
+
445
+
446
+ <div class="method-description">
447
+
448
+ <p>Método <a href="Alimentos.html#method-i-d_terreno">#d_terreno</a> @return:
449
+ Devuelve el terreno que representa hacer el alimento</p>
450
+
451
+
452
+
453
+
454
+ <div class="method-source-code" id="d_terreno-source">
455
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 35</span>
456
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">d_terreno</span>()
457
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@terreno</span>
458
+ <span class="ruby-keyword">end</span></pre>
459
+ </div>
460
+
461
+ </div>
462
+
463
+
464
+
465
+
466
+ </div>
467
+
468
+
469
+ <div id="method-i-form" class="method-detail ">
470
+
471
+ <div class="method-heading">
472
+ <span class="method-name">form</span><span
473
+ class="method-args">()</span>
474
+
475
+ <span class="method-click-advice">click to toggle source</span>
476
+
477
+ </div>
478
+
479
+
480
+ <div class="method-description">
481
+
482
+ <p>Método form</p>
483
+
484
+
485
+
486
+
487
+ <div class="method-source-code" id="form-source">
488
+ <pre><span class="ruby-comment"># File lib/prct6/prct6.rb, line 52</span>
489
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">form</span>
490
+ <span class="ruby-node">&quot;#{nombre}, #{proteinas}, #{carbo}, #{lipidos}&quot;</span>
491
+ <span class="ruby-keyword">end</span></pre>
492
+ </div>
493
+
494
+ </div>
495
+
496
+
497
+
498
+
499
+ </div>
500
+
501
+
502
+ </section>
503
+
504
+ </section>
505
+ </main>
506
+
507
+
508
+ <footer id="validator-badges" role="contentinfo">
509
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
510
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.
511
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
512
+ </footer>
513
+