food_alu0100904406 0.1.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.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +12 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +6 -0
  6. data/Guardfile +82 -0
  7. data/README.md +40 -0
  8. data/Rakefile +6 -0
  9. data/bin/console +14 -0
  10. data/bin/setup +8 -0
  11. data/docs/Alimento_.html +407 -0
  12. data/docs/Food.html +110 -0
  13. data/docs/Gemfile.html +100 -0
  14. data/docs/Gemfile_lock.html +177 -0
  15. data/docs/Grupo_alimento.html +235 -0
  16. data/docs/Guardfile.html +177 -0
  17. data/docs/Lista.html +365 -0
  18. data/docs/Object.html +118 -0
  19. data/docs/README_md.html +151 -0
  20. data/docs/Rakefile.html +98 -0
  21. data/docs/bin/setup.html +98 -0
  22. data/docs/created.rid +16 -0
  23. data/docs/css/fonts.css +167 -0
  24. data/docs/css/rdoc.css +590 -0
  25. data/docs/fonts/Lato-Light.ttf +0 -0
  26. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  27. data/docs/fonts/Lato-Regular.ttf +0 -0
  28. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  29. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  30. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  31. data/docs/food_gemspec.html +130 -0
  32. data/docs/images/add.png +0 -0
  33. data/docs/images/arrow_up.png +0 -0
  34. data/docs/images/brick.png +0 -0
  35. data/docs/images/brick_link.png +0 -0
  36. data/docs/images/bug.png +0 -0
  37. data/docs/images/bullet_black.png +0 -0
  38. data/docs/images/bullet_toggle_minus.png +0 -0
  39. data/docs/images/bullet_toggle_plus.png +0 -0
  40. data/docs/images/date.png +0 -0
  41. data/docs/images/delete.png +0 -0
  42. data/docs/images/find.png +0 -0
  43. data/docs/images/loadingAnimation.gif +0 -0
  44. data/docs/images/macFFBgHack.png +0 -0
  45. data/docs/images/package.png +0 -0
  46. data/docs/images/page_green.png +0 -0
  47. data/docs/images/page_white_text.png +0 -0
  48. data/docs/images/page_white_width.png +0 -0
  49. data/docs/images/plugin.png +0 -0
  50. data/docs/images/ruby.png +0 -0
  51. data/docs/images/tag_blue.png +0 -0
  52. data/docs/images/tag_green.png +0 -0
  53. data/docs/images/transparent.png +0 -0
  54. data/docs/images/wrench.png +0 -0
  55. data/docs/images/wrench_orange.png +0 -0
  56. data/docs/images/zoom.png +0 -0
  57. data/docs/index.html +110 -0
  58. data/docs/js/darkfish.js +161 -0
  59. data/docs/js/jquery.js +4 -0
  60. data/docs/js/navigation.js +142 -0
  61. data/docs/js/navigation.js.gz +0 -0
  62. data/docs/js/search.js +109 -0
  63. data/docs/js/search_index.js +1 -0
  64. data/docs/js/search_index.js.gz +0 -0
  65. data/docs/js/searcher.js +229 -0
  66. data/docs/js/searcher.js.gz +0 -0
  67. data/docs/table_of_contents.html +150 -0
  68. data/food.gemspec +39 -0
  69. data/lib/food/food_.rb +73 -0
  70. data/lib/food/list.rb +104 -0
  71. data/lib/food/plato.rb +146 -0
  72. data/lib/food/version.rb +3 -0
  73. data/lib/food.rb +8 -0
  74. metadata +213 -0
