etiqueta_nutricional 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +10 -0
  4. data/.travis.yml +9 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +111 -0
  8. data/Guardfile +82 -0
  9. data/README.md +24 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/doc/CODE_OF_CONDUCT_md.html +194 -0
  14. data/doc/Etiqueta.html +972 -0
  15. data/doc/EtiquetaNutricional.html +110 -0
  16. data/doc/EtiquetaNutricional/Error.html +103 -0
  17. data/doc/Gemfile.html +103 -0
  18. data/doc/Gemfile_lock.html +179 -0
  19. data/doc/Guardfile.html +179 -0
  20. data/doc/Individuo.html +373 -0
  21. data/doc/ListaEtiquetas.html +605 -0
  22. data/doc/Object.html +117 -0
  23. data/doc/Paciente.html +521 -0
  24. data/doc/README_md.html +128 -0
  25. data/doc/Rakefile.html +100 -0
  26. data/doc/bin/setup.html +100 -0
  27. data/doc/created.rid +18 -0
  28. data/doc/css/fonts.css +167 -0
  29. data/doc/css/rdoc.css +590 -0
  30. data/doc/etiqueta_nutricional_gemspec.html +140 -0
  31. data/doc/fonts/Lato-Light.ttf +0 -0
  32. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  33. data/doc/fonts/Lato-Regular.ttf +0 -0
  34. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  35. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  36. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  37. data/doc/images/add.png +0 -0
  38. data/doc/images/arrow_up.png +0 -0
  39. data/doc/images/brick.png +0 -0
  40. data/doc/images/brick_link.png +0 -0
  41. data/doc/images/bug.png +0 -0
  42. data/doc/images/bullet_black.png +0 -0
  43. data/doc/images/bullet_toggle_minus.png +0 -0
  44. data/doc/images/bullet_toggle_plus.png +0 -0
  45. data/doc/images/date.png +0 -0
  46. data/doc/images/delete.png +0 -0
  47. data/doc/images/find.png +0 -0
  48. data/doc/images/loadingAnimation.gif +0 -0
  49. data/doc/images/macFFBgHack.png +0 -0
  50. data/doc/images/package.png +0 -0
  51. data/doc/images/page_green.png +0 -0
  52. data/doc/images/page_white_text.png +0 -0
  53. data/doc/images/page_white_width.png +0 -0
  54. data/doc/images/plugin.png +0 -0
  55. data/doc/images/ruby.png +0 -0
  56. data/doc/images/tag_blue.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/transparent.png +0 -0
  59. data/doc/images/wrench.png +0 -0
  60. data/doc/images/wrench_orange.png +0 -0
  61. data/doc/images/zoom.png +0 -0
  62. data/doc/index.html +116 -0
  63. data/doc/js/darkfish.js +161 -0
  64. data/doc/js/jquery.js +4 -0
  65. data/doc/js/navigation.js +142 -0
  66. data/doc/js/navigation.js.gz +0 -0
  67. data/doc/js/search.js +109 -0
  68. data/doc/js/search_index.js +1 -0
  69. data/doc/js/search_index.js.gz +0 -0
  70. data/doc/js/searcher.js +229 -0
  71. data/doc/js/searcher.js.gz +0 -0
  72. data/doc/table_of_contents.html +337 -0
  73. data/etiqueta_nutricional.gemspec +48 -0
  74. data/lib/etiqueta_nutricional.rb +13 -0
  75. data/lib/etiqueta_nutricional/array.rb +50 -0
  76. data/lib/etiqueta_nutricional/etiqueta_nutricional.rb +114 -0
  77. data/lib/etiqueta_nutricional/individuo.rb +39 -0
  78. data/lib/etiqueta_nutricional/lista_etiquetas.rb +198 -0
  79. data/lib/etiqueta_nutricional/menu.rb +66 -0
  80. data/lib/etiqueta_nutricional/paciente.rb +148 -0
  81. data/lib/etiqueta_nutricional/tabla.rb +45 -0
  82. data/lib/etiqueta_nutricional/version.rb +3 -0
  83. metadata +222 -0
