gemaalu0100884982 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/README.md +11 -0
  8. data/Rakefile +21 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/doc/Dieta.html +681 -0
  12. data/doc/Gema.html +97 -0
  13. data/doc/Gemfile.html +120 -0
  14. data/doc/Gemfile_lock.html +204 -0
  15. data/doc/Guardfile.html +200 -0
  16. data/doc/Lista.html +587 -0
  17. data/doc/Menu_Alimentos.html +234 -0
  18. data/doc/Menu_Edad.html +234 -0
  19. data/doc/Object.html +116 -0
  20. data/doc/README_md.html +129 -0
  21. data/doc/README_md~.html +128 -0
  22. data/doc/Rakefile.html +140 -0
  23. data/doc/Rakefile~.html +140 -0
  24. data/doc/bin/setup.html +121 -0
  25. data/doc/created.rid +30 -0
  26. data/doc/css/fonts.css +167 -0
  27. data/doc/css/rdoc.css +590 -0
  28. data/doc/fonts/Lato-Light.ttf +0 -0
  29. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  30. data/doc/fonts/Lato-Regular.ttf +0 -0
  31. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  32. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  34. data/doc/gema_gemspec.html +155 -0
  35. data/doc/gema_gemspec~.html +156 -0
  36. data/doc/images/add.png +0 -0
  37. data/doc/images/arrow_up.png +0 -0
  38. data/doc/images/brick.png +0 -0
  39. data/doc/images/brick_link.png +0 -0
  40. data/doc/images/bug.png +0 -0
  41. data/doc/images/bullet_black.png +0 -0
  42. data/doc/images/bullet_toggle_minus.png +0 -0
  43. data/doc/images/bullet_toggle_plus.png +0 -0
  44. data/doc/images/date.png +0 -0
  45. data/doc/images/delete.png +0 -0
  46. data/doc/images/find.png +0 -0
  47. data/doc/images/loadingAnimation.gif +0 -0
  48. data/doc/images/macFFBgHack.png +0 -0
  49. data/doc/images/package.png +0 -0
  50. data/doc/images/page_green.png +0 -0
  51. data/doc/images/page_white_text.png +0 -0
  52. data/doc/images/page_white_width.png +0 -0
  53. data/doc/images/plugin.png +0 -0
  54. data/doc/images/ruby.png +0 -0
  55. data/doc/images/tag_blue.png +0 -0
  56. data/doc/images/tag_green.png +0 -0
  57. data/doc/images/transparent.png +0 -0
  58. data/doc/images/wrench.png +0 -0
  59. data/doc/images/wrench_orange.png +0 -0
  60. data/doc/images/zoom.png +0 -0
  61. data/doc/index.html +135 -0
  62. data/doc/js/darkfish.js +161 -0
  63. data/doc/js/jquery.js +4 -0
  64. data/doc/js/navigation.js +142 -0
  65. data/doc/js/navigation.js.gz +0 -0
  66. data/doc/js/search.js +109 -0
  67. data/doc/js/search_index.js +1 -0
  68. data/doc/js/search_index.js.gz +0 -0
  69. data/doc/js/searcher.js +228 -0
  70. data/doc/js/searcher.js.gz +0 -0
  71. data/doc/lib/gema/dieta_rb~.html +253 -0
  72. data/doc/lib/gema/lista_dll_rb~.html +253 -0
  73. data/doc/lib/gema/lista_rb~.html +241 -0
  74. data/doc/lib/gema/version_rb~.html +122 -0
  75. data/doc/lib/gema_rb~.html +123 -0
  76. data/doc/spec/dieta_spec_rb~.html +286 -0
  77. data/doc/spec/herenciadieta_spec_rb~.html +222 -0
  78. data/doc/spec/lista_spec_rb~.html +396 -0
  79. data/doc/spec/spec_helper_rb~.html +118 -0
  80. data/doc/table_of_contents.html +258 -0
  81. data/gema.gemspec +40 -0
  82. data/lib/gema.rb +6 -0
  83. data/lib/gema/dieta.rb +134 -0
  84. data/lib/gema/dieta_dsl.rb +188 -0
  85. data/lib/gema/lista_dll.rb +157 -0
  86. data/lib/gema/version.rb +4 -0
  87. metadata +228 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: af90af1e64d3c691438d98ce671bea7da0a5f04c