@@ -0,0 +1,177 @@
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="./Gemfile.html">Gemfile</a>
63
+
64
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
65
+
66
+ <li><a href="./Guardfile.html">Guardfile</a>
67
+
68
+ <li><a href="./README_md.html">README</a>
69
+
70
+ <li><a href="./Rakefile.html">Rakefile</a>
71
+
72
+ <li><a href="./bin/setup.html">setup</a>
73
+
74
+ <li><a href="./food_gemspec.html">food.gemspec</a>
75
+
76
+ </ul>
77
+ </div>
78
+
79
+ </div>
80
+ </nav>
81
+
82
+ <main role="main" aria-label="Page Guardfile">
83
+
84
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
85
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
86
+
87
+ <p>## Uncomment and set this to only include directories you want to watch #
88
+ directories %w(app lib config test spec features) \ # .select{|d|
89
+ Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
90
+
91
+ <p>## Note: if you are using the `directories` clause above and you are not ##
92
+ watching the project directory (&#39;.&#39;), then you will want to move ##
93
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
94
+ back, e.g. # # $ mkdir config # $ mv <a
95
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
96
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
97
+
98
+ <p>guard :bundler do</p>
99
+
100
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
101
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
102
+ <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>
103
+
104
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
105
+ <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>) }
106
+
107
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
108
+ <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>)) }
109
+ </pre>
110
+
111
+ <p>end</p>
112
+
113
+ <p># Note: The cmd option is now required due to the increasing number of ways
114
+ # rspec may be run, below are examples of the most common uses. # *
115
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
116
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
117
+ if running and you have # installed the spring
118
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
119
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
120
+
121
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
122
+
123
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
124
+ <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>)
125
+
126
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
127
+
128
+ <span class="ruby-comment"># RSpec files</span>
129
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
130
+ <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> }
131
+ <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> }
132
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
133
+
134
+ <span class="ruby-comment"># Ruby files</span>
135
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
136
+ <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>)
137
+
138
+ <span class="ruby-comment"># Rails files</span>
139
+ <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>)
140
+ <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>)
141
+ <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>)
142
+
143
+ <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>
144
+ [
145
+ <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>),
146
+ <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>),
147
+ <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>)
148
+ ]
149
+ <span class="ruby-keyword">end</span>
150
+
151
+ <span class="ruby-comment"># Rails config changes</span>
152
+ <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> }
153
+ <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> }
154
+ <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> }
155
+
156
+ <span class="ruby-comment"># Capybara features specs</span>
157
+ <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>) }
158
+ <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>) }
159
+
160
+ <span class="ruby-comment"># Turnip features and steps</span>
161
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
162
+ <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>
163
+ <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>
164
+ <span class="ruby-keyword">end</span>
165
+ </pre>
166
+
167
+ <p>end</p>
168
+ </main>
169
+
170
+
171
+
172
+ <footer id="validator-badges" role="contentinfo">
173
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
174
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
175
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
176
+ </footer>
177
+
data/docs/Lista.html ADDED
@@ -0,0 +1,365 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Lista - 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">Enumerable</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-each">#each</a>
88
+
89
+ <li ><a href="#method-i-insertEnd">#insertEnd</a>
90
+
91
+ <li ><a href="#method-i-pop_first">#pop_first</a>
92
+
93
+ <li ><a href="#method-i-pop_last">#pop_last</a>
94
+
95
+ </ul>
96
+ </div>
97
+
98
+ </div>
99
+ </nav>
100
+
101
+ <main role="main" aria-labelledby="class-Lista">
102
+ <h1 id="class-Lista" class="class">
103
+ class Lista
104
+ </h1>
105
+
106
+ <section class="description">
107
+
108
+ <p>Esta clase permite representar una lista doblemente enlazada.</p>
109
+
110
+ </section>
111
+
112
+
113
+
114
+
115
+ <section id="5Buntitled-5D" class="documentation-section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <section class="attribute-method-details" class="method-section">
124
+ <header>
125
+ <h3>Attributes</h3>
126
+ </header>
127
+
128
+
129
+ <div id="attribute-i-first" class="method-detail">
130
+ <div class="method-heading attribute-method-heading">
131
+ <span class="method-name">first</span><span
132
+ class="attribute-access-type">[R]</span>
133
+ </div>
134
+
135
+ <div class="method-description">
136
+
137
+
138
+
139
+ </div>
140
+ </div>
141
+
142
+ <div id="attribute-i-last" class="method-detail">
143
+ <div class="method-heading attribute-method-heading">
144
+ <span class="method-name">last</span><span
145
+ class="attribute-access-type">[R]</span>
146
+ </div>
147
+
148
+ <div class="method-description">
149
+
150
+
151
+
152
+ </div>
153
+ </div>
154
+
155
+ </section>
156
+
157
+
158
+
159
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
160
+ <header>
161
+ <h3>Public Class Methods</h3>
162
+ </header>
163
+
164
+
165
+ <div id="method-c-new" class="method-detail ">
166
+
167
+ <div class="method-heading">
168
+ <span class="method-name">new</span><span
169
+ class="method-args">(first, last)</span>
170
+
171
+ <span class="method-click-advice">click to toggle source</span>
172
+
173
+ </div>
174
+
175
+
176
+ <div class="method-description">
177
+
178
+ <p>Constructor al que se le pasa el primer y ultimo nodo de una lista.</p>
179
+
180
+
181
+
182
+
183
+ <div class="method-source-code" id="new-source">
184
+ <pre><span class="ruby-comment"># File lib/food/list.rb, line 23</span>
185
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">first</span>, <span class="ruby-identifier">last</span>)
186
+ <span class="ruby-ivar">@first</span> = <span class="ruby-identifier">first</span>
187
+ <span class="ruby-ivar">@last</span> = <span class="ruby-identifier">last</span>
188
+ <span class="ruby-keyword">end</span></pre>
189
+ </div>
190
+
191
+ </div>
192
+
193
+
194
+
195
+
196
+ </div>
197
+
198
+
199
+ </section>
200
+
201
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
202
+ <header>
203
+ <h3>Public Instance Methods</h3>
204
+ </header>
205
+
206
+
207
+ <div id="method-i-each" class="method-detail ">
208
+
209
+ <div class="method-heading">
210
+ <span class="method-name">each</span><span
211
+ class="method-args">() { |value| ... }</span>
212
+
213
+ <span class="method-click-advice">click to toggle source</span>
214
+
215
+ </div>
216
+
217
+
218
+ <div class="method-description">
219
+
220
+ <p>Método each que hace un yield de cada elemento de la lista.</p>
221
+
222
+
223
+
224
+
225
+ <div class="method-source-code" id="each-source">
226
+ <pre><span class="ruby-comment"># File lib/food/list.rb, line 55</span>
227
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
228
+ <span class="ruby-identifier">node</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">first</span>
229
+ <span class="ruby-keyword">while</span> <span class="ruby-identifier">node</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">do</span>
230
+ <span class="ruby-keyword">yield</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">value</span>
231
+ <span class="ruby-identifier">node</span> = <span class="ruby-identifier">node</span>.<span class="ruby-identifier">next</span>
232
+ <span class="ruby-keyword">end</span>
233
+ <span class="ruby-keyword">end</span></pre>
234
+ </div>
235
+
236
+ </div>
237
+
238
+
239
+
240
+
241
+ </div>
242
+
243
+
244
+ <div id="method-i-insertEnd" class="method-detail ">
245
+
246
+ <div class="method-heading">
247
+ <span class="method-name">insertEnd</span><span
248
+ class="method-args">(*args)</span>
249
+
250
+ <span class="method-click-advice">click to toggle source</span>
251
+
252
+ </div>
253
+
254
+
255
+ <div class="method-description">
256
+
257
+ <p>Método para insertar uno o varios elementos al final de la lista.</p>
258
+
259
+
260
+
261
+
262
+ <div class="method-source-code" id="insertEnd-source">
263
+ <pre><span class="ruby-comment"># File lib/food/list.rb, line 29</span>
264
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insertEnd</span> <span class="ruby-operator">*</span><span class="ruby-identifier">args</span>
265
+ <span class="ruby-identifier">args</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg_item</span><span class="ruby-operator">|</span>
266
+ <span class="ruby-identifier">node</span> = <span class="ruby-constant">Node</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">arg_item</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>)
267
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@last</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
268
+ <span class="ruby-ivar">@last</span> = <span class="ruby-ivar">@first</span> = <span class="ruby-identifier">node</span>
269
+ <span class="ruby-keyword">else</span>
270
+ <span class="ruby-ivar">@last</span>.<span class="ruby-identifier">next</span> = <span class="ruby-identifier">node</span>
271
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">prev</span> = <span class="ruby-ivar">@last</span>
272
+ <span class="ruby-ivar">@last</span> = <span class="ruby-identifier">node</span>
273
+ <span class="ruby-keyword">end</span>
274
+ <span class="ruby-keyword">end</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-pop_first" class="method-detail ">
287
+
288
+ <div class="method-heading">
289
+ <span class="method-name">pop_first</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
+ <p>Método para extraer el primer nodo de la lista.</p>
300
+
301
+
302
+
303
+
304
+ <div class="method-source-code" id="pop_first-source">
305
+ <pre><span class="ruby-comment"># File lib/food/list.rb, line 43</span>
306
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">pop_first</span>
307
+ <span class="ruby-ivar">@first</span> = <span class="ruby-ivar">@first</span>.<span class="ruby-identifier">next</span>
308
+ <span class="ruby-ivar">@first</span>.<span class="ruby-identifier">prev</span> = <span class="ruby-keyword">nil</span>
309
+ <span class="ruby-keyword">end</span></pre>
310
+ </div>
311
+
312
+ </div>
313
+
314
+
315
+
316
+
317
+ </div>
318
+
319
+
320
+ <div id="method-i-pop_last" class="method-detail ">
321
+
322
+ <div class="method-heading">
323
+ <span class="method-name">pop_last</span><span
324
+ class="method-args">()</span>
325
+
326
+ <span class="method-click-advice">click to toggle source</span>
327
+
328
+ </div>
329
+
330
+
331
+ <div class="method-description">
332
+
333
+ <p>Método para extraer el último nodo de la lista.</p>
334
+
335
+
336
+
337
+
338
+ <div class="method-source-code" id="pop_last-source">
339
+ <pre><span class="ruby-comment"># File lib/food/list.rb, line 49</span>
340
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">pop_last</span>
341
+ <span class="ruby-ivar">@last</span> = <span class="ruby-ivar">@last</span>.<span class="ruby-identifier">prev</span>
342
+ <span class="ruby-ivar">@last</span>.<span class="ruby-identifier">next</span> = <span class="ruby-keyword">nil</span>
343
+ <span class="ruby-keyword">end</span></pre>
344
+ </div>
345
+
346
+ </div>
347
+
348
+
349
+
350
+
351
+ </div>
352
+
353
+
354
+ </section>
355
+
356
+ </section>
357
+ </main>
358
+
359
+
360
+ <footer id="validator-badges" role="contentinfo">
361
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
362
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
363
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
364
+ </footer>
365
+
data/docs/Object.html ADDED
@@ -0,0 +1,118 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Object - 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">BasicObject
63
+
64
+ </div>
65
+
66
+
67
+
68
+
69
+ </div>
70
+ </nav>
71
+
72
+ <main role="main" aria-labelledby="class-Object">
73
+ <h1 id="class-Object" class="class">
74
+ class Object
75
+ </h1>
76
+
77
+ <section class="description">
78
+
79
+ </section>
80
+
81
+
82
+
83
+
84
+ <section id="5Buntitled-5D" class="documentation-section">
85
+
86
+
87
+
88
+
89
+
90
+ <section class="constants-list">
91
+ <header>
92
+ <h3>Constants</h3>
93
+ </header>
94
+ <dl>
95
+
96
+ <dt id="Node">Node
97
+
98
+ <dd><p>Esta clase permite representar nodo con un nodo siguiente y un nodo
99
+ anterior. Se ha incluido el moduulo enumerable</p>
100
+
101
+
102
+ </dl>
103
+ </section>
104
+
105
+
106
+
107
+
108
+
109
+ </section>
110
+ </main>
111
+
112
+
113
+ <footer id="validator-badges" role="contentinfo">
114
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
115
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
116
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
117
+ </footer>
118
+