@@ -0,0 +1,179 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Guardfile - 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="file">
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="project-metadata">
57
+ <div id="fileindex-section" class="nav-section">
58
+ <h3>Pages</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
63
+
64
+ <li><a href="./Gemfile.html">Gemfile</a>
65
+
66
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
67
+
68
+ <li><a href="./Guardfile.html">Guardfile</a>
69
+
70
+ <li><a href="./README_md.html">README</a>
71
+
72
+ <li><a href="./Rakefile.html">Rakefile</a>
73
+
74
+ <li><a href="./bin/setup.html">setup</a>
75
+
76
+ <li><a href="./etiqueta_nutricional_gemspec.html">etiqueta_nutricional.gemspec</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Guardfile">
85
+
86
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
87
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
88
+
89
+ <p>## Uncomment and set this to only include directories you want to watch #
90
+ directories %w(app lib config test spec features) \ # .select{|d|
91
+ Dir.exist?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
92
+
93
+ <p>## Note: if you are using the `directories` clause above and you are not ##
94
+ watching the project directory (&#39;.&#39;), then you will want to move ##
95
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
96
+ back, e.g. # # $ mkdir config # $ mv <a
97
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
98
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
99
+
100
+ <p>guard :bundler do</p>
101
+
102
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
103
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
104
+ <span class="ruby-identifier">helper</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Verify</span>.<span class="ruby-identifier">new</span>
105
+
106
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
107
+ <span class="ruby-identifier">files</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">Dir</span>[<span class="ruby-string">&#39;*.gemspec&#39;</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">files</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">helper</span>.<span class="ruby-identifier">uses_gemspec?</span>(<span class="ruby-identifier">f</span>) }
108
+
109
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
110
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">helper</span>.<span class="ruby-identifier">real_path</span>(<span class="ruby-identifier">file</span>)) }
111
+ </pre>
112
+
113
+ <p>end</p>
114
+
115
+ <p># Note: The cmd option is now required due to the increasing number of ways
116
+ # rspec may be run, below are examples of the most common uses. # *
117
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
118
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
119
+ if running and you have # installed the spring
120
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
121
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
122
+
123
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
124
+
125
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
126
+ <span class="ruby-identifier">dsl</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">RSpec</span><span class="ruby-operator">::</span><span class="ruby-constant">Dsl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>)
127
+
128
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
129
+
130
+ <span class="ruby-comment"># RSpec files</span>
131
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
132
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
133
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_support</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
134
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
135
+
136
+ <span class="ruby-comment"># Ruby files</span>
137
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
138
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">lib_files</span>)
139
+
140
+ <span class="ruby-comment"># Rails files</span>
141
+ <span class="ruby-identifier">rails</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rails</span>(<span class="ruby-identifier">view_extensions</span><span class="ruby-operator">:</span> <span class="ruby-node">%w(erb haml slim)</span>)
142
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_files</span>)
143
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">views</span>)
144
+
145
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">controllers</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
146
+ [
147
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;routing/#{m[1]}_routing&quot;</span>),
148
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;controllers/#{m[1]}_controller&quot;</span>),
149
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;acceptance/#{m[1]}&quot;</span>)
150
+ ]
151
+ <span class="ruby-keyword">end</span>
152
+
153
+ <span class="ruby-comment"># Rails config changes</span>
154
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
155
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">routes</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/routing&quot;</span> }
156
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_controller</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/controllers&quot;</span> }
157
+
158
+ <span class="ruby-comment"># Capybara features specs</span>
159
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">view_dirs</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
160
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">layouts</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
161
+
162
+ <span class="ruby-comment"># Turnip features and steps</span>
163
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
164
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/steps/(.+)_steps\.rb$}</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
165
+ <span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">&quot;**/#{m[1]}.feature&quot;</span>)][<span class="ruby-value">0</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&quot;spec/acceptance&quot;</span>
166
+ <span class="ruby-keyword">end</span>
167
+ </pre>
168
+
169
+ <p>end</p>
170
+ </main>
171
+
172
+
173
+
174
+ <footer id="validator-badges" role="contentinfo">
175
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
176
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
177
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
178
+ </footer>
179
+
@@ -0,0 +1,373 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Individuo - 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-obtener_edad">#obtener_edad</a>
90
+
91
+ <li ><a href="#method-i-obtener_nombre">#obtener_nombre</a>
92
+
93
+ <li ><a href="#method-i-to_s">#to_s</a>
94
+
95
+ </ul>
96
+ </div>
97
+
98
+ </div>
99
+ </nav>
100
+
101
+ <main role="main" aria-labelledby="class-Individuo">
102
+ <h1 id="class-Individuo" class="class">
103
+ class Individuo
104
+ </h1>
105
+
106
+ <section class="description">
107
+
108
+ </section>
109
+
110
+
111
+
112
+
113
+ <section id="5Buntitled-5D" class="documentation-section">
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <section class="attribute-method-details" class="method-section">
122
+ <header>
123
+ <h3>Attributes</h3>
124
+ </header>
125
+
126
+
127
+ <div id="attribute-i-edad" class="method-detail">
128
+ <div class="method-heading attribute-method-heading">
129
+ <span class="method-name">edad</span><span
130
+ class="attribute-access-type">[R]</span>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+
135
+
136
+
137
+ </div>
138
+ </div>
139
+
140
+ <div id="attribute-i-nombre" class="method-detail">
141
+ <div class="method-heading attribute-method-heading">
142
+ <span class="method-name">nombre</span><span
143
+ class="attribute-access-type">[R]</span>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+
148
+
149
+
150
+ </div>
151
+ </div>
152
+
153
+ <div id="attribute-i-sexo" class="method-detail">
154
+ <div class="method-heading attribute-method-heading">
155
+ <span class="method-name">sexo</span><span
156
+ class="attribute-access-type">[R]</span>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+
161
+
162
+
163
+ </div>
164
+ </div>
165
+
166
+ </section>
167
+
168
+
169
+
170
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
171
+ <header>
172
+ <h3>Public Class Methods</h3>
173
+ </header>
174
+
175
+
176
+ <div id="method-c-new" class="method-detail ">
177
+
178
+ <div class="method-heading">
179
+ <span class="method-name">new</span><span
180
+ class="method-args">(nombre, edad, sexo)</span>
181
+
182
+ <span class="method-click-advice">click to toggle source</span>
183
+
184
+ </div>
185
+
186
+
187
+ <div class="method-description">
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <div class="method-source-code" id="new-source">
195
+ <pre><span class="ruby-comment"># File lib/etiqueta_nutricional/individuo.rb, line 7</span>
196
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">nombre</span>, <span class="ruby-identifier">edad</span>, <span class="ruby-identifier">sexo</span>)
197
+ <span class="ruby-ivar">@nombre</span> = <span class="ruby-identifier">nombre</span>
198
+ <span class="ruby-ivar">@edad</span> = <span class="ruby-identifier">edad</span>
199
+ <span class="ruby-ivar">@sexo</span> = <span class="ruby-identifier">sexo</span>
200
+ <span class="ruby-keyword">end</span></pre>
201
+ </div>
202
+
203
+ </div>
204
+
205
+
206
+
207
+
208
+ </div>
209
+
210
+
211
+ </section>
212
+
213
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
214
+ <header>
215
+ <h3>Public Instance Methods</h3>
216
+ </header>
217
+
218
+
219
+ <div id="method-i-3C-3D-3E" class="method-detail ">
220
+
221
+ <div class="method-heading">
222
+ <span class="method-name">&lt;=&gt;</span><span
223
+ class="method-args">(other)</span>
224
+
225
+ <span class="method-click-advice">click to toggle source</span>
226
+
227
+ </div>
228
+
229
+
230
+ <div class="method-description">
231
+
232
+
233
+
234
+
235
+
236
+
237
+ <div class="method-source-code" id="3C-3D-3E-source">
238
+ <pre><span class="ruby-comment"># File lib/etiqueta_nutricional/individuo.rb, line 35</span>
239
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
240
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">instance_of?</span> <span class="ruby-constant">Individuo</span>
241
+ <span class="ruby-ivar">@edad</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">edad</span>
242
+ <span class="ruby-keyword">end</span></pre>
243
+ </div>
244
+
245
+ </div>
246
+
247
+
248
+
249
+
250
+ </div>
251
+
252
+
253
+ <div id="method-i-obtener_edad" class="method-detail ">
254
+
255
+ <div class="method-heading">
256
+ <span class="method-name">obtener_edad</span><span
257
+ class="method-args">()</span>
258
+
259
+ <span class="method-click-advice">click to toggle source</span>
260
+
261
+ </div>
262
+
263
+
264
+ <div class="method-description">
265
+
266
+
267
+
268
+
269
+
270
+
271
+ <div class="method-source-code" id="obtener_edad-source">
272
+ <pre><span class="ruby-comment"># File lib/etiqueta_nutricional/individuo.rb, line 17</span>
273
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">obtener_edad</span>
274
+ <span class="ruby-ivar">@edad</span>
275
+ <span class="ruby-keyword">end</span></pre>
276
+ </div>
277
+
278
+ </div>
279
+
280
+
281
+
282
+
283
+ </div>
284
+
285
+
286
+ <div id="method-i-obtener_nombre" class="method-detail ">
287
+
288
+ <div class="method-heading">
289
+ <span class="method-name">obtener_nombre</span><span
290
+ class="method-args">()</span>
291
+
292
+ <span class="method-click-advice">click to toggle source</span>
293
+
294
+ </div>
295
+
296
+
297
+ <div class="method-description">
298
+
299
+
300
+
301
+
302
+
303
+
304
+ <div class="method-source-code" id="obtener_nombre-source">
305
+ <pre><span class="ruby-comment"># File lib/etiqueta_nutricional/individuo.rb, line 13</span>
306
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">obtener_nombre</span>
307
+ <span class="ruby-ivar">@nombre</span>
308
+ <span class="ruby-keyword">end</span></pre>
309
+ </div>
310
+
311
+ </div>
312
+
313
+
314
+
315
+
316
+ </div>
317
+
318
+
319
+ <div id="method-i-to_s" class="method-detail ">
320
+
321
+ <div class="method-heading">
322
+ <span class="method-name">to_s</span><span
323
+ class="method-args">()</span>
324
+
325
+ <span class="method-click-advice">click to toggle source</span>
326
+
327
+ </div>
328
+
329
+
330
+ <div class="method-description">
331
+
332
+
333
+
334
+
335
+
336
+
337
+ <div class="method-source-code" id="to_s-source">
338
+ <pre><span class="ruby-comment"># File lib/etiqueta_nutricional/individuo.rb, line 21</span>
339
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
340
+ <span class="ruby-identifier">cadena</span> = <span class="ruby-string">&quot;&quot;</span>
341
+ <span class="ruby-identifier">sexo</span> = <span class="ruby-string">&quot;&quot;</span>
342
+ <span class="ruby-identifier">cadena</span> = <span class="ruby-identifier">cadena</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;Nombre: #{@nombre}\n&quot;</span>
343
+ <span class="ruby-identifier">cadena</span> = <span class="ruby-identifier">cadena</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;Edad: #{@edad}\n&quot;</span>
344
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@sexo</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span>
345
+ <span class="ruby-identifier">sexo</span> = <span class="ruby-string">&quot;Hombre&quot;</span>
346
+ <span class="ruby-keyword">else</span>
347
+ <span class="ruby-identifier">sexo</span> = <span class="ruby-string">&quot;Mujer&quot;</span>
348
+ <span class="ruby-keyword">end</span>
349
+ <span class="ruby-identifier">cadena</span> = <span class="ruby-identifier">cadena</span> <span class="ruby-operator">+</span> <span class="ruby-node">&quot;Sexo: #{sexo}\n&quot;</span>
350
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">cadena</span>
351
+ <span class="ruby-keyword">end</span></pre>
352
+ </div>
353
+
354
+ </div>
355
+
356
+
357
+
358
+
359
+ </div>
360
+
361
+
362
+ </section>
363
+
364
+ </section>
365
+ </main>
366
+
367
+
368
+ <footer id="validator-badges" role="contentinfo">
369
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
370
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.0.0.
371
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
372
+ </footer>
373
+