4
+ data.tar.gz: 77dfae371f5ba1efbbde2a88eeea412f85d61010
5
+ SHA512:
6
+ metadata.gz: d27bb30eb033d139deec43f4b8e5afbfa6549586c924c7c7cf1d71886da310142e3c57de48bd9e7db47722b82584f92f743bc8ca3df6787c09bc6f76ce5ee404
7
+ data.tar.gz: ca68c521e327becbd5d5d4ecc6516453e3911e8a14c7e438c4110c147d035b1682aa3a512dc55a1db196dbb58046bd666082bea03697c42c577fce958a926e3f
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ *~
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.1
5
+ before_install: gem install bundler -v 1.13.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gema.gemspec
4
+ gemspec
@@ -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.exists?(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,11 @@
1
+ #TDD Lista
2
+ ================
3
+
4
+ Desarrollo Dirigido por Pruebas para la clase Lista
5
+
6
+ * Ejemplos con distintas decripciones y espectativas
7
+ * Ejemplo de organización de distintos directorios
8
+ * Ejemplo de Rakefile
9
+
10
+ Javier Ramos Fernández
11
+
@@ -0,0 +1,21 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+
5
+ task :default => :spec
6
+
7
+ desc "Ejecutar las espectativas de la clase Lista"
8
+ task :spec do
9
+ sh "rspec -I. spec/lista_spec.rb spec/dieta_spec.rb spec/dietadsl_spec.rb"
10
+
11
+ end
12
+
13
+ desc "Ejecutar las espectativas de la clase Dieta"
14
+ task :rspec do
15
+ sh "rspec -I. spec/dieta_spec.rb"
16
+ end
17
+
18
+ desc "Ejecutar con documentacion"
19
+ task :doc do
20
+ sh "rspec -I. spec/dieta_spec.rb --format documentation"
21
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "gema"
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
@@ -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,681 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Dieta - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link"><a href="Object.html">Object</a>
62
+
63
+ </div>
64
+
65
+ <div id="includes-section" class="nav-section">
66
+ <h3>Included Modules</h3>
67
+
68
+ <ul class="link-list">
69
+
70
+
71
+ <li><span class="include">Comparable</span>
72
+
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Method Quickref -->
79
+ <div id="method-list-section" class="nav-section">
80
+ <h3>Methods</h3>
81
+
82
+ <ul class="link-list" role="directory">
83
+
84
+ <li ><a href="#method-c-new">::new</a>
85
+
86
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
87
+
88
+ <li ><a href="#method-i-3D-3D">#==</a>
89
+
90
+ <li ><a href="#method-i-get_desc_plato">#get_desc_plato</a>
91
+
92
+ <li ><a href="#method-i-get_grasas">#get_grasas</a>
93
+
94
+ <li ><a href="#method-i-get_hidratos">#get_hidratos</a>
95
+
96
+ <li ><a href="#method-i-get_ingesta_diaria">#get_ingesta_diaria</a>
97
+
98
+ <li ><a href="#method-i-get_plato">#get_plato</a>
99
+
100
+ <li ><a href="#method-i-get_platos">#get_platos</a>
101
+
102
+ <li ><a href="#method-i-get_proteinas">#get_proteinas</a>
103
+
104
+ <li ><a href="#method-i-get_titulo">#get_titulo</a>
105
+
106
+ <li ><a href="#method-i-get_vct">#get_vct</a>
107
+
108
+ <li ><a href="#method-i-to_s">#to_s</a>
109
+
110
+ </ul>
111
+ </div>
112
+
113
+ </div>
114
+ </nav>
115
+
116
+ <main role="main" aria-labelledby="class-Dieta">
117
+ <h1 id="class-Dieta" class="class">
118
+ class Dieta
119
+ </h1>
120
+
121
+ <section class="description">
122
+
123
+ <p>Clase <a href="Dieta.html">Dieta</a></p>
124
+
125
+ </section>
126
+
127
+
128
+
129
+
130
+ <section id="5Buntitled-5D" class="documentation-section">
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <section class="attribute-method-details" class="method-section">
139
+ <header>
140
+ <h3>Attributes</h3>
141
+ </header>
142
+
143
+
144
+ <div id="attribute-i-platos" class="method-detail">
145
+ <div class="method-heading attribute-method-heading">
146
+ <span class="method-name">platos</span><span
147
+ class="attribute-access-type">[R]</span>
148
+ </div>
149
+
150
+ <div class="method-description">
151
+
152
+ <p>Platos de la <a href="Dieta.html">Dieta</a></p>
153
+
154
+ </div>
155
+ </div>
156
+
157
+ <div id="attribute-i-porcentaje_ingesta" class="method-detail">
158
+ <div class="method-heading attribute-method-heading">
159
+ <span class="method-name">porcentaje_ingesta</span><span
160
+ class="attribute-access-type">[R]</span>
161
+ </div>
162
+
163
+ <div class="method-description">
164
+
165
+ <p>Porcentaje de ingesta diaria de la <a href="Dieta.html">Dieta</a></p>
166
+
167
+ </div>
168
+ </div>
169
+
170
+ <div id="attribute-i-porcentajes" class="method-detail">
171
+ <div class="method-heading attribute-method-heading">
172
+ <span class="method-name">porcentajes</span><span
173
+ class="attribute-access-type">[R]</span>
174
+ </div>
175
+
176
+ <div class="method-description">
177
+
178
+ <p><strong>Porcentajes</strong> de proteínas, grasas e hidratos de carbono de
179
+ la <a href="Dieta.html">Dieta</a></p>
180
+
181
+ </div>
182
+ </div>
183
+
184
+ <div id="attribute-i-titulo" class="method-detail">
185
+ <div class="method-heading attribute-method-heading">
186
+ <span class="method-name">titulo</span><span
187
+ class="attribute-access-type">[R]</span>
188
+ </div>
189
+
190
+ <div class="method-description">
191
+
192
+ <p>Título de la <a href="Dieta.html">Dieta</a></p>
193
+
194
+ </div>
195
+ </div>
196
+
197
+ <div id="attribute-i-vct" class="method-detail">
198
+ <div class="method-heading attribute-method-heading">
199
+ <span class="method-name">vct</span><span
200
+ class="attribute-access-type">[R]</span>
201
+ </div>
202
+
203
+ <div class="method-description">
204
+
205
+ <p>Valor calórico de la <a href="Dieta.html">Dieta</a></p>
206
+
207
+ </div>
208
+ </div>
209
+
210
+ </section>
211
+
212
+
213
+
214
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
215
+ <header>
216
+ <h3>Public Class Methods</h3>
217
+ </header>
218
+
219
+
220
+ <div id="method-c-new" class="method-detail ">
221
+
222
+ <div class="method-heading">
223
+ <span class="method-name">new</span><span
224
+ class="method-args">(titulo, porcentaje_ingesta, platos, vct, porcentajes)</span>
225
+
226
+ <span class="method-click-advice">click to toggle source</span>
227
+
228
+ </div>
229
+
230
+
231
+ <div class="method-description">
232
+
233
+ <p>Constructor de la clase <a href="Dieta.html">Dieta</a></p>
234
+
235
+
236
+
237
+
238
+ <div class="method-source-code" id="new-source">
239
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 16</span>
240
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcentaje_ingesta</span>, <span class="ruby-identifier">platos</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">porcentajes</span>)
241
+
242
+ <span class="ruby-ivar">@titulo</span> = <span class="ruby-identifier">titulo</span>
243
+ <span class="ruby-ivar">@porcentaje_ingesta</span> = <span class="ruby-identifier">porcentaje_ingesta</span>
244
+ <span class="ruby-ivar">@platos</span> = <span class="ruby-identifier">platos</span>
245
+ <span class="ruby-ivar">@vct</span> = <span class="ruby-identifier">vct</span>
246
+ <span class="ruby-ivar">@porcentajes</span> = <span class="ruby-identifier">porcentajes</span>
247
+
248
+ <span class="ruby-keyword">end</span></pre>
249
+ </div>
250
+
251
+ </div>
252
+
253
+
254
+
255
+
256
+ </div>
257
+
258
+
259
+ </section>
260
+
261
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
262
+ <header>
263
+ <h3>Public Instance Methods</h3>
264
+ </header>
265
+
266
+
267
+ <div id="method-i-3C-3D-3E" class="method-detail ">
268
+
269
+ <div class="method-heading">
270
+ <span class="method-name">&lt;=&gt;</span><span
271
+ class="method-args">(other)</span>
272
+
273
+ <span class="method-click-advice">click to toggle source</span>
274
+
275
+ </div>
276
+
277
+
278
+ <div class="method-description">
279
+
280
+ <p>Método que es necesario definir para poder utilizar el módulo Comparable</p>
281
+
282
+
283
+
284
+
285
+ <div class="method-source-code" id="3C-3D-3E-source">
286
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 33</span>
287
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span> (<span class="ruby-identifier">other</span>)
288
+ <span class="ruby-comment">#fsafasfas</span>
289
+ <span class="ruby-identifier">vct</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">vct</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-3D-3D" class="method-detail ">
302
+
303
+ <div class="method-heading">
304
+ <span class="method-name">==</span><span
305
+ class="method-args">(other)</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 para saber si dos dietas son iguales ( se especifica explícitamente
315
+ en vez de usar el &lt;=&gt; )</p>
316
+
317
+
318
+
319
+
320
+ <div class="method-source-code" id="3D-3D-source">
321
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 27</span>
322
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">==</span> (<span class="ruby-identifier">other</span>)
323
+ <span class="ruby-identifier">vct</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">vct</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">porcentajes</span><span class="ruby-operator">==</span><span class="ruby-identifier">other</span>.<span class="ruby-identifier">porcentajes</span>
324
+
325
+ <span class="ruby-keyword">end</span></pre>
326
+ </div>
327
+
328
+ </div>
329
+
330
+
331
+
332
+
333
+ </div>
334
+
335
+
336
+ <div id="method-i-get_desc_plato" class="method-detail ">
337
+
338
+ <div class="method-heading">
339
+ <span class="method-name">get_desc_plato</span><span
340
+ class="method-args">(i)</span>
341
+
342
+ <span class="method-click-advice">click to toggle source</span>
343
+
344
+ </div>
345
+
346
+
347
+ <div class="method-description">
348
+
349
+ <p>Método que devuelve la descripción de uno de los platos</p>
350
+
351
+
352
+
353
+
354
+ <div class="method-source-code" id="get_desc_plato-source">
355
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 53</span>
356
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_desc_plato</span>(<span class="ruby-identifier">i</span>)
357
+ <span class="ruby-node">&quot;#{@platos[i][0]}, #{@platos[i][1]}, #{@platos[i][2]} &quot;</span>
358
+ <span class="ruby-keyword">end</span></pre>
359
+ </div>
360
+
361
+ </div>
362
+
363
+
364
+
365
+
366
+ </div>
367
+
368
+
369
+ <div id="method-i-get_grasas" class="method-detail ">
370
+
371
+ <div class="method-heading">
372
+ <span class="method-name">get_grasas</span><span
373
+ class="method-args">()</span>
374
+
375
+ <span class="method-click-advice">click to toggle source</span>
376
+
377
+ </div>
378
+
379
+
380
+ <div class="method-description">
381
+
382
+ <p>Método que devuelve el porcentaje de grasas de la dieta</p>
383
+
384
+
385
+
386
+
387
+ <div class="method-source-code" id="get_grasas-source">
388
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 82</span>
389
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_grasas</span>
390
+ <span class="ruby-ivar">@porcentajes</span>[<span class="ruby-value">1</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-get_hidratos" class="method-detail ">
403
+
404
+ <div class="method-heading">
405
+ <span class="method-name">get_hidratos</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 que devuelve el porcentaje de hidratos de la</p>
416
+
417
+
418
+
419
+
420
+ <div class="method-source-code" id="get_hidratos-source">
421
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 87</span>
422
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_hidratos</span>
423
+ <span class="ruby-ivar">@porcentajes</span>[<span class="ruby-value">2</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-get_ingesta_diaria" class="method-detail ">
436
+
437
+ <div class="method-heading">
438
+ <span class="method-name">get_ingesta_diaria</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 que devuelve la ingesta diaria de la <a href="Dieta.html">Dieta</a></p>
449
+
450
+
451
+
452
+
453
+ <div class="method-source-code" id="get_ingesta_diaria-source">
454
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 58</span>
455
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_ingesta_diaria</span>
456
+ <span class="ruby-ivar">@porcentaje_ingesta</span>
457
+ <span class="ruby-keyword">end</span></pre>
458
+ </div>
459
+
460
+ </div>
461
+
462
+
463
+
464
+
465
+ </div>
466
+
467
+
468
+ <div id="method-i-get_plato" class="method-detail ">
469
+
470
+ <div class="method-heading">
471
+ <span class="method-name">get_plato</span><span
472
+ class="method-args">(i)</span>
473
+
474
+ <span class="method-click-advice">click to toggle source</span>
475
+
476
+ </div>
477
+
478
+
479
+ <div class="method-description">
480
+
481
+ <p>Método que devuelve un plato de una dieta</p>
482
+
483
+
484
+
485
+
486
+ <div class="method-source-code" id="get_plato-source">
487
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 62</span>
488
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_plato</span>(<span class="ruby-identifier">i</span>)
489
+ <span class="ruby-ivar">@platos</span>[<span class="ruby-identifier">i</span>][<span class="ruby-value">0</span>]
490
+ <span class="ruby-keyword">end</span></pre>
491
+ </div>
492
+
493
+ </div>
494
+
495
+
496
+
497
+
498
+ </div>
499
+
500
+
501
+ <div id="method-i-get_platos" class="method-detail ">
502
+
503
+ <div class="method-heading">
504
+ <span class="method-name">get_platos</span><span
505
+ class="method-args">()</span>
506
+
507
+ <span class="method-click-advice">click to toggle source</span>
508
+
509
+ </div>
510
+
511
+
512
+ <div class="method-description">
513
+
514
+ <p>Método que devuelve los platos de la dieta</p>
515
+
516
+
517
+
518
+
519
+ <div class="method-source-code" id="get_platos-source">
520
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 67</span>
521
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_platos</span>
522
+ <span class="ruby-ivar">@platos</span>
523
+ <span class="ruby-keyword">end</span></pre>
524
+ </div>
525
+
526
+ </div>
527
+
528
+
529
+
530
+
531
+ </div>
532
+
533
+
534
+ <div id="method-i-get_proteinas" class="method-detail ">
535
+
536
+ <div class="method-heading">
537
+ <span class="method-name">get_proteinas</span><span
538
+ class="method-args">()</span>
539
+
540
+ <span class="method-click-advice">click to toggle source</span>
541
+
542
+ </div>
543
+
544
+
545
+ <div class="method-description">
546
+
547
+ <p>Método que devuelve el porcentaje de proteínas de la dieta</p>
548
+
549
+
550
+
551
+
552
+ <div class="method-source-code" id="get_proteinas-source">
553
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 77</span>
554
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_proteinas</span>
555
+ <span class="ruby-ivar">@porcentajes</span>[<span class="ruby-value">0</span>]
556
+ <span class="ruby-keyword">end</span></pre>
557
+ </div>
558
+
559
+ </div>
560
+
561
+
562
+
563
+
564
+ </div>
565
+
566
+
567
+ <div id="method-i-get_titulo" class="method-detail ">
568
+
569
+ <div class="method-heading">
570
+ <span class="method-name">get_titulo</span><span
571
+ class="method-args">()</span>
572
+
573
+ <span class="method-click-advice">click to toggle source</span>
574
+
575
+ </div>
576
+
577
+
578
+ <div class="method-description">
579
+
580
+ <p>Método que devuelve el título de la <a href="Dieta.html">Dieta</a></p>
581
+
582
+
583
+
584
+
585
+ <div class="method-source-code" id="get_titulo-source">
586
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 48</span>
587
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_titulo</span>
588
+ <span class="ruby-ivar">@titulo</span>
589
+ <span class="ruby-keyword">end</span></pre>
590
+ </div>
591
+
592
+ </div>
593
+
594
+
595
+
596
+
597
+ </div>
598
+
599
+
600
+ <div id="method-i-get_vct" class="method-detail ">
601
+
602
+ <div class="method-heading">
603
+ <span class="method-name">get_vct</span><span
604
+ class="method-args">()</span>
605
+
606
+ <span class="method-click-advice">click to toggle source</span>
607
+
608
+ </div>
609
+
610
+
611
+ <div class="method-description">
612
+
613
+ <p>Método que devuelve el VCT</p>
614
+
615
+
616
+
617
+
618
+ <div class="method-source-code" id="get_vct-source">
619
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 72</span>
620
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_vct</span>
621
+ <span class="ruby-ivar">@vct</span>
622
+ <span class="ruby-keyword">end</span></pre>
623
+ </div>
624
+
625
+ </div>
626
+
627
+
628
+
629
+
630
+ </div>
631
+
632
+
633
+ <div id="method-i-to_s" class="method-detail ">
634
+
635
+ <div class="method-heading">
636
+ <span class="method-name">to_s</span><span
637
+ class="method-args">()</span>
638
+
639
+ <span class="method-click-advice">click to toggle source</span>
640
+
641
+ </div>
642
+
643
+
644
+ <div class="method-description">
645
+
646
+ <p>Método para imprimir la <a href="Dieta.html">Dieta</a></p>
647
+
648
+
649
+
650
+
651
+ <div class="method-source-code" id="to_s-source">
652
+ <pre><span class="ruby-comment"># File lib/gema/dieta.rb, line 39</span>
653
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
654
+ <span class="ruby-identifier">title</span> = <span class="ruby-node">&quot;#{@titulo} ( #{@porcentaje_ingesta} )\n &quot;</span>
655
+ <span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-ivar">@platos</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>
656
+ <span class="ruby-identifier">title</span> <span class="ruby-operator">+=</span><span class="ruby-node">&quot;- #{@platos[i][0]}, #{@platos[i][1]}, #{@platos[i][2]} \n&quot;</span>
657
+ <span class="ruby-keyword">end</span>
658
+ <span class="ruby-identifier">title</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;V.C.T. |% #{@vct} kcal | #{@porcentajes[0]}% - #{@porcentajes[1]}% - #{@porcentajes[2]}%&quot;</span>
659
+ <span class="ruby-keyword">end</span></pre>
660
+ </div>
661
+
662
+ </div>
663
+
664
+
665
+
666
+
667
+ </div>
668
+
669
+
670
+ </section>
671
+
672
+ </section>
673
+ </main>
674
+
675
+
676
+ <footer id="validator-badges" role="contentinfo">
677
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
678
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
679
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
680
+ </footer>
681
+