dieta-alu0100226300 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) 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/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +4 -0
  7. data/Guardfile +82 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +49 -0
  10. data/Rakefile +6 -0
  11. data/algo.log +1 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/dieta.gemspec +39 -0
  15. data/documentacion/CODE_OF_CONDUCT_md.html +195 -0
  16. data/documentacion/Dieta.html +109 -0
  17. data/documentacion/Dietas.html +219 -0
  18. data/documentacion/Gemfile.html +100 -0
  19. data/documentacion/Gemfile_lock.html +182 -0
  20. data/documentacion/Guardfile.html +180 -0
  21. data/documentacion/LICENSE_txt.html +117 -0
  22. data/documentacion/Lista.html +457 -0
  23. data/documentacion/Menu.html +624 -0
  24. data/documentacion/Menu_alimento.html +221 -0
  25. data/documentacion/Menu_edad.html +221 -0
  26. data/documentacion/Object.html +116 -0
  27. data/documentacion/Plato.html +314 -0
  28. data/documentacion/README_md.html +173 -0
  29. data/documentacion/Rakefile.html +101 -0
  30. data/documentacion/bin/setup.html +101 -0
  31. data/documentacion/created.rid +19 -0
  32. data/documentacion/css/fonts.css +167 -0
  33. data/documentacion/css/rdoc.css +590 -0
  34. data/documentacion/dieta_gemspec.html +135 -0
  35. data/documentacion/fonts/Lato-Light.ttf +0 -0
  36. data/documentacion/fonts/Lato-LightItalic.ttf +0 -0
  37. data/documentacion/fonts/Lato-Regular.ttf +0 -0
  38. data/documentacion/fonts/Lato-RegularItalic.ttf +0 -0
  39. data/documentacion/fonts/SourceCodePro-Bold.ttf +0 -0
  40. data/documentacion/fonts/SourceCodePro-Regular.ttf +0 -0
  41. data/documentacion/images/add.png +0 -0
  42. data/documentacion/images/arrow_up.png +0 -0
  43. data/documentacion/images/brick.png +0 -0
  44. data/documentacion/images/brick_link.png +0 -0
  45. data/documentacion/images/bug.png +0 -0
  46. data/documentacion/images/bullet_black.png +0 -0
  47. data/documentacion/images/bullet_toggle_minus.png +0 -0
  48. data/documentacion/images/bullet_toggle_plus.png +0 -0
  49. data/documentacion/images/date.png +0 -0
  50. data/documentacion/images/delete.png +0 -0
  51. data/documentacion/images/find.png +0 -0
  52. data/documentacion/images/loadingAnimation.gif +0 -0
  53. data/documentacion/images/macFFBgHack.png +0 -0
  54. data/documentacion/images/package.png +0 -0
  55. data/documentacion/images/page_green.png +0 -0
  56. data/documentacion/images/page_white_text.png +0 -0
  57. data/documentacion/images/page_white_width.png +0 -0
  58. data/documentacion/images/plugin.png +0 -0
  59. data/documentacion/images/ruby.png +0 -0
  60. data/documentacion/images/tag_blue.png +0 -0
  61. data/documentacion/images/tag_green.png +0 -0
  62. data/documentacion/images/transparent.png +0 -0
  63. data/documentacion/images/wrench.png +0 -0
  64. data/documentacion/images/wrench_orange.png +0 -0
  65. data/documentacion/images/zoom.png +0 -0
  66. data/documentacion/index.html +119 -0
  67. data/documentacion/js/darkfish.js +161 -0
  68. data/documentacion/js/jquery.js +4 -0
  69. data/documentacion/js/navigation.js +142 -0
  70. data/documentacion/js/navigation.js.gz +0 -0
  71. data/documentacion/js/search.js +109 -0
  72. data/documentacion/js/search_index.js +1 -0
  73. data/documentacion/js/search_index.js.gz +0 -0
  74. data/documentacion/js/searcher.js +228 -0
  75. data/documentacion/js/searcher.js.gz +0 -0
  76. data/documentacion/table_of_contents.html +257 -0
  77. data/lib/dieta.rb +10 -0
  78. data/lib/dieta/dietas.rb +11 -0
  79. data/lib/dieta/lista.rb +65 -0
  80. data/lib/dieta/menu.rb +78 -0
  81. data/lib/dieta/menudsl.rb +58 -0
  82. data/lib/dieta/plato.rb +19 -0
  83. data/lib/dieta/version.rb +3 -0
  84. metadata +210 -0
