alimento-alu0100946499 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +12 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +7 -0
  6. data/CODE_OF_CONDUCT.md +74 -0
  7. data/Gemfile +6 -0
  8. data/Guardfile +82 -0
  9. data/LICENSE.txt +21 -0
  10. data/README.md +45 -0
  11. data/Rakefile +66 -0
  12. data/alimento.gemspec +29 -0
  13. data/bin/console +14 -0
  14. data/bin/setup +8 -0
  15. data/docs/Alimento.html +129 -0
  16. data/docs/Alimento/AliGra.html +181 -0
  17. data/docs/Alimento/AliRicCar.html +181 -0
  18. data/docs/Alimento/Alimento.html +474 -0
  19. data/docs/Alimento/Bebidas.html +181 -0
  20. data/docs/Alimento/CarDer.html +181 -0
  21. data/docs/Alimento/Frutas.html +181 -0
  22. data/docs/Alimento/HueLacHel.html +181 -0
  23. data/docs/Alimento/PesMar.html +181 -0
  24. data/docs/Alimento/Plato.html +368 -0
  25. data/docs/Alimento/VerHor.html +181 -0
  26. data/docs/Array.html +200 -0
  27. data/docs/DLL.html +124 -0
  28. data/docs/DLL/DLL.html +510 -0
  29. data/docs/created.rid +8 -0
  30. data/docs/css/fonts.css +167 -0
  31. data/docs/css/rdoc.css +590 -0
  32. data/docs/fonts/Lato-Light.ttf +0 -0
  33. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  34. data/docs/fonts/Lato-Regular.ttf +0 -0
  35. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  36. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  37. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  38. data/docs/images/add.png +0 -0
  39. data/docs/images/arrow_up.png +0 -0
  40. data/docs/images/brick.png +0 -0
  41. data/docs/images/brick_link.png +0 -0
  42. data/docs/images/bug.png +0 -0
  43. data/docs/images/bullet_black.png +0 -0
  44. data/docs/images/bullet_toggle_minus.png +0 -0
  45. data/docs/images/bullet_toggle_plus.png +0 -0
  46. data/docs/images/date.png +0 -0
  47. data/docs/images/delete.png +0 -0
  48. data/docs/images/find.png +0 -0
  49. data/docs/images/loadingAnimation.gif +0 -0
  50. data/docs/images/macFFBgHack.png +0 -0
  51. data/docs/images/package.png +0 -0
  52. data/docs/images/page_green.png +0 -0
  53. data/docs/images/page_white_text.png +0 -0
  54. data/docs/images/page_white_width.png +0 -0
  55. data/docs/images/plugin.png +0 -0
  56. data/docs/images/ruby.png +0 -0
  57. data/docs/images/tag_blue.png +0 -0
  58. data/docs/images/tag_green.png +0 -0
  59. data/docs/images/transparent.png +0 -0
  60. data/docs/images/wrench.png +0 -0
  61. data/docs/images/wrench_orange.png +0 -0
  62. data/docs/images/zoom.png +0 -0
  63. data/docs/index.html +106 -0
  64. data/docs/js/darkfish.js +161 -0
  65. data/docs/js/jquery.js +4 -0
  66. data/docs/js/navigation.js +142 -0
  67. data/docs/js/navigation.js.gz +0 -0
  68. data/docs/js/search.js +109 -0
  69. data/docs/js/search_index.js +1 -0
  70. data/docs/js/search_index.js.gz +0 -0
  71. data/docs/js/searcher.js +228 -0
  72. data/docs/js/searcher.js.gz +0 -0
  73. data/docs/table_of_contents.html +223 -0
  74. data/lib/DLL/fuente.rb +107 -0
  75. data/lib/DLL/version.rb +3 -0
  76. data/lib/alimento.rb +17 -0
  77. data/lib/alimento/fuente.rb +216 -0
  78. data/lib/alimento/version.rb +3 -0
  79. data/lib/array/fuente.rb +24 -0
  80. data/lib/plato/fuente.rb +75 -0
  81. metadata +221 -0
