alimento_alu0101050218 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.
@@ -0,0 +1,391 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Array
8
+
9
+ &mdash; Documentation by YARD 0.9.20
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ pathId = "Array";
19
+ relpath = '';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="_index.html">Index (A)</a> &raquo;
40
+
41
+
42
+ <span class="title">Array</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Array
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Array</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/alimento/Array.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+
106
+ </div>
107
+ </div>
108
+ <div class="tags">
109
+
110
+ <p class="tag_title">Author:</p>
111
+ <ul class="author">
112
+
113
+ <li>
114
+
115
+
116
+
117
+
118
+
119
+ <div class='inline'>
120
+ <p>Hernan Daniel Gonzalez Guanipa</p>
121
+ </div>
122
+
123
+ </li>
124
+
125
+ </ul>
126
+
127
+ </div>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+ <h2>
136
+ Instance Method Summary
137
+ <small><a href="#" class="summary_toggle">collapse</a></small>
138
+ </h2>
139
+
140
+ <ul class="summary">
141
+
142
+ <li class="public ">
143
+ <span class="summary_signature">
144
+
145
+ <a href="#high_prices-instance_method" title="#high_prices (instance method)">#<strong>high_prices</strong>(precios) &#x21d2; Array </a>
146
+
147
+
148
+
149
+ </span>
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+ <span class="summary_desc"><div class='inline'>
160
+ <p>Vector con los valores aumentados.</p>
161
+ </div></span>
162
+
163
+ </li>
164
+
165
+
166
+ <li class="public ">
167
+ <span class="summary_signature">
168
+
169
+ <a href="#Max-instance_method" title="#Max (instance method)">#<strong>Max</strong> &#x21d2; Object </a>
170
+
171
+
172
+
173
+ </span>
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <span class="summary_desc"><div class='inline'>
184
+ <p>Objeto del mayor dato entre los comparados.</p>
185
+ </div></span>
186
+
187
+ </li>
188
+
189
+
190
+ </ul>
191
+
192
+
193
+
194
+
195
+ <div id="instance_method_details" class="method_details_list">
196
+ <h2>Instance Method Details</h2>
197
+
198
+
199
+ <div class="method_details first">
200
+ <h3 class="signature first" id="high_prices-instance_method">
201
+
202
+ #<strong>high_prices</strong>(precios) &#x21d2; <tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt>
203
+
204
+
205
+
206
+
207
+
208
+ </h3><div class="docstring">
209
+ <div class="discussion">
210
+
211
+ <div class="note notetag">
212
+ <strong>Note:</strong>
213
+ <div class='inline'>
214
+ <p>Aumento de los precios segun el indice</p>
215
+ </div>
216
+ </div>
217
+
218
+
219
+ <p>Returns Vector con los valores aumentados</p>
220
+
221
+
222
+ </div>
223
+ </div>
224
+ <div class="tags">
225
+ <p class="tag_title">Parameters:</p>
226
+ <ul class="param">
227
+
228
+ <li>
229
+
230
+ <span class='name'>precios</span>
231
+
232
+
233
+ <span class='type'></span>
234
+
235
+
236
+
237
+ &mdash;
238
+ <div class='inline'>
239
+ <p>Array con valores flotantes</p>
240
+ </div>
241
+
242
+ </li>
243
+
244
+ </ul>
245
+
246
+ <p class="tag_title">Returns:</p>
247
+ <ul class="return">
248
+
249
+ <li>
250
+
251
+
252
+ <span class='type'>(<tt><span class='object_link'><a href="" title="Array (class)">Array</a></span></tt>)</span>
253
+
254
+
255
+
256
+ &mdash;
257
+ <div class='inline'>
258
+ <p>Vector con los valores aumentados</p>
259
+ </div>
260
+
261
+ </li>
262
+
263
+ </ul>
264
+
265
+ </div><table class="source_code">
266
+ <tr>
267
+ <td>
268
+ <pre class="lines">
269
+
270
+
271
+ 14
272
+ 15
273
+ 16
274
+ 17
275
+ 18
276
+ 19
277
+ 20
278
+ 21
279
+ 22
280
+ 23
281
+ 24
282
+ 25
283
+ 26
284
+ 27
285
+ 28
286
+ 29</pre>
287
+ </td>
288
+ <td>
289
+ <pre class="code"><span class="info file"># File 'lib/alimento/Array.rb', line 14</span>
290
+
291
+ <span class='kw'>def</span> <span class='id identifier rubyid_high_prices'>high_prices</span><span class='lparen'>(</span><span class='id identifier rubyid_precios'>precios</span><span class='rparen'>)</span>
292
+ <span class='id identifier rubyid_huella_maxima'>huella_maxima</span> <span class='op'>=</span> <span class='kw'>self</span><span class='period'>.</span><span class='const'>Max</span><span class='period'>.</span><span class='id identifier rubyid_huella_nutricional'>huella_nutricional</span>
293
+ <span class='id identifier rubyid_i'>i</span> <span class='op'>=</span> <span class='int'>0</span>
294
+ <span class='id identifier rubyid_nuevos_precios'>nuevos_precios</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
295
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_iter'>iter</span><span class='op'>|</span>
296
+ <span class='kw'>if</span> <span class='id identifier rubyid_huella_maxima'>huella_maxima</span> <span class='op'>=</span> <span class='int'>1</span>
297
+ <span class='id identifier rubyid_nuevos_precios'>nuevos_precios</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_precios'>precios</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='op'>*</span> <span class='float'>1.10</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_round'>round</span><span class='lparen'>(</span><span class='int'>2</span><span class='rparen'>)</span><span class='rparen'>)</span>
298
+ <span class='kw'>elsif</span> <span class='id identifier rubyid_huella_maxima'>huella_maxima</span> <span class='op'>=</span> <span class='int'>2</span>
299
+ <span class='id identifier rubyid_nuevos_precios'>nuevos_precios</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_precios'>precios</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='op'>*</span> <span class='float'>1.25</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_round'>round</span><span class='lparen'>(</span><span class='int'>2</span><span class='rparen'>)</span><span class='rparen'>)</span>
300
+ <span class='kw'>else</span>
301
+ <span class='id identifier rubyid_nuevos_precios'>nuevos_precios</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='lparen'>(</span><span class='id identifier rubyid_precios'>precios</span><span class='lbracket'>[</span><span class='id identifier rubyid_i'>i</span><span class='rbracket'>]</span> <span class='op'>*</span> <span class='float'>1.50</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_round'>round</span><span class='lparen'>(</span><span class='int'>2</span><span class='rparen'>)</span><span class='rparen'>)</span>
302
+ <span class='kw'>end</span>
303
+ <span class='id identifier rubyid_i'>i</span> <span class='op'>+=</span> <span class='int'>1</span>
304
+ <span class='rbrace'>}</span>
305
+ <span class='kw'>return</span> <span class='id identifier rubyid_nuevos_precios'>nuevos_precios</span>
306
+ <span class='kw'>end</span></pre>
307
+ </td>
308
+ </tr>
309
+ </table>
310
+ </div>
311
+
312
+ <div class="method_details ">
313
+ <h3 class="signature " id="Max-instance_method">
314
+
315
+ #<strong>Max</strong> &#x21d2; <tt>Object</tt>
316
+
317
+
318
+
319
+
320
+
321
+ </h3><div class="docstring">
322
+ <div class="discussion">
323
+
324
+ <div class="note notetag">
325
+ <strong>Note:</strong>
326
+ <div class='inline'>
327
+ <p>Calculo del elemento maximo del array</p>
328
+ </div>
329
+ </div>
330
+
331
+
332
+ <p>Returns Objeto del mayor dato entre los comparados</p>
333
+
334
+
335
+ </div>
336
+ </div>
337
+ <div class="tags">
338
+
339
+ <p class="tag_title">Returns:</p>
340
+ <ul class="return">
341
+
342
+ <li>
343
+
344
+
345
+ <span class='type'>(<tt>Object</tt>)</span>
346
+
347
+
348
+
349
+ &mdash;
350
+ <div class='inline'>
351
+ <p>Objeto del mayor dato entre los comparados</p>
352
+ </div>
353
+
354
+ </li>
355
+
356
+ </ul>
357
+
358
+ </div><table class="source_code">
359
+ <tr>
360
+ <td>
361
+ <pre class="lines">
362
+
363
+
364
+ 7
365
+ 8
366
+ 9</pre>
367
+ </td>
368
+ <td>
369
+ <pre class="code"><span class="info file"># File 'lib/alimento/Array.rb', line 7</span>
370
+
371
+ <span class='kw'>def</span> <span class='const'>Max</span>
372
+ <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_max'>max</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_a'>a</span><span class='comma'>,</span> <span class='id identifier rubyid_b'>b</span><span class='op'>|</span> <span class='id identifier rubyid_a'>a</span><span class='period'>.</span><span class='id identifier rubyid_huella_nutricional'>huella_nutricional</span> <span class='op'>&lt;=&gt;</span> <span class='id identifier rubyid_b'>b</span><span class='period'>.</span><span class='id identifier rubyid_huella_nutricional'>huella_nutricional</span><span class='rbrace'>}</span>
373
+ <span class='kw'>end</span></pre>
374
+ </td>
375
+ </tr>
376
+ </table>
377
+ </div>
378
+
379
+ </div>
380
+
381
+ </div>
382
+
383
+ <div id="footer">
384
+ Generated on Tue Dec 17 22:28:20 2019 by
385
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
386
+ 0.9.20 (ruby-2.5.1).
387
+ </div>
388
+
389
+ </div>
390
+ </body>
391
+ </html>
@@ -0,0 +1,186 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Documentation by YARD 0.9.20
8
+
9
+ </title>
10
+
11
+ <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
12
+
13
+ <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
14
+
15
+ <script type="text/javascript" charset="utf-8">
16
+ pathId = null;
17
+ relpath = '';
18
+ </script>
19
+
20
+
21
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
22
+
23
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
24
+
25
+
26
+ </head>
27
+ <body>
28
+ <div class="nav_wrap">
29
+ <iframe id="nav" src="class_list.html?1"></iframe>
30
+ <div id="resizer"></div>
31
+ </div>
32
+
33
+ <div id="main" tabindex="-1">
34
+ <div id="header">
35
+ <div id="menu">
36
+
37
+ </div>
38
+
39
+ <div id="search">
40
+
41
+ <a class="full_list_link" id="class_list_link"
42
+ href="class_list.html">
43
+
44
+ <svg width="24" height="24">
45
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
46
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
47
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
48
+ </svg>
49
+ </a>
50
+
51
+ </div>
52
+ <div class="clear"></div>
53
+ </div>
54
+
55
+ <div id="content"><h1 class="noborder title">Documentation by YARD 0.9.20</h1>
56
+ <div id="listing">
57
+ <h1 class="alphaindex">Alphabetic Index</h1>
58
+
59
+ <h2>File Listing</h2>
60
+ <ul id="files" class="index_inline_list">
61
+
62
+
63
+ <li class="r1"><a href="index.html" title="README">README</a></li>
64
+
65
+
66
+ </ul>
67
+
68
+ <div class="clear"></div>
69
+ <h2>Namespace Listing A-Z</h2>
70
+
71
+
72
+
73
+
74
+ <table>
75
+ <tr>
76
+ <td valign='top' width="33%">
77
+
78
+
79
+ <ul id="alpha_A" class="alpha">
80
+ <li class="letter">A</li>
81
+ <ul>
82
+
83
+ <li>
84
+ <span class='object_link'><a href="Alimento/Alimento.html" title="Alimento::Alimento (class)">Alimento</a></span>
85
+
86
+ <small>(Alimento)</small>
87
+
88
+ </li>
89
+
90
+ <li>
91
+ <span class='object_link'><a href="Alimento.html" title="Alimento (module)">Alimento</a></span>
92
+
93
+ </li>
94
+
95
+ <li>
96
+ <span class='object_link'><a href="Array.html" title="Array (class)">Array</a></span>
97
+
98
+ </li>
99
+
100
+ </ul>
101
+ </ul>
102
+
103
+
104
+ <ul id="alpha_E" class="alpha">
105
+ <li class="letter">E</li>
106
+ <ul>
107
+
108
+ <li>
109
+ <span class='object_link'><a href="Alimento/Error.html" title="Alimento::Error (class)">Error</a></span>
110
+
111
+ <small>(Alimento)</small>
112
+
113
+ </li>
114
+
115
+ </ul>
116
+ </ul>
117
+
118
+
119
+ <ul id="alpha_L" class="alpha">
120
+ <li class="letter">L</li>
121
+ <ul>
122
+
123
+ <li>
124
+ <span class='object_link'><a href="Alimento/List.html" title="Alimento::List (class)">List</a></span>
125
+
126
+ <small>(Alimento)</small>
127
+
128
+ </li>
129
+
130
+ </ul>
131
+ </ul>
132
+
133
+
134
+ <ul id="alpha_N" class="alpha">
135
+ <li class="letter">N</li>
136
+ <ul>
137
+
138
+ <li>
139
+ <span class='object_link'><a href="Alimento/Node.html" title="Alimento::Node (class)">Node</a></span>
140
+
141
+ <small>(Alimento)</small>
142
+
143
+ </li>
144
+
145
+ </ul>
146
+ </ul>
147
+
148
+
149
+ <ul id="alpha_P" class="alpha">
150
+ <li class="letter">P</li>
151
+ <ul>
152
+
153
+ <li>
154
+ <span class='object_link'><a href="Alimento/Plato.html" title="Alimento::Plato (class)">Plato</a></span>
155
+
156
+ <small>(Alimento)</small>
157
+
158
+ </li>
159
+
160
+ <li>
161
+ <span class='object_link'><a href="Alimento/PlatoAmbiental.html" title="Alimento::PlatoAmbiental (class)">PlatoAmbiental</a></span>
162
+
163
+ <small>(Alimento)</small>
164
+
165
+ </li>
166
+
167
+ </ul>
168
+ </ul>
169
+
170
+ </td>
171
+ </tr>
172
+ </table>
173
+
174
+ </div>
175
+
176
+ </div>
177
+
178
+ <div id="footer">
179
+ Generated on Tue Dec 17 22:28:19 2019 by
180
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
181
+ 0.9.20 (ruby-2.5.1).
182
+ </div>
183
+
184
+ </div>
185
+ </body>
186
+ </html>