alimento-alu0100965667 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +12 -0
  3. data/.travis.yml +5 -0
  4. data/CODE_OF_CONDUCT.md +74 -0
  5. data/Gemfile +6 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +43 -0
  9. data/Rakefile +6 -0
  10. data/alimento.gemspec +41 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/docs/Alimento/Alimento.html +504 -0
  14. data/docs/Alimento/GrupoAlimentos.html +235 -0
  15. data/docs/Alimento/Lista.html +406 -0
  16. data/docs/Alimento.html +130 -0
  17. data/docs/CODE_OF_CONDUCT_md.html +233 -0
  18. data/docs/Gemfile.html +141 -0
  19. data/docs/Gemfile_lock.html +218 -0
  20. data/docs/Guardfile.html +218 -0
  21. data/docs/LICENSE_txt.html +155 -0
  22. data/docs/README_md.html +210 -0
  23. data/docs/Rakefile.html +139 -0
  24. data/docs/alimento_gemspec.html +174 -0
  25. data/docs/bin/setup.html +139 -0
  26. data/docs/created.rid +36 -0
  27. data/docs/css/fonts.css +167 -0
  28. data/docs/css/rdoc.css +590 -0
  29. data/docs/docs/Alimento/Alimento_html.html +748 -0
  30. data/docs/docs/Alimento/GrupoAlimentos_html.html +469 -0
  31. data/docs/docs/Alimento/Lista_html.html +678 -0
  32. data/docs/docs/Alimento/Nodo_html.html +471 -0
  33. data/docs/docs/Alimento_html.html +272 -0
  34. data/docs/docs/_index_html.html +294 -0
  35. data/docs/docs/class_list_html.html +219 -0
  36. data/docs/docs/css/common_css.html +135 -0
  37. data/docs/docs/css/full_list_css.html +190 -0
  38. data/docs/docs/css/style_css.html +652 -0
  39. data/docs/docs/file_README_html.html +285 -0
  40. data/docs/docs/file_list_html.html +185 -0
  41. data/docs/docs/frames_html.html +153 -0
  42. data/docs/docs/index_html.html +285 -0
  43. data/docs/docs/js/app_js.html +413 -0
  44. data/docs/docs/js/full_list_js.html +383 -0
  45. data/docs/docs/js/jquery_js.html +1483 -0
  46. data/docs/docs/method_list_html.html +328 -0
  47. data/docs/docs/top-level-namespace_html.html +223 -0
  48. data/docs/fonts/Lato-Light.ttf +0 -0
  49. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  50. data/docs/fonts/Lato-Regular.ttf +0 -0
  51. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  52. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  53. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  54. data/docs/images/add.png +0 -0
  55. data/docs/images/arrow_up.png +0 -0
  56. data/docs/images/brick.png +0 -0
  57. data/docs/images/brick_link.png +0 -0
  58. data/docs/images/bug.png +0 -0
  59. data/docs/images/bullet_black.png +0 -0
  60. data/docs/images/bullet_toggle_minus.png +0 -0
  61. data/docs/images/bullet_toggle_plus.png +0 -0
  62. data/docs/images/date.png +0 -0
  63. data/docs/images/delete.png +0 -0
  64. data/docs/images/find.png +0 -0
  65. data/docs/images/loadingAnimation.gif +0 -0
  66. data/docs/images/macFFBgHack.png +0 -0
  67. data/docs/images/package.png +0 -0
  68. data/docs/images/page_green.png +0 -0
  69. data/docs/images/page_white_text.png +0 -0
  70. data/docs/images/page_white_width.png +0 -0
  71. data/docs/images/plugin.png +0 -0
  72. data/docs/images/ruby.png +0 -0
  73. data/docs/images/tag_blue.png +0 -0
  74. data/docs/images/tag_green.png +0 -0
  75. data/docs/images/transparent.png +0 -0
  76. data/docs/images/wrench.png +0 -0
  77. data/docs/images/wrench_orange.png +0 -0
  78. data/docs/images/zoom.png +0 -0
  79. data/docs/index.html +149 -0
  80. data/docs/js/darkfish.js +161 -0
  81. data/docs/js/jquery.js +4 -0
  82. data/docs/js/navigation.js +142 -0
  83. data/docs/js/navigation.js.gz +0 -0
  84. data/docs/js/search.js +109 -0
  85. data/docs/js/search_index.js +1 -0
  86. data/docs/js/search_index.js.gz +0 -0
  87. data/docs/js/searcher.js +228 -0
  88. data/docs/js/searcher.js.gz +0 -0
  89. data/docs/table_of_contents.html +246 -0
  90. data/lib/alimento/alimento.rb +78 -0
  91. data/lib/alimento/enumerable.rb +20 -0
  92. data/lib/alimento/lista.rb +68 -0
  93. data/lib/alimento/plato.rb +119 -0
  94. data/lib/alimento/version.rb +4 -0
  95. data/lib/alimento.rb +16 -0
  96. metadata +222 -0
