lpp1920 0.2.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 901f715d4414de0591fe794409fd2d01b524755335045e2be62b1e619525d42e
4
+ data.tar.gz: d2c9ba075199c7f78ef61c67076c373a876111a6637170782f5459f960533ec8
5
+ SHA512:
6
+ metadata.gz: 8f8c35082b852808e1e9b7bf52398256b4260f4c2ee31ff963d97e1b6c4933dae4bd68817d7bad933d4680f4d6dd983faf314d1d2da015ab3945c45b7e706417
7
+ data.tar.gz: '0093f9a32811da50c7eaf776baef75a45295092adea0e133cfcd520476613e604aafa71f1882f93ff8c7f990c2591b5b74c6c761a1da4f42a7ca50e6f742a38a'
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ #/doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *.~
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.6.3
@@ -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 alu0100921038@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 tdd.gemspec
4
+ gemspec
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ tdd (0.2.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.2)
10
+ diff-lcs (1.3)
11
+ ffi (1.11.2)
12
+ formatador (0.2.5)
13
+ guard (2.16.1)
14
+ formatador (>= 0.2.4)
15
+ listen (>= 2.7, < 4.0)
16
+ lumberjack (>= 1.0.12, < 2.0)
17
+ nenv (~> 0.1)
18
+ notiffany (~> 0.0)
19
+ pry (>= 0.9.12)
20
+ shellany (~> 0.0)
21
+ thor (>= 0.18.1)
22
+ guard-bundler (2.2.1)
23
+ bundler (>= 1.3.0, < 3)
24
+ guard (~> 2.2)
25
+ guard-compat (~> 1.1)
26
+ guard-compat (1.2.1)
27
+ guard-rspec (4.7.3)
28
+ guard (~> 2.1)
29
+ guard-compat (~> 1.1)
30
+ rspec (>= 2.99.0, < 4.0)
31
+ listen (3.2.0)
32
+ rb-fsevent (~> 0.10, >= 0.10.3)
33
+ rb-inotify (~> 0.9, >= 0.9.10)
34
+ lumberjack (1.0.13)
35
+ method_source (0.9.2)
36
+ nenv (0.3.0)
37
+ notiffany (0.1.3)
38
+ nenv (~> 0.1)
39
+ shellany (~> 0.0)
40
+ pry (0.12.2)
41
+ coderay (~> 1.1.0)
42
+ method_source (~> 0.9.0)
43
+ rake (10.5.0)
44
+ rb-fsevent (0.10.3)
45
+ rb-inotify (0.10.0)
46
+ ffi (~> 1.0)
47
+ rspec (3.9.0)
48
+ rspec-core (~> 3.9.0)
49
+ rspec-expectations (~> 3.9.0)
50
+ rspec-mocks (~> 3.9.0)
51
+ rspec-core (3.9.0)
52
+ rspec-support (~> 3.9.0)
53
+ rspec-expectations (3.9.0)
54
+ diff-lcs (>= 1.2.0, < 2.0)
55
+ rspec-support (~> 3.9.0)
56
+ rspec-mocks (3.9.0)
57
+ diff-lcs (>= 1.2.0, < 2.0)
58
+ rspec-support (~> 3.9.0)
59
+ rspec-support (3.9.0)
60
+ shellany (0.0.1)
61
+ thor (0.20.3)
62
+
63
+ PLATFORMS
64
+ ruby
65
+
66
+ DEPENDENCIES
67
+ bundler (~> 2.0)
68
+ guard
69
+ guard-bundler
70
+ guard-rspec
71
+ rake (~> 10.0)
72
+ rspec (~> 3.0)
73
+ tdd!
74
+
75
+ BUNDLED WITH
76
+ 2.0.2
@@ -0,0 +1,58 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: 'rspec -I. -f d spec/tdd_spec.rb' do
40
+ require 'guard/rspec'
41
+ require "guard/rspec/inspectors/simple_inspector.rb"
42
+ module ::Guard
43
+ class RSpec < Plugin
44
+ module Inspectors
45
+ class SimpleInspector < BaseInspector
46
+ def paths(paths)
47
+ # please don't clear modified files correctly detected
48
+ # by watch but whose name doesn't end with '_spec.rb'
49
+ paths # return input without modification
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
55
+
56
+ watch(%r{^spec/.+_spec\.rb$})
57
+ watch(%r{^lib})
58
+ end
@@ -0,0 +1,82 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch(rspec.spec_files)
50
+
51
+ # Ruby files
52
+ ruby = dsl.ruby
53
+ dsl.watch_spec_files_for(ruby.lib_files)
54
+
55
+ # Rails files
56
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
57
+ dsl.watch_spec_files_for(rails.app_files)
58
+ dsl.watch_spec_files_for(rails.views)
59
+
60
+ watch(rails.controllers) do |m|
61
+ [
62
+ rspec.spec.call("routing/#{m[1]}_routing"),
63
+ rspec.spec.call("controllers/#{m[1]}_controller"),
64
+ rspec.spec.call("acceptance/#{m[1]}")
65
+ ]
66
+ end
67
+
68
+ # Rails config changes
69
+ watch(rails.spec_helper) { rspec.spec_dir }
70
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
71
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
72
+
73
+ # Capybara features specs
74
+ watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
75
+ watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
76
+
77
+ # Turnip features and steps
78
+ watch(%r{^spec/acceptance/(.+)\.feature$})
79
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
80
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
81
+ end
82
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Juan M
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,14 @@
1
+ # PRACTICA 6
2
+
3
+ ## Desarrollo Dirigido por Pruebas (TDD)
4
+
5
+ - [x] Crear el árbol de directorios con bundler
6
+ - [x] Creadas expectativas
7
+
8
+
9
+ # PRACTICA 7
10
+
11
+ ## Desarrollo Dirigido por Pruebas (TDD)
12
+
13
+ - [x] Lista Enlazada creada
14
+ - [x] Dietas creadas con Lista enlazada
@@ -0,0 +1,11 @@
1
+ task :default => :spec
2
+
3
+ desc "Ejecutar las espectativas de la clase Alimento"
4
+ task :spec do
5
+ sh "rspec -I. spec/tdd_spec.rb"
6
+ end
7
+
8
+ desc "Ejecutar con documentacion"
9
+ task :doc do
10
+ sh "rspec -I. spec/tdd_spec.rb --format documentation"
11
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "tdd"
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,1092 @@
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: Alimento
8
+
9
+ &mdash; Documentation by YARD 0.9.20
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 = "Alimento";
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?1"></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">Alimento</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
+ <div id="content"><h1>Class: Alimento
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Alimento</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+ <dl>
91
+ <dt>Includes:</dt>
92
+ <dd>Comparable</dd>
93
+ </dl>
94
+
95
+
96
+
97
+
98
+
99
+
100
+ <dl>
101
+ <dt>Defined in:</dt>
102
+ <dd>lib/tdd.rb</dd>
103
+ </dl>
104
+
105
+ </div>
106
+
107
+ <h2>Overview</h2><div class="docstring">
108
+ <div class="discussion">
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+ <p class="tag_title">Author:</p>
116
+ <ul class="author">
117
+
118
+ <li>
119
+
120
+
121
+
122
+
123
+
124
+ <div class='inline'>
125
+ <p>Juan Martínez</p>
126
+ </div>
127
+
128
+ </li>
129
+
130
+ </ul>
131
+
132
+ </div>
133
+
134
+
135
+
136
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
137
+ <ul class="summary">
138
+
139
+ <li class="public ">
140
+ <span class="summary_signature">
141
+
142
+ <a href="#carbohidratos-instance_method" title="#carbohidratos (instance method)">#<strong>carbohidratos</strong> &#x21d2; Object </a>
143
+
144
+
145
+
146
+ </span>
147
+
148
+
149
+
150
+
151
+ <span class="note title readonly">readonly</span>
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+ <span class="summary_desc"><div class='inline'>
162
+ <p>Returns the value of attribute carbohidratos.</p>
163
+ </div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="public ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#gei-instance_method" title="#gei (instance method)">#<strong>gei</strong> &#x21d2; Object </a>
172
+
173
+
174
+
175
+ </span>
176
+
177
+
178
+
179
+
180
+ <span class="note title readonly">readonly</span>
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+ <span class="summary_desc"><div class='inline'>
191
+ <p>Returns the value of attribute gei.</p>
192
+ </div></span>
193
+
194
+ </li>
195
+
196
+
197
+ <li class="public ">
198
+ <span class="summary_signature">
199
+
200
+ <a href="#lipidos-instance_method" title="#lipidos (instance method)">#<strong>lipidos</strong> &#x21d2; Object </a>
201
+
202
+
203
+
204
+ </span>
205
+
206
+
207
+
208
+
209
+ <span class="note title readonly">readonly</span>
210
+
211
+
212
+
213
+
214
+
215
+
216
+
217
+
218
+
219
+ <span class="summary_desc"><div class='inline'>
220
+ <p>Returns the value of attribute lipidos.</p>
221
+ </div></span>
222
+
223
+ </li>
224
+
225
+
226
+ <li class="public ">
227
+ <span class="summary_signature">
228
+
229
+ <a href="#nombre-instance_method" title="#nombre (instance method)">#<strong>nombre</strong> &#x21d2; Object </a>
230
+
231
+
232
+
233
+ </span>
234
+
235
+
236
+
237
+
238
+ <span class="note title readonly">readonly</span>
239
+
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+ <span class="summary_desc"><div class='inline'>
249
+ <p>Returns the value of attribute nombre.</p>
250
+ </div></span>
251
+
252
+ </li>
253
+
254
+
255
+ <li class="public ">
256
+ <span class="summary_signature">
257
+
258
+ <a href="#proteinas-instance_method" title="#proteinas (instance method)">#<strong>proteinas</strong> &#x21d2; Object </a>
259
+
260
+
261
+
262
+ </span>
263
+
264
+
265
+
266
+
267
+ <span class="note title readonly">readonly</span>
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+
277
+ <span class="summary_desc"><div class='inline'>
278
+ <p>Returns the value of attribute proteinas.</p>
279
+ </div></span>
280
+
281
+ </li>
282
+
283
+
284
+ <li class="public ">
285
+ <span class="summary_signature">
286
+
287
+ <a href="#terreno-instance_method" title="#terreno (instance method)">#<strong>terreno</strong> &#x21d2; Object </a>
288
+
289
+
290
+
291
+ </span>
292
+
293
+
294
+
295
+
296
+ <span class="note title readonly">readonly</span>
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+ <span class="summary_desc"><div class='inline'>
307
+ <p>Returns the value of attribute terreno.</p>
308
+ </div></span>
309
+
310
+ </li>
311
+
312
+
313
+ </ul>
314
+
315
+
316
+
317
+
318
+
319
+ <h2>
320
+ Instance Method Summary
321
+ <small><a href="#" class="summary_toggle">collapse</a></small>
322
+ </h2>
323
+
324
+ <ul class="summary">
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#<=>-instance_method" title="#&lt;=&gt; (instance method)">#<strong>&lt;=&gt;</strong>(another) &#x21d2; Object </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+
343
+ <span class="summary_desc"><div class='inline'></div></span>
344
+
345
+ </li>
346
+
347
+
348
+ <li class="public ">
349
+ <span class="summary_signature">
350
+
351
+ <a href="#get_gei-instance_method" title="#get_gei (instance method)">#<strong>get_gei</strong> &#x21d2; Object </a>
352
+
353
+
354
+
355
+ </span>
356
+
357
+
358
+
359
+
360
+
361
+
362
+
363
+
364
+
365
+ <span class="summary_desc"><div class='inline'></div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#get_nombre-instance_method" title="#get_nombre (instance method)">#<strong>get_nombre</strong> &#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'></div></span>
388
+
389
+ </li>
390
+
391
+
392
+ <li class="public ">
393
+ <span class="summary_signature">
394
+
395
+ <a href="#get_terreno-instance_method" title="#get_terreno (instance method)">#<strong>get_terreno</strong> &#x21d2; Object </a>
396
+
397
+
398
+
399
+ </span>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+ <span class="summary_desc"><div class='inline'></div></span>
410
+
411
+ </li>
412
+
413
+
414
+ <li class="public ">
415
+ <span class="summary_signature">
416
+
417
+ <a href="#impacto_ambiental-instance_method" title="#impacto_ambiental (instance method)">#<strong>impacto_ambiental</strong> &#x21d2; Object </a>
418
+
419
+
420
+
421
+ </span>
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+ <span class="summary_desc"><div class='inline'></div></span>
432
+
433
+ </li>
434
+
435
+
436
+ <li class="public ">
437
+ <span class="summary_signature">
438
+
439
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, proteinas, carbohidratos, lipidos, gei, terreno) &#x21d2; Alimento </a>
440
+
441
+
442
+
443
+ </span>
444
+
445
+
446
+ <span class="note title constructor">constructor</span>
447
+
448
+
449
+
450
+
451
+
452
+
453
+
454
+
455
+ <span class="summary_desc"><div class='inline'>
456
+ <p>A new instance of Alimento.</p>
457
+ </div></span>
458
+
459
+ </li>
460
+
461
+
462
+ <li class="public ">
463
+ <span class="summary_signature">
464
+
465
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; String </a>
466
+
467
+
468
+
469
+ </span>
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+
478
+
479
+ <span class="summary_desc"><div class='inline'>
480
+ <p>Formatea el alimento.</p>
481
+ </div></span>
482
+
483
+ </li>
484
+
485
+
486
+ <li class="public ">
487
+ <span class="summary_signature">
488
+
489
+ <a href="#valor_energetico-instance_method" title="#valor_energetico (instance method)">#<strong>valor_energetico</strong> &#x21d2; Object </a>
490
+
491
+
492
+
493
+ </span>
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+ <span class="summary_desc"><div class='inline'></div></span>
504
+
505
+ </li>
506
+
507
+
508
+ </ul>
509
+
510
+
511
+
512
+ <div id="constructor_details" class="method_details_list">
513
+ <h2>Constructor Details</h2>
514
+
515
+ <div class="method_details first">
516
+ <h3 class="signature first" id="initialize-instance_method">
517
+
518
+ #<strong>initialize</strong>(nombre, proteinas, carbohidratos, lipidos, gei, terreno) &#x21d2; <tt><span class='object_link'><a href="" title="Alimento (class)">Alimento</a></span></tt>
519
+
520
+
521
+
522
+
523
+
524
+ </h3><div class="docstring">
525
+ <div class="discussion">
526
+
527
+ <p>Returns a new instance of Alimento</p>
528
+
529
+
530
+ </div>
531
+ </div>
532
+ <div class="tags">
533
+
534
+
535
+ </div><table class="source_code">
536
+ <tr>
537
+ <td>
538
+ <pre class="lines">
539
+
540
+
541
+ 8
542
+ 9
543
+ 10
544
+ 11
545
+ 12
546
+ 13
547
+ 14
548
+ 15</pre>
549
+ </td>
550
+ <td>
551
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 8</span>
552
+
553
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span> <span class='id identifier rubyid_carbohidratos'>carbohidratos</span><span class='comma'>,</span> <span class='id identifier rubyid_lipidos'>lipidos</span><span class='comma'>,</span> <span class='id identifier rubyid_gei'>gei</span><span class='comma'>,</span> <span class='id identifier rubyid_terreno'>terreno</span><span class='rparen'>)</span>
554
+ <span class='ivar'>@nombre</span> <span class='op'>=</span> <span class='id identifier rubyid_nombre'>nombre</span>
555
+ <span class='ivar'>@proteinas</span> <span class='op'>=</span> <span class='id identifier rubyid_proteinas'>proteinas</span>
556
+ <span class='ivar'>@carbohidratos</span> <span class='op'>=</span> <span class='id identifier rubyid_carbohidratos'>carbohidratos</span>
557
+ <span class='ivar'>@lipidos</span> <span class='op'>=</span> <span class='id identifier rubyid_lipidos'>lipidos</span>
558
+ <span class='ivar'>@gei</span> <span class='op'>=</span> <span class='id identifier rubyid_gei'>gei</span>
559
+ <span class='ivar'>@terreno</span> <span class='op'>=</span> <span class='id identifier rubyid_terreno'>terreno</span>
560
+ <span class='kw'>end</span></pre>
561
+ </td>
562
+ </tr>
563
+ </table>
564
+ </div>
565
+
566
+ </div>
567
+
568
+ <div id="instance_attr_details" class="attr_details">
569
+ <h2>Instance Attribute Details</h2>
570
+
571
+
572
+ <span id=""></span>
573
+ <div class="method_details first">
574
+ <h3 class="signature first" id="carbohidratos-instance_method">
575
+
576
+ #<strong>carbohidratos</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
577
+
578
+
579
+
580
+
581
+
582
+ </h3><div class="docstring">
583
+ <div class="discussion">
584
+
585
+ <p>Returns the value of attribute carbohidratos</p>
586
+
587
+
588
+ </div>
589
+ </div>
590
+ <div class="tags">
591
+
592
+
593
+ </div><table class="source_code">
594
+ <tr>
595
+ <td>
596
+ <pre class="lines">
597
+
598
+
599
+ 6
600
+ 7
601
+ 8</pre>
602
+ </td>
603
+ <td>
604
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
605
+
606
+ <span class='kw'>def</span> <span class='id identifier rubyid_carbohidratos'>carbohidratos</span>
607
+ <span class='ivar'>@carbohidratos</span>
608
+ <span class='kw'>end</span></pre>
609
+ </td>
610
+ </tr>
611
+ </table>
612
+ </div>
613
+
614
+
615
+ <span id=""></span>
616
+ <div class="method_details ">
617
+ <h3 class="signature " id="gei-instance_method">
618
+
619
+ #<strong>gei</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
620
+
621
+
622
+
623
+
624
+
625
+ </h3><div class="docstring">
626
+ <div class="discussion">
627
+
628
+ <p>Returns the value of attribute gei</p>
629
+
630
+
631
+ </div>
632
+ </div>
633
+ <div class="tags">
634
+
635
+
636
+ </div><table class="source_code">
637
+ <tr>
638
+ <td>
639
+ <pre class="lines">
640
+
641
+
642
+ 6
643
+ 7
644
+ 8</pre>
645
+ </td>
646
+ <td>
647
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
648
+
649
+ <span class='kw'>def</span> <span class='id identifier rubyid_gei'>gei</span>
650
+ <span class='ivar'>@gei</span>
651
+ <span class='kw'>end</span></pre>
652
+ </td>
653
+ </tr>
654
+ </table>
655
+ </div>
656
+
657
+
658
+ <span id=""></span>
659
+ <div class="method_details ">
660
+ <h3 class="signature " id="lipidos-instance_method">
661
+
662
+ #<strong>lipidos</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
663
+
664
+
665
+
666
+
667
+
668
+ </h3><div class="docstring">
669
+ <div class="discussion">
670
+
671
+ <p>Returns the value of attribute lipidos</p>
672
+
673
+
674
+ </div>
675
+ </div>
676
+ <div class="tags">
677
+
678
+
679
+ </div><table class="source_code">
680
+ <tr>
681
+ <td>
682
+ <pre class="lines">
683
+
684
+
685
+ 6
686
+ 7
687
+ 8</pre>
688
+ </td>
689
+ <td>
690
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
691
+
692
+ <span class='kw'>def</span> <span class='id identifier rubyid_lipidos'>lipidos</span>
693
+ <span class='ivar'>@lipidos</span>
694
+ <span class='kw'>end</span></pre>
695
+ </td>
696
+ </tr>
697
+ </table>
698
+ </div>
699
+
700
+
701
+ <span id=""></span>
702
+ <div class="method_details ">
703
+ <h3 class="signature " id="nombre-instance_method">
704
+
705
+ #<strong>nombre</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
706
+
707
+
708
+
709
+
710
+
711
+ </h3><div class="docstring">
712
+ <div class="discussion">
713
+
714
+ <p>Returns the value of attribute nombre</p>
715
+
716
+
717
+ </div>
718
+ </div>
719
+ <div class="tags">
720
+
721
+
722
+ </div><table class="source_code">
723
+ <tr>
724
+ <td>
725
+ <pre class="lines">
726
+
727
+
728
+ 6
729
+ 7
730
+ 8</pre>
731
+ </td>
732
+ <td>
733
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
734
+
735
+ <span class='kw'>def</span> <span class='id identifier rubyid_nombre'>nombre</span>
736
+ <span class='ivar'>@nombre</span>
737
+ <span class='kw'>end</span></pre>
738
+ </td>
739
+ </tr>
740
+ </table>
741
+ </div>
742
+
743
+
744
+ <span id=""></span>
745
+ <div class="method_details ">
746
+ <h3 class="signature " id="proteinas-instance_method">
747
+
748
+ #<strong>proteinas</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
749
+
750
+
751
+
752
+
753
+
754
+ </h3><div class="docstring">
755
+ <div class="discussion">
756
+
757
+ <p>Returns the value of attribute proteinas</p>
758
+
759
+
760
+ </div>
761
+ </div>
762
+ <div class="tags">
763
+
764
+
765
+ </div><table class="source_code">
766
+ <tr>
767
+ <td>
768
+ <pre class="lines">
769
+
770
+
771
+ 6
772
+ 7
773
+ 8</pre>
774
+ </td>
775
+ <td>
776
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
777
+
778
+ <span class='kw'>def</span> <span class='id identifier rubyid_proteinas'>proteinas</span>
779
+ <span class='ivar'>@proteinas</span>
780
+ <span class='kw'>end</span></pre>
781
+ </td>
782
+ </tr>
783
+ </table>
784
+ </div>
785
+
786
+
787
+ <span id=""></span>
788
+ <div class="method_details ">
789
+ <h3 class="signature " id="terreno-instance_method">
790
+
791
+ #<strong>terreno</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
792
+
793
+
794
+
795
+
796
+
797
+ </h3><div class="docstring">
798
+ <div class="discussion">
799
+
800
+ <p>Returns the value of attribute terreno</p>
801
+
802
+
803
+ </div>
804
+ </div>
805
+ <div class="tags">
806
+
807
+
808
+ </div><table class="source_code">
809
+ <tr>
810
+ <td>
811
+ <pre class="lines">
812
+
813
+
814
+ 6
815
+ 7
816
+ 8</pre>
817
+ </td>
818
+ <td>
819
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 6</span>
820
+
821
+ <span class='kw'>def</span> <span class='id identifier rubyid_terreno'>terreno</span>
822
+ <span class='ivar'>@terreno</span>
823
+ <span class='kw'>end</span></pre>
824
+ </td>
825
+ </tr>
826
+ </table>
827
+ </div>
828
+
829
+ </div>
830
+
831
+
832
+ <div id="instance_method_details" class="method_details_list">
833
+ <h2>Instance Method Details</h2>
834
+
835
+
836
+ <div class="method_details first">
837
+ <h3 class="signature first" id="<=>-instance_method">
838
+
839
+ #<strong>&lt;=&gt;</strong>(another) &#x21d2; <tt>Object</tt>
840
+
841
+
842
+
843
+
844
+
845
+ </h3><table class="source_code">
846
+ <tr>
847
+ <td>
848
+ <pre class="lines">
849
+
850
+
851
+ 49
852
+ 50
853
+ 51</pre>
854
+ </td>
855
+ <td>
856
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 49</span>
857
+
858
+ <span class='kw'>def</span> <span class='op'>&lt;=&gt;</span> <span class='lparen'>(</span><span class='id identifier rubyid_another'>another</span><span class='rparen'>)</span>
859
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_valor_energetico'>valor_energetico</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_another'>another</span><span class='period'>.</span><span class='id identifier rubyid_valor_energetico'>valor_energetico</span>
860
+ <span class='kw'>end</span></pre>
861
+ </td>
862
+ </tr>
863
+ </table>
864
+ </div>
865
+
866
+ <div class="method_details ">
867
+ <h3 class="signature " id="get_gei-instance_method">
868
+
869
+ #<strong>get_gei</strong> &#x21d2; <tt>Object</tt>
870
+
871
+
872
+
873
+
874
+
875
+ </h3><table class="source_code">
876
+ <tr>
877
+ <td>
878
+ <pre class="lines">
879
+
880
+
881
+ 21
882
+ 22
883
+ 23</pre>
884
+ </td>
885
+ <td>
886
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 21</span>
887
+
888
+ <span class='kw'>def</span> <span class='id identifier rubyid_get_gei'>get_gei</span>
889
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>GEI: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@gei</span><span class='embexpr_end'>}</span><span class='tstring_content'> kgCO2eq</span><span class='tstring_end'>&quot;</span></span>
890
+ <span class='kw'>end</span></pre>
891
+ </td>
892
+ </tr>
893
+ </table>
894
+ </div>
895
+
896
+ <div class="method_details ">
897
+ <h3 class="signature " id="get_nombre-instance_method">
898
+
899
+ #<strong>get_nombre</strong> &#x21d2; <tt>Object</tt>
900
+
901
+
902
+
903
+
904
+
905
+ </h3><table class="source_code">
906
+ <tr>
907
+ <td>
908
+ <pre class="lines">
909
+
910
+
911
+ 17
912
+ 18
913
+ 19</pre>
914
+ </td>
915
+ <td>
916
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 17</span>
917
+
918
+ <span class='kw'>def</span> <span class='id identifier rubyid_get_nombre'>get_nombre</span>
919
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Nombre: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
920
+ <span class='kw'>end</span></pre>
921
+ </td>
922
+ </tr>
923
+ </table>
924
+ </div>
925
+
926
+ <div class="method_details ">
927
+ <h3 class="signature " id="get_terreno-instance_method">
928
+
929
+ #<strong>get_terreno</strong> &#x21d2; <tt>Object</tt>
930
+
931
+
932
+
933
+
934
+
935
+ </h3><table class="source_code">
936
+ <tr>
937
+ <td>
938
+ <pre class="lines">
939
+
940
+
941
+ 25
942
+ 26
943
+ 27</pre>
944
+ </td>
945
+ <td>
946
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 25</span>
947
+
948
+ <span class='kw'>def</span> <span class='id identifier rubyid_get_terreno'>get_terreno</span>
949
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Terreno: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@terreno</span><span class='embexpr_end'>}</span><span class='tstring_content'> m2/año</span><span class='tstring_end'>&quot;</span></span>
950
+ <span class='kw'>end</span></pre>
951
+ </td>
952
+ </tr>
953
+ </table>
954
+ </div>
955
+
956
+ <div class="method_details ">
957
+ <h3 class="signature " id="impacto_ambiental-instance_method">
958
+
959
+ #<strong>impacto_ambiental</strong> &#x21d2; <tt>Object</tt>
960
+
961
+
962
+
963
+
964
+
965
+ </h3><table class="source_code">
966
+ <tr>
967
+ <td>
968
+ <pre class="lines">
969
+
970
+
971
+ 45
972
+ 46
973
+ 47</pre>
974
+ </td>
975
+ <td>
976
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 45</span>
977
+
978
+ <span class='kw'>def</span> <span class='id identifier rubyid_impacto_ambiental'>impacto_ambiental</span>
979
+ <span class='kw'>true</span>
980
+ <span class='kw'>end</span></pre>
981
+ </td>
982
+ </tr>
983
+ </table>
984
+ </div>
985
+
986
+ <div class="method_details ">
987
+ <h3 class="signature " id="to_s-instance_method">
988
+
989
+ #<strong>to_s</strong> &#x21d2; <tt>String</tt>
990
+
991
+
992
+
993
+
994
+
995
+ </h3><div class="docstring">
996
+ <div class="discussion">
997
+
998
+ <p>Formatea el alimento</p>
999
+
1000
+
1001
+ </div>
1002
+ </div>
1003
+ <div class="tags">
1004
+
1005
+ <p class="tag_title">Returns:</p>
1006
+ <ul class="return">
1007
+
1008
+ <li>
1009
+
1010
+
1011
+ <span class='type'>(<tt>String</tt>)</span>
1012
+
1013
+
1014
+
1015
+ </li>
1016
+
1017
+ </ul>
1018
+
1019
+ </div><table class="source_code">
1020
+ <tr>
1021
+ <td>
1022
+ <pre class="lines">
1023
+
1024
+
1025
+ 32
1026
+ 33
1027
+ 34
1028
+ 35
1029
+ 36
1030
+ 37
1031
+ 38
1032
+ 39</pre>
1033
+ </td>
1034
+ <td>
1035
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 32</span>
1036
+
1037
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1038
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Nombre: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
1039
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Proteinas: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@proteinas</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
1040
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Carbohidratos: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@carbohidratos</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
1041
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Lipidos: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@lipidos</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
1042
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>GEI: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@gei</span><span class='embexpr_end'>}</span><span class='tstring_content'>\n </span><span class='tstring_end'>&quot;</span></span> <span class='op'>+</span>
1043
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Terreno: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@terreno</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
1044
+ <span class='kw'>end</span></pre>
1045
+ </td>
1046
+ </tr>
1047
+ </table>
1048
+ </div>
1049
+
1050
+ <div class="method_details ">
1051
+ <h3 class="signature " id="valor_energetico-instance_method">
1052
+
1053
+ #<strong>valor_energetico</strong> &#x21d2; <tt>Object</tt>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+ </h3><table class="source_code">
1060
+ <tr>
1061
+ <td>
1062
+ <pre class="lines">
1063
+
1064
+
1065
+ 41
1066
+ 42
1067
+ 43</pre>
1068
+ </td>
1069
+ <td>
1070
+ <pre class="code"><span class="info file"># File 'lib/tdd.rb', line 41</span>
1071
+
1072
+ <span class='kw'>def</span> <span class='id identifier rubyid_valor_energetico'>valor_energetico</span>
1073
+ <span class='lparen'>(</span><span class='ivar'>@lipidos</span> <span class='op'>*</span> <span class='int'>9</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@proteinas</span> <span class='op'>*</span> <span class='int'>4</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@carbohidratos</span> <span class='op'>*</span> <span class='int'>4</span><span class='rparen'>)</span>
1074
+ <span class='kw'>end</span></pre>
1075
+ </td>
1076
+ </tr>
1077
+ </table>
1078
+ </div>
1079
+
1080
+ </div>
1081
+
1082
+ </div>
1083
+
1084
+ <div id="footer">
1085
+ Generated on Wed Dec 18 07:36:36 2019 by
1086
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1087
+ 0.9.20 (ruby-2.1.2).
1088
+ </div>
1089
+
1090
+ </div>
1091
+ </body>
1092
+ </html>