@@ -0,0 +1,181 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Alimento::VerHor - 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
+ </ul>
76
+ </div>
77
+
78
+ </div>
79
+ </nav>
80
+
81
+ <main role="main" aria-labelledby="class-Alimento::VerHor">
82
+ <h1 id="class-Alimento::VerHor" class="class">
83
+ class Alimento::VerHor
84
+ </h1>
85
+
86
+ <section class="description">
87
+
88
+ </section>
89
+
90
+
91
+
92
+
93
+ <section id="5Buntitled-5D" class="documentation-section">
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <section class="attribute-method-details" class="method-section">
102
+ <header>
103
+ <h3>Attributes</h3>
104
+ </header>
105
+
106
+
107
+ <div id="attribute-i-grupo" class="method-detail">
108
+ <div class="method-heading attribute-method-heading">
109
+ <span class="method-name">grupo</span><span
110
+ class="attribute-access-type">[R]</span>
111
+ </div>
112
+
113
+ <div class="method-description">
114
+
115
+ <p>Esta clase permite representar alimentos dentro del grupo “Verduras y
116
+ Hortalizas”. Hereda de la clase alimento.</p>
117
+
118
+ </div>
119
+ </div>
120
+
121
+ </section>
122
+
123
+
124
+
125
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
126
+ <header>
127
+ <h3>Public Class Methods</h3>
128
+ </header>
129
+
130
+
131
+ <div id="method-c-new" class="method-detail ">
132
+
133
+ <div class="method-heading">
134
+ <span class="method-name">new</span><span
135
+ class="method-args">(nombre, proteinas, glucidos, lipidos)</span>
136
+
137
+ <span class="method-click-advice">click to toggle source</span>
138
+
139
+ </div>
140
+
141
+
142
+ <div class="method-description">
143
+
144
+
145
+
146
+
147
+ <div class="method-calls-super">
148
+ Calls superclass method
149
+ <a href="Alimento.html#method-c-new">Alimento::Alimento.new</a>
150
+ </div>
151
+
152
+
153
+
154
+ <div class="method-source-code" id="new-source">
155
+ <pre><span class="ruby-comment"># File lib/alimento/fuente.rb, line 175</span>
156
+ <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>)
157
+ <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>)
158
+ <span class="ruby-ivar">@grupo</span> = <span class="ruby-string">&quot;Verduras y Hortalizas&quot;</span>
159
+ <span class="ruby-keyword">end</span></pre>
160
+ </div>
161
+
162
+ </div>
163
+
164
+
165
+
166
+
167
+ </div>
168
+
169
+
170
+ </section>
171
+
172
+ </section>
173
+ </main>
174
+
175
+
176
+ <footer id="validator-badges" role="contentinfo">
177
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
178
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
179
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
180
+ </footer>
181
+
@@ -0,0 +1,200 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Array - 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
+
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 ><a href="#method-i-each_sort">#each_sort</a>
74
+
75
+ <li ><a href="#method-i-for_sort">#for_sort</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Array">
84
+ <h1 id="class-Array" class="class">
85
+ class Array
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ </section>
91
+
92
+
93
+
94
+
95
+ <section id="5Buntitled-5D" class="documentation-section">
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
106
+ <header>
107
+ <h3>Public Instance Methods</h3>
108
+ </header>
109
+
110
+
111
+ <div id="method-i-each_sort" class="method-detail ">
112
+
113
+ <div class="method-heading">
114
+ <span class="method-name">each_sort</span><span
115
+ class="method-args">()</span>
116
+
117
+ <span class="method-click-advice">click to toggle source</span>
118
+
119
+ </div>
120
+
121
+
122
+ <div class="method-description">
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <div class="method-source-code" id="each_sort-source">
130
+ <pre><span class="ruby-comment"># File lib/array/fuente.rb, line 13</span>
131
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">each_sort</span>
132
+ <span class="ruby-identifier">vector</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>)
133
+ <span class="ruby-identifier">res</span> = []
134
+ <span class="ruby-identifier">vector</span>.<span class="ruby-identifier">each</span>{
135
+ <span class="ruby-identifier">min</span> = <span class="ruby-identifier">vector</span>.<span class="ruby-identifier">min</span>
136
+ <span class="ruby-identifier">res</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">min</span>
137
+ <span class="ruby-identifier">vector</span>[<span class="ruby-identifier">vector</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">min</span>)] = <span class="ruby-constant">Alimento</span><span class="ruby-operator">::</span><span class="ruby-constant">MAX</span>
138
+ }
139
+ <span class="ruby-identifier">res</span>
140
+ <span class="ruby-keyword">end</span></pre>
141
+ </div>
142
+
143
+ </div>
144
+
145
+
146
+
147
+
148
+ </div>
149
+
150
+
151
+ <div id="method-i-for_sort" class="method-detail ">
152
+
153
+ <div class="method-heading">
154
+ <span class="method-name">for_sort</span><span
155
+ class="method-args">()</span>
156
+
157
+ <span class="method-click-advice">click to toggle source</span>
158
+
159
+ </div>
160
+
161
+
162
+ <div class="method-description">
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <div class="method-source-code" id="for_sort-source">
170
+ <pre><span class="ruby-comment"># File lib/array/fuente.rb, line 4</span>
171
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">for_sort</span>
172
+ <span class="ruby-identifier">vector</span> = <span class="ruby-constant">Array</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>)
173
+ <span class="ruby-identifier">res</span> = []
174
+ <span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> <span class="ruby-value">0</span><span class="ruby-operator">...</span><span class="ruby-identifier">vector</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword">do</span>
175
+ <span class="ruby-identifier">res</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">vector</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">vector</span>.<span class="ruby-identifier">min</span>)
176
+ <span class="ruby-keyword">end</span>
177
+ <span class="ruby-identifier">res</span>
178
+ <span class="ruby-keyword">end</span></pre>
179
+ </div>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+ </section>
190
+
191
+ </section>
192
+ </main>
193
+
194
+
195
+ <footer id="validator-badges" role="contentinfo">
196
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
197
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
198
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
199
+ </footer>
200
+
@@ -0,0 +1,124 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module DLL - 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="module">
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
+
58
+
59
+
60
+
61
+ </div>
62
+ </nav>
63
+
64
+ <main role="main" aria-labelledby="module-DLL">
65
+ <h1 id="module-DLL" class="module">
66
+ module DLL
67
+ </h1>
68
+
69
+ <section class="description">
70
+
71
+ <p>Este módulo se ha creado para la asignatura de Lenguajes y Paradigmas de la
72
+ Programación impartida en la Universidad de la Laguna como práctica,
73
+ haciendo uso del lenguaje de programación Ruby.</p>
74
+ <dl class="rdoc-list note-list"><dt>Author
75
+ <dd>
76
+ <p>Javier Esteban Pérez Rivas (<a
77
+ href="mailto:alu0100946499@ull.edu.es">alu0100946499@ull.edu.es</a>)</p>
78
+ </dd><dt>Copyright
79
+ <dd>
80
+ <p>Creative Commons</p>
81
+ </dd><dt>License
82
+ <dd>
83
+ <p>Distributes under the same terms as Ruby</p>
84
+ </dd></dl>
85
+
86
+ </section>
87
+
88
+
89
+
90
+
91
+ <section id="5Buntitled-5D" class="documentation-section">
92
+
93
+
94
+
95
+
96
+
97
+ <section class="constants-list">
98
+ <header>
99
+ <h3>Constants</h3>
100
+ </header>
101
+ <dl>
102
+
103
+ <dt id="VERSION">VERSION
104
+
105
+ <dd>
106
+
107
+
108
+ </dl>
109
+ </section>
110
+
111
+
112
+
113
+
114
+
115
+ </section>
116
+ </main>
117
+
118
+
119
+ <footer id="validator-badges" role="contentinfo">
120
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
121
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
122
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
123
+ </footer>
124
+