@@ -0,0 +1,180 @@
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
+ </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="file">
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="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./bin/setup.html">setup</a>
76
+
77
+ <li><a href="./dieta_gemspec.html">dieta.gemspec</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-label="Page Guardfile">
86
+
87
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
88
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
89
+
90
+ <p>## Uncomment and set this to only include directories you want to watch #
91
+ directories %w(app lib config test spec features) \ # .select{|d|
92
+ Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
93
+
94
+ <p>## Note: if you are using the `directories` clause above and you are not ##
95
+ watching the project directory (&#39;.&#39;), then you will want to move ##
96
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
97
+ back, e.g. # # $ mkdir config # $ mv <a
98
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
99
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
100
+
101
+ <p>guard :bundler do</p>
102
+
103
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
104
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
105
+ <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>
106
+
107
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
108
+ <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>) }
109
+
110
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
111
+ <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>)) }
112
+ </pre>
113
+
114
+ <p>end</p>
115
+
116
+ <p># Note: The cmd option is now required due to the increasing number of ways
117
+ # rspec may be run, below are examples of the most common uses. # *
118
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
119
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
120
+ if running and you have # installed the spring
121
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
122
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
123
+
124
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
125
+
126
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
127
+ <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>)
128
+
129
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
130
+
131
+ <span class="ruby-comment"># RSpec files</span>
132
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
133
+ <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> }
134
+ <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> }
135
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
136
+
137
+ <span class="ruby-comment"># Ruby files</span>
138
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
139
+ <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>)
140
+
141
+ <span class="ruby-comment"># Rails files</span>
142
+ <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>)
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">app_files</span>)
144
+ <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>)
145
+
146
+ <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>
147
+ [
148
+ <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>),
149
+ <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>),
150
+ <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>)
151
+ ]
152
+ <span class="ruby-keyword">end</span>
153
+
154
+ <span class="ruby-comment"># Rails config changes</span>
155
+ <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> }
156
+ <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> }
157
+ <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> }
158
+
159
+ <span class="ruby-comment"># Capybara features specs</span>
160
+ <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>) }
161
+ <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>) }
162
+
163
+ <span class="ruby-comment"># Turnip features and steps</span>
164
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
165
+ <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>
166
+ <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>
167
+ <span class="ruby-keyword">end</span>
168
+ </pre>
169
+
170
+ <p>end</p>
171
+ </main>
172
+
173
+
174
+
175
+ <footer id="validator-badges" role="contentinfo">
176
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
177
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
178
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
179
+ </footer>
180
+
@@ -0,0 +1,117 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>LICENSE - 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="file">
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="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./bin/setup.html">setup</a>
76
+
77
+ <li><a href="./dieta_gemspec.html">dieta.gemspec</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-label="Page LICENSE.txt">
86
+
87
+ <p>The MIT License (MIT)</p>
88
+
89
+ <p>Copyright © 2016 Rafael Abadia</p>
90
+
91
+ <p>Permission is hereby granted, free of charge, to any person obtaining a
92
+ copy of this software and associated documentation files (the “Software”),
93
+ to deal in the Software without restriction, including without limitation
94
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
95
+ and/or sell copies of the Software, and to permit persons to whom the
96
+ Software is furnished to do so, subject to the following conditions:</p>
97
+
98
+ <p>The above copyright notice and this permission notice shall be included in
99
+ all copies or substantial portions of the Software.</p>
100
+
101
+ <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
102
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
103
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
104
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
105
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
106
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
107
+ DEALINGS IN THE SOFTWARE.</p>
108
+ </main>
109
+
110
+
111
+
112
+ <footer id="validator-badges" role="contentinfo">
113
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
114
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
115
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
116
+ </footer>
117
+
@@ -0,0 +1,457 @@
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
+ </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">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-extraer_inicio">#extraer_inicio</a>
89
+
90
+ <li ><a href="#method-i-extrar_final">#extrar_final</a>
91
+
92
+ <li ><a href="#method-i-insertar">#insertar</a>
93
+
94
+ <li ><a href="#method-i-insertar_varios">#insertar_varios</a>
95
+
96
+ <li ><a href="#method-i-to_s">#to_s</a>
97
+
98
+ </ul>
99
+ </div>
100
+
101
+ </div>
102
+ </nav>
103
+
104
+ <main role="main" aria-labelledby="class-Lista">
105
+ <h1 id="class-Lista" class="class">
106
+ class Lista
107
+ </h1>
108
+
109
+ <section class="description">
110
+
111
+ </section>
112
+
113
+
114
+
115
+
116
+ <section id="5Buntitled-5D" class="documentation-section">
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+ <section class="attribute-method-details" class="method-section">
125
+ <header>
126
+ <h3>Attributes</h3>
127
+ </header>
128
+
129
+
130
+ <div id="attribute-i-cabeza" class="method-detail">
131
+ <div class="method-heading attribute-method-heading">
132
+ <span class="method-name">cabeza</span><span
133
+ class="attribute-access-type">[RW]</span>
134
+ </div>
135
+
136
+ <div class="method-description">
137
+
138
+
139
+
140
+ </div>
141
+ </div>
142
+
143
+ <div id="attribute-i-cola" class="method-detail">
144
+ <div class="method-heading attribute-method-heading">
145
+ <span class="method-name">cola</span><span
146
+ class="attribute-access-type">[RW]</span>
147
+ </div>
148
+
149
+ <div class="method-description">
150
+
151
+
152
+
153
+ </div>
154
+ </div>
155
+
156
+ <div id="attribute-i-nodo_actual" class="method-detail">
157
+ <div class="method-heading attribute-method-heading">
158
+ <span class="method-name">nodo_actual</span><span
159
+ class="attribute-access-type">[RW]</span>
160
+ </div>
161
+
162
+ <div class="method-description">
163
+
164
+
165
+
166
+ </div>
167
+ </div>
168
+
169
+ </section>
170
+
171
+
172
+
173
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
174
+ <header>
175
+ <h3>Public Class Methods</h3>
176
+ </header>
177
+
178
+
179
+ <div id="method-c-new" class="method-detail ">
180
+
181
+ <div class="method-heading">
182
+ <span class="method-name">new</span><span
183
+ class="method-args">(cabeza,cola)</span>
184
+
185
+ <span class="method-click-advice">click to toggle source</span>
186
+
187
+ </div>
188
+
189
+
190
+ <div class="method-description">
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <div class="method-source-code" id="new-source">
198
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 9</span>
199
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">cabeza</span>,<span class="ruby-identifier">cola</span>)
200
+ <span class="ruby-ivar">@cabeza</span> = <span class="ruby-identifier">cabeza</span>
201
+ <span class="ruby-ivar">@cola</span> = <span class="ruby-identifier">cola</span>
202
+ <span class="ruby-keyword">end</span></pre>
203
+ </div>
204
+
205
+ </div>
206
+
207
+
208
+
209
+
210
+ </div>
211
+
212
+
213
+ </section>
214
+
215
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
216
+ <header>
217
+ <h3>Public Instance Methods</h3>
218
+ </header>
219
+
220
+
221
+ <div id="method-i-each" class="method-detail ">
222
+
223
+ <div class="method-heading">
224
+ <span class="method-name">each</span><span
225
+ class="method-args">() { |value| ... }</span>
226
+
227
+ <span class="method-click-advice">click to toggle source</span>
228
+
229
+ </div>
230
+
231
+
232
+ <div class="method-description">
233
+
234
+
235
+
236
+
237
+
238
+
239
+ <div class="method-source-code" id="each-source">
240
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 51</span>
241
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">each</span>
242
+ <span class="ruby-keyword">while</span> <span class="ruby-ivar">@cabeza</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@cola</span>
243
+ <span class="ruby-keyword">yield</span> <span class="ruby-ivar">@cabeza</span>.<span class="ruby-identifier">value</span>
244
+ <span class="ruby-ivar">@cabeza</span>=<span class="ruby-ivar">@cabeza</span>.<span class="ruby-identifier">prev</span>
245
+ <span class="ruby-keyword">end</span>
246
+
247
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@cabeza</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@cola</span>
248
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@cabeza</span> <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span>
249
+ <span class="ruby-keyword">nil</span>
250
+ <span class="ruby-keyword">else</span>
251
+ <span class="ruby-keyword">yield</span> <span class="ruby-ivar">@cola</span>.<span class="ruby-identifier">value</span>
252
+ <span class="ruby-keyword">end</span>
253
+ <span class="ruby-keyword">end</span>
254
+ <span class="ruby-keyword">end</span></pre>
255
+ </div>
256
+
257
+ </div>
258
+
259
+
260
+
261
+
262
+ </div>
263
+
264
+
265
+ <div id="method-i-extraer_inicio" class="method-detail ">
266
+
267
+ <div class="method-heading">
268
+ <span class="method-name">extraer_inicio</span><span
269
+ class="method-args">()</span>
270
+
271
+ <span class="method-click-advice">click to toggle source</span>
272
+
273
+ </div>
274
+
275
+
276
+ <div class="method-description">
277
+
278
+ <p>eliminar el nodo y cambiar los valores al nodo anterior</p>
279
+
280
+
281
+
282
+
283
+ <div class="method-source-code" id="extraer_inicio-source">
284
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 39</span>
285
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">extraer_inicio</span>()
286
+ <span class="ruby-ivar">@cola</span>=<span class="ruby-ivar">@cola</span>.<span class="ruby-identifier">next</span>
287
+ <span class="ruby-keyword">end</span></pre>
288
+ </div>
289
+
290
+ </div>
291
+
292
+
293
+
294
+
295
+ </div>
296
+
297
+
298
+ <div id="method-i-extrar_final" class="method-detail ">
299
+
300
+ <div class="method-heading">
301
+ <span class="method-name">extrar_final</span><span
302
+ class="method-args">()</span>
303
+
304
+ <span class="method-click-advice">click to toggle source</span>
305
+
306
+ </div>
307
+
308
+
309
+ <div class="method-description">
310
+
311
+
312
+
313
+
314
+
315
+
316
+ <div class="method-source-code" id="extrar_final-source">
317
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 43</span>
318
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">extrar_final</span>()
319
+ <span class="ruby-ivar">@cabeza</span> = <span class="ruby-ivar">@cabeza</span>.<span class="ruby-identifier">prev</span>
320
+ <span class="ruby-keyword">end</span></pre>
321
+ </div>
322
+
323
+ </div>
324
+
325
+
326
+
327
+
328
+ </div>
329
+
330
+
331
+ <div id="method-i-insertar" class="method-detail ">
332
+
333
+ <div class="method-heading">
334
+ <span class="method-name">insertar</span><span
335
+ class="method-args">(x)</span>
336
+
337
+ <span class="method-click-advice">click to toggle source</span>
338
+
339
+ </div>
340
+
341
+
342
+ <div class="method-description">
343
+
344
+
345
+
346
+
347
+
348
+
349
+ <div class="method-source-code" id="insertar-source">
350
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 14</span>
351
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insertar</span>(<span class="ruby-identifier">x</span>)
352
+ <span class="ruby-identifier">node</span> = <span class="ruby-constant">Nodo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">x</span>,<span class="ruby-keyword">nil</span>,<span class="ruby-keyword">nil</span>)
353
+
354
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@cabeza</span><span class="ruby-operator">==</span><span class="ruby-keyword">nil</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-ivar">@cola</span><span class="ruby-operator">==</span><span class="ruby-keyword">nil</span>
355
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">prev</span> = <span class="ruby-ivar">@cola</span>
356
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">next</span> = <span class="ruby-ivar">@cabeza</span>
357
+ <span class="ruby-ivar">@nodo_actual</span> = <span class="ruby-identifier">node</span>
358
+ <span class="ruby-ivar">@cabeza</span> = <span class="ruby-identifier">node</span>
359
+ <span class="ruby-ivar">@cola</span> = <span class="ruby-identifier">node</span>
360
+ <span class="ruby-keyword">else</span>
361
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">prev</span> = <span class="ruby-ivar">@cabeza</span>
362
+ <span class="ruby-identifier">node</span>.<span class="ruby-identifier">next</span> = <span class="ruby-keyword">nil</span>
363
+ <span class="ruby-ivar">@nodo_actual</span> = <span class="ruby-identifier">node</span>
364
+ <span class="ruby-ivar">@cabeza</span>.<span class="ruby-identifier">next</span> = <span class="ruby-identifier">node</span>
365
+ <span class="ruby-ivar">@cabeza</span> = <span class="ruby-identifier">node</span>
366
+ <span class="ruby-keyword">end</span>
367
+ <span class="ruby-keyword">end</span></pre>
368
+ </div>
369
+
370
+ </div>
371
+
372
+
373
+
374
+
375
+ </div>
376
+
377
+
378
+ <div id="method-i-insertar_varios" class="method-detail ">
379
+
380
+ <div class="method-heading">
381
+ <span class="method-name">insertar_varios</span><span
382
+ class="method-args">(nodos)</span>
383
+
384
+ <span class="method-click-advice">click to toggle source</span>
385
+
386
+ </div>
387
+
388
+
389
+ <div class="method-description">
390
+
391
+
392
+
393
+
394
+
395
+
396
+ <div class="method-source-code" id="insertar_varios-source">
397
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 32</span>
398
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">insertar_varios</span>(<span class="ruby-identifier">nodos</span>)
399
+ <span class="ruby-identifier">nodos</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">nd</span><span class="ruby-operator">|</span>
400
+ <span class="ruby-identifier">insertar</span>(<span class="ruby-identifier">nd</span>)
401
+ <span class="ruby-keyword">end</span>
402
+ <span class="ruby-keyword">end</span></pre>
403
+ </div>
404
+
405
+ </div>
406
+
407
+
408
+
409
+
410
+ </div>
411
+
412
+
413
+ <div id="method-i-to_s" class="method-detail ">
414
+
415
+ <div class="method-heading">
416
+ <span class="method-name">to_s</span><span
417
+ class="method-args">()</span>
418
+
419
+ <span class="method-click-advice">click to toggle source</span>
420
+
421
+ </div>
422
+
423
+
424
+ <div class="method-description">
425
+
426
+
427
+
428
+
429
+
430
+
431
+ <div class="method-source-code" id="to_s-source">
432
+ <pre><span class="ruby-comment"># File lib/dieta/lista.rb, line 47</span>
433
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
434
+ <span class="ruby-ivar">@cabeza</span>.<span class="ruby-identifier">to_s</span>
435
+ <span class="ruby-keyword">end</span></pre>
436
+ </div>
437
+
438
+ </div>
439
+
440
+
441
+
442
+
443
+ </div>
444
+
445
+
446
+ </section>
447
+
448
+ </section>
449
+ </main>
450
+
451
+
452
+ <footer id="validator-badges" role="contentinfo">
453
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
454
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
455
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
456
+ </footer>
457
+