@@ -0,0 +1,235 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Alimento::GrupoAlimentos - 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="Alimento.html">Alimento::Alimento</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Alimento::GrupoAlimentos">
84
+ <h1 id="class-Alimento::GrupoAlimentos" class="class">
85
+ class Alimento::GrupoAlimentos
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ <p>Clase que hereda de alimento, extendiéndola, añadiéndole el nombre del
91
+ grupo de alimentos al que pertenece</p>
92
+
93
+ </section>
94
+
95
+
96
+
97
+
98
+ <section id="5Buntitled-5D" class="documentation-section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <section class="attribute-method-details" class="method-section">
107
+ <header>
108
+ <h3>Attributes</h3>
109
+ </header>
110
+
111
+
112
+ <div id="attribute-i-grupo" class="method-detail">
113
+ <div class="method-heading attribute-method-heading">
114
+ <span class="method-name">grupo</span><span
115
+ class="attribute-access-type">[R]</span>
116
+ </div>
117
+
118
+ <div class="method-description">
119
+
120
+
121
+
122
+ </div>
123
+ </div>
124
+
125
+ </section>
126
+
127
+
128
+
129
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
130
+ <header>
131
+ <h3>Public Class Methods</h3>
132
+ </header>
133
+
134
+
135
+ <div id="method-c-new" class="method-detail ">
136
+
137
+ <div class="method-heading">
138
+ <span class="method-name">new</span><span
139
+ class="method-args">(nombre, proteinas, glucidos, lipidos, datos, grupo)</span>
140
+
141
+ <span class="method-click-advice">click to toggle source</span>
142
+
143
+ </div>
144
+
145
+
146
+ <div class="method-description">
147
+
148
+ <p>Se llama al contructor de la clase madre y se asigna el valor de la nueva
149
+ variable</p>
150
+
151
+
152
+ <div class="method-calls-super">
153
+ Calls superclass method
154
+ <a href="Alimento.html#method-c-new">Alimento::Alimento.new</a>
155
+ </div>
156
+
157
+
158
+
159
+ <div class="method-source-code" id="new-source">
160
+ <pre><span class="ruby-comment"># File lib/alimento/alimento.rb, line 67</span>
161
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">nombre</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">glucidos</span>, <span class="ruby-identifier">lipidos</span>, <span class="ruby-identifier">datos</span>, <span class="ruby-identifier">grupo</span>)
162
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">nombre</span>, <span class="ruby-identifier">proteinas</span>, <span class="ruby-identifier">glucidos</span>, <span class="ruby-identifier">lipidos</span>, <span class="ruby-identifier">datos</span>)
163
+ <span class="ruby-ivar">@grupo</span> = <span class="ruby-identifier">grupo</span>
164
+ <span class="ruby-keyword">end</span></pre>
165
+ </div>
166
+
167
+ </div>
168
+
169
+
170
+
171
+
172
+ </div>
173
+
174
+
175
+ </section>
176
+
177
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
178
+ <header>
179
+ <h3>Public Instance Methods</h3>
180
+ </header>
181
+
182
+
183
+ <div id="method-i-to_s" class="method-detail ">
184
+
185
+ <div class="method-heading">
186
+ <span class="method-name">to_s</span><span
187
+ class="method-args">()</span>
188
+
189
+ <span class="method-click-advice">click to toggle source</span>
190
+
191
+ </div>
192
+
193
+
194
+ <div class="method-description">
195
+
196
+ <p>Devuelve el <a href="Alimento.html">Alimento</a> formateado añadiéndole el
197
+ nombre del grupo</p>
198
+
199
+
200
+ <div class="method-calls-super">
201
+ Calls superclass method
202
+ <a href="Alimento.html#method-i-to_s">Alimento::Alimento#to_s</a>
203
+ </div>
204
+
205
+
206
+
207
+ <div class="method-source-code" id="to_s-source">
208
+ <pre><span class="ruby-comment"># File lib/alimento/alimento.rb, line 73</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
210
+ <span class="ruby-identifier">s</span> = <span class="ruby-node">&quot;Grupo: #{grupo}\n&quot;</span>
211
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-keyword">super</span>.<span class="ruby-identifier">to_s</span>
212
+ <span class="ruby-identifier">s</span>
213
+ <span class="ruby-keyword">end</span></pre>
214
+ </div>
215
+
216
+ </div>
217
+
218
+
219
+
220
+
221
+ </div>
222
+
223
+
224
+ </section>
225
+
226
+ </section>
227
+ </main>
228
+
229
+
230
+ <footer id="validator-badges" role="contentinfo">
231
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
232
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
233
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
234
+ </footer>
235
+
@@ -0,0 +1,406 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Alimento::Lista - 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">Object
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">Enumerable</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-each">#each</a>
87
+
88
+ <li ><a href="#method-i-head">#head</a>
89
+
90
+ <li ><a href="#method-i-head_out">#head_out</a>
91
+
92
+ <li ><a href="#method-i-insert">#insert</a>
93
+
94
+ <li ><a href="#method-i-tail">#tail</a>
95
+
96
+ <li ><a href="#method-i-tail_out">#tail_out</a>
97
+
98
+ </ul>
99
+ </div>
100
+
101
+ </div>
102
+ </nav>
103
+
104
+ <main role="main" aria-labelledby="class-Alimento::Lista">
105
+ <h1 id="class-Alimento::Lista" class="class">
106
+ class Alimento::Lista
107
+ </h1>
108
+
109
+ <section class="description">
110
+
111
+ <p>Clase que representa a una lista doblemente enlazada Se ha incluido el
112
+ mixin Enumerable</p>
113
+
114
+ </section>
115
+
116
+
117
+
118
+
119
+ <section id="5Buntitled-5D" class="documentation-section">
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
130
+ <header>
131
+ <h3>Public Class Methods</h3>
132
+ </header>
133
+
134
+
135
+ <div id="method-c-new" class="method-detail ">
136
+
137
+ <div class="method-heading">
138
+ <span class="method-name">new</span><span
139
+ class="method-args">(head, tail)</span>
140
+
141
+ <span class="method-click-advice">click to toggle source</span>
142
+
143
+ </div>
144
+
145
+
146
+ <div class="method-description">
147
+
148
+ <p>Se asignan la cabeza (@head) y la cola (@tail) y se enlazan</p>
149
+
150
+
151
+
152
+
153
+ <div class="method-source-code" id="new-source">
154
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 12</span>
155
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">head</span>, <span class="ruby-identifier">tail</span>)
156
+ <span class="ruby-ivar">@head</span> = <span class="ruby-identifier">head</span>
157
+ <span class="ruby-ivar">@tail</span> = <span class="ruby-identifier">tail</span>
158
+
159
+ <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">siguiente</span> = <span class="ruby-ivar">@tail</span>
160
+ <span class="ruby-ivar">@tail</span>.<span class="ruby-identifier">anterior</span> = <span class="ruby-ivar">@head</span>
161
+ <span class="ruby-keyword">end</span></pre>
162
+ </div>
163
+
164
+ </div>
165
+
166
+
167
+
168
+
169
+ </div>
170
+
171
+
172
+ </section>
173
+
174
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
175
+ <header>
176
+ <h3>Public Instance Methods</h3>
177
+ </header>
178
+
179
+
180
+ <div id="method-i-each" class="method-detail ">
181
+
182
+ <div class="method-heading">
183
+ <span class="method-name">each</span><span
184
+ class="method-args">() { |valor| ... }</span>
185
+
186
+ <span class="method-click-advice">click to toggle source</span>
187
+
188
+ </div>
189
+
190
+
191
+ <div class="method-description">
192
+
193
+ <p>Se incluye el método del mixin Enumerable Se define como una iteración
194
+ sobre los valores de cada nodod de la lista</p>
195
+
196
+
197
+
198
+
199
+ <div class="method-source-code" id="each-source">
200
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 59</span>
201
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
202
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-ivar">@head</span>
203
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">tmp</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">do</span>
204
+ <span class="ruby-keyword">yield</span> <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">valor</span>
205
+ <span class="ruby-identifier">tmp</span> = <span class="ruby-identifier">tmp</span>.<span class="ruby-identifier">siguiente</span>
206
+ <span class="ruby-keyword">end</span>
207
+ <span class="ruby-keyword">end</span></pre>
208
+ </div>
209
+
210
+ </div>
211
+
212
+
213
+
214
+
215
+ </div>
216
+
217
+
218
+ <div id="method-i-head" class="method-detail ">
219
+
220
+ <div class="method-heading">
221
+ <span class="method-name">head</span><span
222
+ class="method-args">()</span>
223
+
224
+ <span class="method-click-advice">click to toggle source</span>
225
+
226
+ </div>
227
+
228
+
229
+ <div class="method-description">
230
+
231
+ <p>Getter/Setter de @head</p>
232
+
233
+
234
+
235
+
236
+ <div class="method-source-code" id="head-source">
237
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 21</span>
238
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">head</span>
239
+ <span class="ruby-ivar">@head</span>
240
+ <span class="ruby-keyword">end</span></pre>
241
+ </div>
242
+
243
+ </div>
244
+
245
+
246
+
247
+
248
+ </div>
249
+
250
+
251
+ <div id="method-i-head_out" class="method-detail ">
252
+
253
+ <div class="method-heading">
254
+ <span class="method-name">head_out</span><span
255
+ class="method-args">()</span>
256
+
257
+ <span class="method-click-advice">click to toggle source</span>
258
+
259
+ </div>
260
+
261
+
262
+ <div class="method-description">
263
+
264
+ <p>Método que extrae/elimina el primer valor de la lista</p>
265
+
266
+
267
+
268
+
269
+ <div class="method-source-code" id="head_out-source">
270
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 42</span>
271
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">head_out</span>
272
+ <span class="ruby-identifier">aux</span> = <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">siguiente</span>
273
+ <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">siguiente</span> = <span class="ruby-keyword">nil</span>
274
+ <span class="ruby-ivar">@head</span> = <span class="ruby-identifier">aux</span>
275
+ <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">anterior</span> = <span class="ruby-keyword">nil</span>
276
+ <span class="ruby-keyword">end</span></pre>
277
+ </div>
278
+
279
+ </div>
280
+
281
+
282
+
283
+
284
+ </div>
285
+
286
+
287
+ <div id="method-i-insert" class="method-detail ">
288
+
289
+ <div class="method-heading">
290
+ <span class="method-name">insert</span><span
291
+ class="method-args">(nodo)</span>
292
+
293
+ <span class="method-click-advice">click to toggle source</span>
294
+
295
+ </div>
296
+
297
+
298
+ <div class="method-description">
299
+
300
+ <p>Método que inserta un nodo en la cabeza de la lista</p>
301
+
302
+
303
+
304
+
305
+ <div class="method-source-code" id="insert-source">
306
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 31</span>
307
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insert</span>(<span class="ruby-identifier">nodo</span>)
308
+ <span class="ruby-keyword">if</span>(<span class="ruby-identifier">nodo</span>.<span class="ruby-identifier">is_a?</span><span class="ruby-constant">Nodo</span>) <span class="ruby-keyword">then</span>
309
+ <span class="ruby-identifier">aux</span> = <span class="ruby-ivar">@head</span>
310
+ <span class="ruby-ivar">@head</span> = <span class="ruby-identifier">nodo</span>
311
+ <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">anterior</span> = <span class="ruby-keyword">nil</span>
312
+ <span class="ruby-ivar">@head</span>.<span class="ruby-identifier">siguiente</span> = <span class="ruby-identifier">aux</span>
313
+ <span class="ruby-identifier">aux</span>.<span class="ruby-identifier">anterior</span> = <span class="ruby-ivar">@head</span>
314
+ <span class="ruby-keyword">end</span>
315
+ <span class="ruby-keyword">end</span></pre>
316
+ </div>
317
+
318
+ </div>
319
+
320
+
321
+
322
+
323
+ </div>
324
+
325
+
326
+ <div id="method-i-tail" class="method-detail ">
327
+
328
+ <div class="method-heading">
329
+ <span class="method-name">tail</span><span
330
+ class="method-args">()</span>
331
+
332
+ <span class="method-click-advice">click to toggle source</span>
333
+
334
+ </div>
335
+
336
+
337
+ <div class="method-description">
338
+
339
+ <p>Getter/Setter de @tail</p>
340
+
341
+
342
+
343
+
344
+ <div class="method-source-code" id="tail-source">
345
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 26</span>
346
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">tail</span>
347
+ <span class="ruby-ivar">@tail</span>
348
+ <span class="ruby-keyword">end</span></pre>
349
+ </div>
350
+
351
+ </div>
352
+
353
+
354
+
355
+
356
+ </div>
357
+
358
+
359
+ <div id="method-i-tail_out" class="method-detail ">
360
+
361
+ <div class="method-heading">
362
+ <span class="method-name">tail_out</span><span
363
+ class="method-args">()</span>
364
+
365
+ <span class="method-click-advice">click to toggle source</span>
366
+
367
+ </div>
368
+
369
+
370
+ <div class="method-description">
371
+
372
+ <p>Método que extrae/elimina el último valor de la lista</p>
373
+
374
+
375
+
376
+
377
+ <div class="method-source-code" id="tail_out-source">
378
+ <pre><span class="ruby-comment"># File lib/alimento/lista.rb, line 50</span>
379
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">tail_out</span>
380
+ <span class="ruby-identifier">aux</span> = <span class="ruby-ivar">@tail</span>.<span class="ruby-identifier">anterior</span>
381
+ <span class="ruby-ivar">@tail</span>.<span class="ruby-identifier">anterior</span> = <span class="ruby-keyword">nil</span>
382
+ <span class="ruby-ivar">@tail</span> = <span class="ruby-identifier">aux</span>
383
+ <span class="ruby-ivar">@tail</span>.<span class="ruby-identifier">siguiente</span> = <span class="ruby-keyword">nil</span>
384
+ <span class="ruby-keyword">end</span></pre>
385
+ </div>
386
+
387
+ </div>
388
+
389
+
390
+
391
+
392
+ </div>
393
+
394
+
395
+ </section>
396
+
397
+ </section>
398
+ </main>
399
+
400
+
401
+ <footer id="validator-badges" role="contentinfo">
402
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
403
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
404
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
405
+ </footer>
406
+