Alimento 0.1.0 → 30.30.30
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Alimento-0.1.0.gem +0 -0
- data/Alimento.gemspec +2 -6
- data/Gemfile +2 -0
- data/Rakefile +5 -62
- data/lib/Alimento.rb +2 -9
- data/lib/Alimento/alimentos.rb +9 -136
- data/lib/Alimento/version.rb +1 -1
- metadata +5 -84
- data/.coveralls.yml +0 -6
- data/.rake_tasks~ +0 -8
- data/Guardfile +0 -82
- data/docs/Alimentos.html +0 -1854
- data/docs/ListaDoble.html +0 -1236
- data/docs/Nodo.html +0 -398
- data/docs/_index.html +0 -133
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -492
- data/docs/file.README.html +0 -117
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -117
- data/docs/js/app.js +0 -248
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -299
- data/docs/top-level-namespace.html +0 -110
- data/lib/Alimento/glucemico.rb +0 -333
- data/lib/Alimento/lista_doble.rb +0 -155
- data/lib/Alimento/ordenacion.rb +0 -321
- data/lib/Alimento/tipo_alimento.rb +0 -29
data/.coveralls.yml
DELETED
data/.rake_tasks~
DELETED
data/Guardfile
DELETED
@@ -1,82 +0,0 @@
|
|
1
|
-
# A sample Guardfile
|
2
|
-
# More info at https://github.com/guard/guard#readme
|
3
|
-
|
4
|
-
## Uncomment and set this to only include directories you want to watch
|
5
|
-
# directories %w(app lib config test spec features) \
|
6
|
-
# .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
7
|
-
|
8
|
-
## Note: if you are using the `directories` clause above and you are not
|
9
|
-
## watching the project directory ('.'), then you will want to move
|
10
|
-
## the Guardfile to a watched dir and symlink it back, e.g.
|
11
|
-
#
|
12
|
-
# $ mkdir config
|
13
|
-
# $ mv Guardfile config/
|
14
|
-
# $ ln -s config/Guardfile .
|
15
|
-
#
|
16
|
-
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
17
|
-
|
18
|
-
guard :bundler do
|
19
|
-
require 'guard/bundler'
|
20
|
-
require 'guard/bundler/verify'
|
21
|
-
helper = Guard::Bundler::Verify.new
|
22
|
-
|
23
|
-
files = ['Gemfile']
|
24
|
-
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
|
25
|
-
|
26
|
-
# Assume files are symlinked from somewhere
|
27
|
-
files.each { |file| watch(helper.real_path(file)) }
|
28
|
-
end
|
29
|
-
|
30
|
-
# Note: The cmd option is now required due to the increasing number of ways
|
31
|
-
# rspec may be run, below are examples of the most common uses.
|
32
|
-
# * bundler: 'bundle exec rspec'
|
33
|
-
# * bundler binstubs: 'bin/rspec'
|
34
|
-
# * spring: 'bin/rspec' (This will use spring if running and you have
|
35
|
-
# installed the spring binstubs per the docs)
|
36
|
-
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
37
|
-
# * 'just' rspec: 'rspec'
|
38
|
-
|
39
|
-
guard :rspec, cmd: "bundle exec rspec" do
|
40
|
-
require "guard/rspec/dsl"
|
41
|
-
dsl = Guard::RSpec::Dsl.new(self)
|
42
|
-
|
43
|
-
# Feel free to open issues for suggestions and improvements
|
44
|
-
|
45
|
-
# RSpec files
|
46
|
-
rspec = dsl.rspec
|
47
|
-
watch(rspec.spec_helper) { rspec.spec_dir }
|
48
|
-
watch(rspec.spec_support) { rspec.spec_dir }
|
49
|
-
watch(rspec.spec_files)
|
50
|
-
|
51
|
-
# Ruby files
|
52
|
-
ruby = dsl.ruby
|
53
|
-
dsl.watch_spec_files_for(ruby.lib_files)
|
54
|
-
|
55
|
-
# Rails files
|
56
|
-
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
57
|
-
dsl.watch_spec_files_for(rails.app_files)
|
58
|
-
dsl.watch_spec_files_for(rails.views)
|
59
|
-
|
60
|
-
watch(rails.controllers) do |m|
|
61
|
-
[
|
62
|
-
rspec.spec.call("routing/#{m[1]}_routing"),
|
63
|
-
rspec.spec.call("controllers/#{m[1]}_controller"),
|
64
|
-
rspec.spec.call("acceptance/#{m[1]}")
|
65
|
-
]
|
66
|
-
end
|
67
|
-
|
68
|
-
# Rails config changes
|
69
|
-
watch(rails.spec_helper) { rspec.spec_dir }
|
70
|
-
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
71
|
-
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
72
|
-
|
73
|
-
# Capybara features specs
|
74
|
-
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
75
|
-
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
76
|
-
|
77
|
-
# Turnip features and steps
|
78
|
-
watch(%r{^spec/acceptance/(.+)\.feature$})
|
79
|
-
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
80
|
-
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
81
|
-
end
|
82
|
-
end
|
data/docs/Alimentos.html
DELETED
@@ -1,1854 +0,0 @@
|
|
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: Alimentos
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.9
|
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 = "Alimentos";
|
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> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">Alimentos</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: Alimentos
|
63
|
-
<span class="abstract note title">Abstract</span>
|
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">Alimentos</li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
81
|
-
|
82
|
-
</dd>
|
83
|
-
</dl>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<dl>
|
91
|
-
<dt>Includes:</dt>
|
92
|
-
<dd>Comparable</dd>
|
93
|
-
</dl>
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
<dl>
|
101
|
-
<dt>Defined in:</dt>
|
102
|
-
<dd>lib/Alimento/alimentos.rb</dd>
|
103
|
-
</dl>
|
104
|
-
|
105
|
-
</div>
|
106
|
-
|
107
|
-
<h2>Overview</h2><div class="docstring">
|
108
|
-
<div class="discussion">
|
109
|
-
<div class="note abstract">
|
110
|
-
<strong>This class is abstract.</strong>
|
111
|
-
<div class='inline'></div>
|
112
|
-
</div>
|
113
|
-
|
114
|
-
|
115
|
-
</div>
|
116
|
-
</div>
|
117
|
-
<div class="tags">
|
118
|
-
|
119
|
-
<p class="tag_title">Author:</p>
|
120
|
-
<ul class="author">
|
121
|
-
|
122
|
-
<li>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
<div class='inline'>
|
129
|
-
<p>Miguel Parra Esquivel (miguelpe83)</p>
|
130
|
-
</div>
|
131
|
-
|
132
|
-
</li>
|
133
|
-
|
134
|
-
</ul>
|
135
|
-
<p class="tag_title">Since:</p>
|
136
|
-
<ul class="since">
|
137
|
-
|
138
|
-
<li>
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<div class='inline'>
|
145
|
-
<p>0.6.0</p>
|
146
|
-
</div>
|
147
|
-
|
148
|
-
</li>
|
149
|
-
|
150
|
-
</ul>
|
151
|
-
|
152
|
-
</div>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
157
|
-
<ul class="summary">
|
158
|
-
|
159
|
-
<li class="public ">
|
160
|
-
<span class="summary_signature">
|
161
|
-
|
162
|
-
<a href="#glucidos-instance_method" title="#glucidos (instance method)">#<strong>glucidos</strong> ⇒ Object </a>
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
</span>
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
180
|
-
|
181
|
-
</li>
|
182
|
-
|
183
|
-
|
184
|
-
<li class="public ">
|
185
|
-
<span class="summary_signature">
|
186
|
-
|
187
|
-
<a href="#lipidos-instance_method" title="#lipidos (instance method)">#<strong>lipidos</strong> ⇒ Object </a>
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
</span>
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
205
|
-
|
206
|
-
</li>
|
207
|
-
|
208
|
-
|
209
|
-
<li class="public ">
|
210
|
-
<span class="summary_signature">
|
211
|
-
|
212
|
-
<a href="#nombre_ali-instance_method" title="#nombre_ali (instance method)">#<strong>nombre_ali</strong> ⇒ Object </a>
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
</span>
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
230
|
-
|
231
|
-
</li>
|
232
|
-
|
233
|
-
|
234
|
-
<li class="public ">
|
235
|
-
<span class="summary_signature">
|
236
|
-
|
237
|
-
<a href="#proteinas-instance_method" title="#proteinas (instance method)">#<strong>proteinas</strong> ⇒ Object </a>
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
</span>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
255
|
-
|
256
|
-
</li>
|
257
|
-
|
258
|
-
|
259
|
-
</ul>
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
<h2>
|
266
|
-
Class Method Summary
|
267
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
268
|
-
</h2>
|
269
|
-
|
270
|
-
<ul class="summary">
|
271
|
-
|
272
|
-
<li class="public ">
|
273
|
-
<span class="summary_signature">
|
274
|
-
|
275
|
-
<a href="#description-class_method" title="description (class method)">.<strong>description</strong> ⇒ String </a>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
</span>
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
<span class="summary_desc"><div class='inline'>
|
290
|
-
<p>Objeto convertidos con el formato string de la descripcion de la clase.</p>
|
291
|
-
</div></span>
|
292
|
-
|
293
|
-
</li>
|
294
|
-
|
295
|
-
|
296
|
-
</ul>
|
297
|
-
|
298
|
-
<h2>
|
299
|
-
Instance Method Summary
|
300
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
301
|
-
</h2>
|
302
|
-
|
303
|
-
<ul class="summary">
|
304
|
-
|
305
|
-
<li class="public ">
|
306
|
-
<span class="summary_signature">
|
307
|
-
|
308
|
-
<a href="#<=>-instance_method" title="#<=> (instance method)">#<strong><=></strong>(other) ⇒ String </a>
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
</span>
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
<span class="summary_desc"><div class='inline'>
|
323
|
-
<p>Objeto convertidos con el formato string.</p>
|
324
|
-
</div></span>
|
325
|
-
|
326
|
-
</li>
|
327
|
-
|
328
|
-
|
329
|
-
<li class="public ">
|
330
|
-
<span class="summary_signature">
|
331
|
-
|
332
|
-
<a href="#calculo_calorias-instance_method" title="#calculo_calorias (instance method)">#<strong>calculo_calorias</strong> ⇒ String </a>
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
</span>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
<span class="summary_desc"><div class='inline'>
|
347
|
-
<p>calculo de calorias ###########.</p>
|
348
|
-
</div></span>
|
349
|
-
|
350
|
-
</li>
|
351
|
-
|
352
|
-
|
353
|
-
<li class="public ">
|
354
|
-
<span class="summary_signature">
|
355
|
-
|
356
|
-
<a href="#get_glucidos-instance_method" title="#get_glucidos (instance method)">#<strong>get_glucidos</strong>(valor) ⇒ Object </a>
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</span>
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
371
|
-
|
372
|
-
</li>
|
373
|
-
|
374
|
-
|
375
|
-
<li class="public ">
|
376
|
-
<span class="summary_signature">
|
377
|
-
|
378
|
-
<a href="#get_lipidos-instance_method" title="#get_lipidos (instance method)">#<strong>get_lipidos</strong>(valor) ⇒ Object </a>
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
</span>
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
393
|
-
|
394
|
-
</li>
|
395
|
-
|
396
|
-
|
397
|
-
<li class="public ">
|
398
|
-
<span class="summary_signature">
|
399
|
-
|
400
|
-
<a href="#get_nombre_ali-instance_method" title="#get_nombre_ali (instance method)">#<strong>get_nombre_ali</strong>(valor) ⇒ Object </a>
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
</span>
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
415
|
-
|
416
|
-
</li>
|
417
|
-
|
418
|
-
|
419
|
-
<li class="public ">
|
420
|
-
<span class="summary_signature">
|
421
|
-
|
422
|
-
<a href="#get_proteinas-instance_method" title="#get_proteinas (instance method)">#<strong>get_proteinas</strong>(valor) ⇒ Object </a>
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
</span>
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
437
|
-
|
438
|
-
</li>
|
439
|
-
|
440
|
-
|
441
|
-
<li class="public ">
|
442
|
-
<span class="summary_signature">
|
443
|
-
|
444
|
-
<a href="#glucidos_to_s-instance_method" title="#glucidos_to_s (instance method)">#<strong>glucidos_to_s</strong> ⇒ String </a>
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
</span>
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
<span class="summary_desc"><div class='inline'>
|
459
|
-
<p>Objeto convertidos con el formato string glucidos.</p>
|
460
|
-
</div></span>
|
461
|
-
|
462
|
-
</li>
|
463
|
-
|
464
|
-
|
465
|
-
<li class="public ">
|
466
|
-
<span class="summary_signature">
|
467
|
-
|
468
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre_ali, proteinas, glucidos, lipidos) ⇒ Alimentos </a>
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
</span>
|
473
|
-
|
474
|
-
|
475
|
-
<span class="note title constructor">constructor</span>
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
<span class="summary_desc"><div class='inline'>
|
485
|
-
<p>A new instance of Alimentos.</p>
|
486
|
-
</div></span>
|
487
|
-
|
488
|
-
</li>
|
489
|
-
|
490
|
-
|
491
|
-
<li class="public ">
|
492
|
-
<span class="summary_signature">
|
493
|
-
|
494
|
-
<a href="#lipidos_to_s-instance_method" title="#lipidos_to_s (instance method)">#<strong>lipidos_to_s</strong> ⇒ String </a>
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
</span>
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
<span class="summary_desc"><div class='inline'>
|
509
|
-
<p>Objeto convertidos con el formato string lipidos.</p>
|
510
|
-
</div></span>
|
511
|
-
|
512
|
-
</li>
|
513
|
-
|
514
|
-
|
515
|
-
<li class="public ">
|
516
|
-
<span class="summary_signature">
|
517
|
-
|
518
|
-
<a href="#nombre_ali_to_s-instance_method" title="#nombre_ali_to_s (instance method)">#<strong>nombre_ali_to_s</strong> ⇒ String </a>
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
</span>
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
<span class="summary_desc"><div class='inline'>
|
533
|
-
<p>metodo to_s ################.</p>
|
534
|
-
</div></span>
|
535
|
-
|
536
|
-
</li>
|
537
|
-
|
538
|
-
|
539
|
-
<li class="public ">
|
540
|
-
<span class="summary_signature">
|
541
|
-
|
542
|
-
<a href="#proteinas_to_s-instance_method" title="#proteinas_to_s (instance method)">#<strong>proteinas_to_s</strong> ⇒ String </a>
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
</span>
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
<span class="summary_desc"><div class='inline'>
|
557
|
-
<p>Objeto convertidos con el formato string proteinas.</p>
|
558
|
-
</div></span>
|
559
|
-
|
560
|
-
</li>
|
561
|
-
|
562
|
-
|
563
|
-
<li class="public ">
|
564
|
-
<span class="summary_signature">
|
565
|
-
|
566
|
-
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ String </a>
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
</span>
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
<span class="summary_desc"><div class='inline'>
|
581
|
-
<p>Objeto convertidos con el formato string.</p>
|
582
|
-
</div></span>
|
583
|
-
|
584
|
-
</li>
|
585
|
-
|
586
|
-
|
587
|
-
</ul>
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
<div id="constructor_details" class="method_details_list">
|
592
|
-
<h2>Constructor Details</h2>
|
593
|
-
|
594
|
-
<div class="method_details first">
|
595
|
-
<h3 class="signature first" id="initialize-instance_method">
|
596
|
-
|
597
|
-
#<strong>initialize</strong>(nombre_ali, proteinas, glucidos, lipidos) ⇒ <tt><span class='object_link'><a href="" title="Alimentos (class)">Alimentos</a></span></tt>
|
598
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
</h3><div class="docstring">
|
604
|
-
<div class="discussion">
|
605
|
-
|
606
|
-
<p>Returns a new instance of Alimentos</p>
|
607
|
-
|
608
|
-
|
609
|
-
</div>
|
610
|
-
</div>
|
611
|
-
<div class="tags">
|
612
|
-
|
613
|
-
<p class="tag_title">Since:</p>
|
614
|
-
<ul class="since">
|
615
|
-
|
616
|
-
<li>
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
<div class='inline'>
|
623
|
-
<p>0.6.0</p>
|
624
|
-
</div>
|
625
|
-
|
626
|
-
</li>
|
627
|
-
|
628
|
-
</ul>
|
629
|
-
|
630
|
-
</div><table class="source_code">
|
631
|
-
<tr>
|
632
|
-
<td>
|
633
|
-
<pre class="lines">
|
634
|
-
|
635
|
-
|
636
|
-
30
|
637
|
-
31
|
638
|
-
32
|
639
|
-
33
|
640
|
-
34
|
641
|
-
35</pre>
|
642
|
-
</td>
|
643
|
-
<td>
|
644
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 30</span>
|
645
|
-
|
646
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_nombre_ali'>nombre_ali</span><span class='comma'>,</span><span class='id identifier rubyid_proteinas'>proteinas</span><span class='comma'>,</span><span class='id identifier rubyid_glucidos'>glucidos</span><span class='comma'>,</span><span class='id identifier rubyid_lipidos'>lipidos</span><span class='rparen'>)</span>
|
647
|
-
<span class='ivar'>@nombre_ali</span> <span class='op'>=</span> <span class='id identifier rubyid_nombre_ali'>nombre_ali</span>
|
648
|
-
<span class='ivar'>@proteinas</span> <span class='op'>=</span> <span class='id identifier rubyid_proteinas'>proteinas</span>
|
649
|
-
<span class='ivar'>@glucidos</span> <span class='op'>=</span> <span class='id identifier rubyid_glucidos'>glucidos</span>
|
650
|
-
<span class='ivar'>@lipidos</span> <span class='op'>=</span> <span class='id identifier rubyid_lipidos'>lipidos</span>
|
651
|
-
<span class='kw'>end</span></pre>
|
652
|
-
</td>
|
653
|
-
</tr>
|
654
|
-
</table>
|
655
|
-
</div>
|
656
|
-
|
657
|
-
</div>
|
658
|
-
|
659
|
-
<div id="instance_attr_details" class="attr_details">
|
660
|
-
<h2>Instance Attribute Details</h2>
|
661
|
-
|
662
|
-
|
663
|
-
<span id="glucidos=-instance_method"></span>
|
664
|
-
<div class="method_details first">
|
665
|
-
<h3 class="signature first" id="glucidos-instance_method">
|
666
|
-
|
667
|
-
#<strong>glucidos</strong> ⇒ <tt>Object</tt>
|
668
|
-
|
669
|
-
|
670
|
-
|
671
|
-
|
672
|
-
|
673
|
-
</h3><div class="docstring">
|
674
|
-
<div class="discussion">
|
675
|
-
|
676
|
-
|
677
|
-
</div>
|
678
|
-
</div>
|
679
|
-
<div class="tags">
|
680
|
-
|
681
|
-
<p class="tag_title">Since:</p>
|
682
|
-
<ul class="since">
|
683
|
-
|
684
|
-
<li>
|
685
|
-
|
686
|
-
|
687
|
-
|
688
|
-
|
689
|
-
|
690
|
-
<div class='inline'>
|
691
|
-
<p>0.6.0</p>
|
692
|
-
</div>
|
693
|
-
|
694
|
-
</li>
|
695
|
-
|
696
|
-
</ul>
|
697
|
-
|
698
|
-
</div><table class="source_code">
|
699
|
-
<tr>
|
700
|
-
<td>
|
701
|
-
<pre class="lines">
|
702
|
-
|
703
|
-
|
704
|
-
28
|
705
|
-
29
|
706
|
-
30</pre>
|
707
|
-
</td>
|
708
|
-
<td>
|
709
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 28</span>
|
710
|
-
|
711
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_glucidos'>glucidos</span>
|
712
|
-
<span class='ivar'>@glucidos</span>
|
713
|
-
<span class='kw'>end</span></pre>
|
714
|
-
</td>
|
715
|
-
</tr>
|
716
|
-
</table>
|
717
|
-
</div>
|
718
|
-
|
719
|
-
|
720
|
-
<span id="lipidos=-instance_method"></span>
|
721
|
-
<div class="method_details ">
|
722
|
-
<h3 class="signature " id="lipidos-instance_method">
|
723
|
-
|
724
|
-
#<strong>lipidos</strong> ⇒ <tt>Object</tt>
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
|
729
|
-
|
730
|
-
</h3><div class="docstring">
|
731
|
-
<div class="discussion">
|
732
|
-
|
733
|
-
|
734
|
-
</div>
|
735
|
-
</div>
|
736
|
-
<div class="tags">
|
737
|
-
|
738
|
-
<p class="tag_title">Since:</p>
|
739
|
-
<ul class="since">
|
740
|
-
|
741
|
-
<li>
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
<div class='inline'>
|
748
|
-
<p>0.6.0</p>
|
749
|
-
</div>
|
750
|
-
|
751
|
-
</li>
|
752
|
-
|
753
|
-
</ul>
|
754
|
-
|
755
|
-
</div><table class="source_code">
|
756
|
-
<tr>
|
757
|
-
<td>
|
758
|
-
<pre class="lines">
|
759
|
-
|
760
|
-
|
761
|
-
28
|
762
|
-
29
|
763
|
-
30</pre>
|
764
|
-
</td>
|
765
|
-
<td>
|
766
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 28</span>
|
767
|
-
|
768
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_lipidos'>lipidos</span>
|
769
|
-
<span class='ivar'>@lipidos</span>
|
770
|
-
<span class='kw'>end</span></pre>
|
771
|
-
</td>
|
772
|
-
</tr>
|
773
|
-
</table>
|
774
|
-
</div>
|
775
|
-
|
776
|
-
|
777
|
-
<span id="nombre_ali=-instance_method"></span>
|
778
|
-
<div class="method_details ">
|
779
|
-
<h3 class="signature " id="nombre_ali-instance_method">
|
780
|
-
|
781
|
-
#<strong>nombre_ali</strong> ⇒ <tt>Object</tt>
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
|
787
|
-
</h3><div class="docstring">
|
788
|
-
<div class="discussion">
|
789
|
-
|
790
|
-
|
791
|
-
</div>
|
792
|
-
</div>
|
793
|
-
<div class="tags">
|
794
|
-
|
795
|
-
<p class="tag_title">Since:</p>
|
796
|
-
<ul class="since">
|
797
|
-
|
798
|
-
<li>
|
799
|
-
|
800
|
-
|
801
|
-
|
802
|
-
|
803
|
-
|
804
|
-
<div class='inline'>
|
805
|
-
<p>0.6.0</p>
|
806
|
-
</div>
|
807
|
-
|
808
|
-
</li>
|
809
|
-
|
810
|
-
</ul>
|
811
|
-
|
812
|
-
</div><table class="source_code">
|
813
|
-
<tr>
|
814
|
-
<td>
|
815
|
-
<pre class="lines">
|
816
|
-
|
817
|
-
|
818
|
-
28
|
819
|
-
29
|
820
|
-
30</pre>
|
821
|
-
</td>
|
822
|
-
<td>
|
823
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 28</span>
|
824
|
-
|
825
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_nombre_ali'>nombre_ali</span>
|
826
|
-
<span class='ivar'>@nombre_ali</span>
|
827
|
-
<span class='kw'>end</span></pre>
|
828
|
-
</td>
|
829
|
-
</tr>
|
830
|
-
</table>
|
831
|
-
</div>
|
832
|
-
|
833
|
-
|
834
|
-
<span id="proteinas=-instance_method"></span>
|
835
|
-
<div class="method_details ">
|
836
|
-
<h3 class="signature " id="proteinas-instance_method">
|
837
|
-
|
838
|
-
#<strong>proteinas</strong> ⇒ <tt>Object</tt>
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
</h3><div class="docstring">
|
845
|
-
<div class="discussion">
|
846
|
-
|
847
|
-
|
848
|
-
</div>
|
849
|
-
</div>
|
850
|
-
<div class="tags">
|
851
|
-
|
852
|
-
<p class="tag_title">Since:</p>
|
853
|
-
<ul class="since">
|
854
|
-
|
855
|
-
<li>
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
<div class='inline'>
|
862
|
-
<p>0.6.0</p>
|
863
|
-
</div>
|
864
|
-
|
865
|
-
</li>
|
866
|
-
|
867
|
-
</ul>
|
868
|
-
|
869
|
-
</div><table class="source_code">
|
870
|
-
<tr>
|
871
|
-
<td>
|
872
|
-
<pre class="lines">
|
873
|
-
|
874
|
-
|
875
|
-
28
|
876
|
-
29
|
877
|
-
30</pre>
|
878
|
-
</td>
|
879
|
-
<td>
|
880
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 28</span>
|
881
|
-
|
882
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_proteinas'>proteinas</span>
|
883
|
-
<span class='ivar'>@proteinas</span>
|
884
|
-
<span class='kw'>end</span></pre>
|
885
|
-
</td>
|
886
|
-
</tr>
|
887
|
-
</table>
|
888
|
-
</div>
|
889
|
-
|
890
|
-
</div>
|
891
|
-
|
892
|
-
|
893
|
-
<div id="class_method_details" class="method_details_list">
|
894
|
-
<h2>Class Method Details</h2>
|
895
|
-
|
896
|
-
|
897
|
-
<div class="method_details first">
|
898
|
-
<h3 class="signature first" id="description-class_method">
|
899
|
-
|
900
|
-
.<strong>description</strong> ⇒ <tt>String</tt>
|
901
|
-
|
902
|
-
|
903
|
-
|
904
|
-
|
905
|
-
|
906
|
-
</h3><div class="docstring">
|
907
|
-
<div class="discussion">
|
908
|
-
|
909
|
-
<p>Returns objeto convertidos con el formato string de la descripcion de la
|
910
|
-
clase</p>
|
911
|
-
|
912
|
-
|
913
|
-
</div>
|
914
|
-
</div>
|
915
|
-
<div class="tags">
|
916
|
-
|
917
|
-
<p class="tag_title">Returns:</p>
|
918
|
-
<ul class="return">
|
919
|
-
|
920
|
-
<li>
|
921
|
-
|
922
|
-
|
923
|
-
<span class='type'>(<tt>String</tt>)</span>
|
924
|
-
|
925
|
-
|
926
|
-
|
927
|
-
—
|
928
|
-
<div class='inline'>
|
929
|
-
<p>objeto convertidos con el formato string de la descripcion de la clase</p>
|
930
|
-
</div>
|
931
|
-
|
932
|
-
</li>
|
933
|
-
|
934
|
-
</ul>
|
935
|
-
<p class="tag_title">Since:</p>
|
936
|
-
<ul class="since">
|
937
|
-
|
938
|
-
<li>
|
939
|
-
|
940
|
-
|
941
|
-
|
942
|
-
|
943
|
-
|
944
|
-
<div class='inline'>
|
945
|
-
<p>0.6.0</p>
|
946
|
-
</div>
|
947
|
-
|
948
|
-
</li>
|
949
|
-
|
950
|
-
</ul>
|
951
|
-
|
952
|
-
</div><table class="source_code">
|
953
|
-
<tr>
|
954
|
-
<td>
|
955
|
-
<pre class="lines">
|
956
|
-
|
957
|
-
|
958
|
-
13
|
959
|
-
14
|
960
|
-
15</pre>
|
961
|
-
</td>
|
962
|
-
<td>
|
963
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 13</span>
|
964
|
-
|
965
|
-
<span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_description'>description</span>
|
966
|
-
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>clase que muestra informacion de nutrientes de un Alimento</span><span class='tstring_end'>"</span></span>
|
967
|
-
<span class='kw'>end</span></pre>
|
968
|
-
</td>
|
969
|
-
</tr>
|
970
|
-
</table>
|
971
|
-
</div>
|
972
|
-
|
973
|
-
</div>
|
974
|
-
|
975
|
-
<div id="instance_method_details" class="method_details_list">
|
976
|
-
<h2>Instance Method Details</h2>
|
977
|
-
|
978
|
-
|
979
|
-
<div class="method_details first">
|
980
|
-
<h3 class="signature first" id="<=>-instance_method">
|
981
|
-
|
982
|
-
#<strong><=></strong>(other) ⇒ <tt>String</tt>
|
983
|
-
|
984
|
-
|
985
|
-
|
986
|
-
|
987
|
-
|
988
|
-
</h3><div class="docstring">
|
989
|
-
<div class="discussion">
|
990
|
-
|
991
|
-
<p>Returns objeto convertidos con el formato string</p>
|
992
|
-
|
993
|
-
|
994
|
-
</div>
|
995
|
-
</div>
|
996
|
-
<div class="tags">
|
997
|
-
<p class="tag_title">Parameters:</p>
|
998
|
-
<ul class="param">
|
999
|
-
|
1000
|
-
<li>
|
1001
|
-
|
1002
|
-
<span class='name'>other</span>
|
1003
|
-
|
1004
|
-
|
1005
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
—
|
1010
|
-
<div class='inline'>
|
1011
|
-
<p>hacerlo comparable el objeto con otro objeto del mismo tipo</p>
|
1012
|
-
</div>
|
1013
|
-
|
1014
|
-
</li>
|
1015
|
-
|
1016
|
-
</ul>
|
1017
|
-
|
1018
|
-
<p class="tag_title">Returns:</p>
|
1019
|
-
<ul class="return">
|
1020
|
-
|
1021
|
-
<li>
|
1022
|
-
|
1023
|
-
|
1024
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
—
|
1029
|
-
<div class='inline'>
|
1030
|
-
<p>objeto convertidos con el formato string</p>
|
1031
|
-
</div>
|
1032
|
-
|
1033
|
-
</li>
|
1034
|
-
|
1035
|
-
</ul>
|
1036
|
-
<p class="tag_title">Since:</p>
|
1037
|
-
<ul class="since">
|
1038
|
-
|
1039
|
-
<li>
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
<div class='inline'>
|
1046
|
-
<p>0.6.0</p>
|
1047
|
-
</div>
|
1048
|
-
|
1049
|
-
</li>
|
1050
|
-
|
1051
|
-
</ul>
|
1052
|
-
|
1053
|
-
</div><table class="source_code">
|
1054
|
-
<tr>
|
1055
|
-
<td>
|
1056
|
-
<pre class="lines">
|
1057
|
-
|
1058
|
-
|
1059
|
-
98
|
1060
|
-
99
|
1061
|
-
100
|
1062
|
-
101
|
1063
|
-
102
|
1064
|
-
103
|
1065
|
-
104</pre>
|
1066
|
-
</td>
|
1067
|
-
<td>
|
1068
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 98</span>
|
1069
|
-
|
1070
|
-
<span class='kw'>def</span> <span class='op'><=></span> <span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
1071
|
-
<span class='kw'>return</span> <span class='kw'>nil</span> <span class='kw'>unless</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_instance_of?'>instance_of?</span> <span class='const'><span class='object_link'><a href="" title="Alimentos (class)">Alimentos</a></span></span>
|
1072
|
-
<span class='ivar'>@nombre_ali</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_nombre_ali'>nombre_ali</span>
|
1073
|
-
<span class='ivar'>@proteinas</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_proteinas'>proteinas</span>
|
1074
|
-
<span class='ivar'>@glucidos</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_glucidos'>glucidos</span>
|
1075
|
-
<span class='ivar'>@lipidos</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_lipidos'>lipidos</span>
|
1076
|
-
<span class='kw'>end</span></pre>
|
1077
|
-
</td>
|
1078
|
-
</tr>
|
1079
|
-
</table>
|
1080
|
-
</div>
|
1081
|
-
|
1082
|
-
<div class="method_details ">
|
1083
|
-
<h3 class="signature " id="calculo_calorias-instance_method">
|
1084
|
-
|
1085
|
-
#<strong>calculo_calorias</strong> ⇒ <tt>String</tt>
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
</h3><div class="docstring">
|
1092
|
-
<div class="discussion">
|
1093
|
-
|
1094
|
-
<p>calculo de calorias ###########</p>
|
1095
|
-
|
1096
|
-
|
1097
|
-
</div>
|
1098
|
-
</div>
|
1099
|
-
<div class="tags">
|
1100
|
-
|
1101
|
-
<p class="tag_title">Returns:</p>
|
1102
|
-
<ul class="return">
|
1103
|
-
|
1104
|
-
<li>
|
1105
|
-
|
1106
|
-
|
1107
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
—
|
1112
|
-
<div class='inline'>
|
1113
|
-
<p>objeto convertidos con el formato string de calculo_calorias</p>
|
1114
|
-
</div>
|
1115
|
-
|
1116
|
-
</li>
|
1117
|
-
|
1118
|
-
</ul>
|
1119
|
-
<p class="tag_title">Since:</p>
|
1120
|
-
<ul class="since">
|
1121
|
-
|
1122
|
-
<li>
|
1123
|
-
|
1124
|
-
|
1125
|
-
|
1126
|
-
|
1127
|
-
|
1128
|
-
<div class='inline'>
|
1129
|
-
<p>0.6.0</p>
|
1130
|
-
</div>
|
1131
|
-
|
1132
|
-
</li>
|
1133
|
-
|
1134
|
-
</ul>
|
1135
|
-
|
1136
|
-
</div><table class="source_code">
|
1137
|
-
<tr>
|
1138
|
-
<td>
|
1139
|
-
<pre class="lines">
|
1140
|
-
|
1141
|
-
|
1142
|
-
91
|
1143
|
-
92
|
1144
|
-
93
|
1145
|
-
94</pre>
|
1146
|
-
</td>
|
1147
|
-
<td>
|
1148
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 91</span>
|
1149
|
-
|
1150
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_calculo_calorias'>calculo_calorias</span>
|
1151
|
-
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='int'>0</span>
|
1152
|
-
<span class='id identifier rubyid_result'>result</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='ivar'>@proteinas</span><span class='op'>*</span><span class='float'>4.0</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@glucidos</span><span class='op'>*</span><span class='float'>4.0</span><span class='rparen'>)</span> <span class='op'>+</span> <span class='lparen'>(</span><span class='ivar'>@lipidos</span><span class='op'>*</span><span class='float'>9.0</span><span class='rparen'>)</span>
|
1153
|
-
<span class='kw'>end</span></pre>
|
1154
|
-
</td>
|
1155
|
-
</tr>
|
1156
|
-
</table>
|
1157
|
-
</div>
|
1158
|
-
|
1159
|
-
<div class="method_details ">
|
1160
|
-
<h3 class="signature " id="get_glucidos-instance_method">
|
1161
|
-
|
1162
|
-
#<strong>get_glucidos</strong>(valor) ⇒ <tt>Object</tt>
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
1166
|
-
|
1167
|
-
|
1168
|
-
</h3><div class="docstring">
|
1169
|
-
<div class="discussion">
|
1170
|
-
|
1171
|
-
|
1172
|
-
</div>
|
1173
|
-
</div>
|
1174
|
-
<div class="tags">
|
1175
|
-
<p class="tag_title">Parameters:</p>
|
1176
|
-
<ul class="param">
|
1177
|
-
|
1178
|
-
<li>
|
1179
|
-
|
1180
|
-
<span class='name'>valor</span>
|
1181
|
-
|
1182
|
-
|
1183
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1184
|
-
|
1185
|
-
|
1186
|
-
|
1187
|
-
—
|
1188
|
-
<div class='inline'>
|
1189
|
-
<p>glucidos</p>
|
1190
|
-
</div>
|
1191
|
-
|
1192
|
-
</li>
|
1193
|
-
|
1194
|
-
</ul>
|
1195
|
-
|
1196
|
-
<p class="tag_title">Since:</p>
|
1197
|
-
<ul class="since">
|
1198
|
-
|
1199
|
-
<li>
|
1200
|
-
|
1201
|
-
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
<div class='inline'>
|
1206
|
-
<p>0.6.0</p>
|
1207
|
-
</div>
|
1208
|
-
|
1209
|
-
</li>
|
1210
|
-
|
1211
|
-
</ul>
|
1212
|
-
|
1213
|
-
</div><table class="source_code">
|
1214
|
-
<tr>
|
1215
|
-
<td>
|
1216
|
-
<pre class="lines">
|
1217
|
-
|
1218
|
-
|
1219
|
-
50
|
1220
|
-
51
|
1221
|
-
52</pre>
|
1222
|
-
</td>
|
1223
|
-
<td>
|
1224
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 50</span>
|
1225
|
-
|
1226
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_get_glucidos'>get_glucidos</span> <span class='lparen'>(</span><span class='id identifier rubyid_valor'>valor</span><span class='rparen'>)</span>
|
1227
|
-
<span class='ivar'>@glucidos</span> <span class='op'>=</span> <span class='id identifier rubyid_valor'>valor</span>
|
1228
|
-
<span class='kw'>end</span></pre>
|
1229
|
-
</td>
|
1230
|
-
</tr>
|
1231
|
-
</table>
|
1232
|
-
</div>
|
1233
|
-
|
1234
|
-
<div class="method_details ">
|
1235
|
-
<h3 class="signature " id="get_lipidos-instance_method">
|
1236
|
-
|
1237
|
-
#<strong>get_lipidos</strong>(valor) ⇒ <tt>Object</tt>
|
1238
|
-
|
1239
|
-
|
1240
|
-
|
1241
|
-
|
1242
|
-
|
1243
|
-
</h3><div class="docstring">
|
1244
|
-
<div class="discussion">
|
1245
|
-
|
1246
|
-
|
1247
|
-
</div>
|
1248
|
-
</div>
|
1249
|
-
<div class="tags">
|
1250
|
-
<p class="tag_title">Parameters:</p>
|
1251
|
-
<ul class="param">
|
1252
|
-
|
1253
|
-
<li>
|
1254
|
-
|
1255
|
-
<span class='name'>valor</span>
|
1256
|
-
|
1257
|
-
|
1258
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1259
|
-
|
1260
|
-
|
1261
|
-
|
1262
|
-
—
|
1263
|
-
<div class='inline'>
|
1264
|
-
<p>lipidos</p>
|
1265
|
-
</div>
|
1266
|
-
|
1267
|
-
</li>
|
1268
|
-
|
1269
|
-
</ul>
|
1270
|
-
|
1271
|
-
<p class="tag_title">Since:</p>
|
1272
|
-
<ul class="since">
|
1273
|
-
|
1274
|
-
<li>
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
1280
|
-
<div class='inline'>
|
1281
|
-
<p>0.6.0</p>
|
1282
|
-
</div>
|
1283
|
-
|
1284
|
-
</li>
|
1285
|
-
|
1286
|
-
</ul>
|
1287
|
-
|
1288
|
-
</div><table class="source_code">
|
1289
|
-
<tr>
|
1290
|
-
<td>
|
1291
|
-
<pre class="lines">
|
1292
|
-
|
1293
|
-
|
1294
|
-
55
|
1295
|
-
56
|
1296
|
-
57</pre>
|
1297
|
-
</td>
|
1298
|
-
<td>
|
1299
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 55</span>
|
1300
|
-
|
1301
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_get_lipidos'>get_lipidos</span> <span class='lparen'>(</span><span class='id identifier rubyid_valor'>valor</span><span class='rparen'>)</span>
|
1302
|
-
<span class='ivar'>@glucidos</span> <span class='op'>=</span> <span class='id identifier rubyid_valor'>valor</span>
|
1303
|
-
<span class='kw'>end</span></pre>
|
1304
|
-
</td>
|
1305
|
-
</tr>
|
1306
|
-
</table>
|
1307
|
-
</div>
|
1308
|
-
|
1309
|
-
<div class="method_details ">
|
1310
|
-
<h3 class="signature " id="get_nombre_ali-instance_method">
|
1311
|
-
|
1312
|
-
#<strong>get_nombre_ali</strong>(valor) ⇒ <tt>Object</tt>
|
1313
|
-
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
</h3><div class="docstring">
|
1319
|
-
<div class="discussion">
|
1320
|
-
|
1321
|
-
|
1322
|
-
</div>
|
1323
|
-
</div>
|
1324
|
-
<div class="tags">
|
1325
|
-
<p class="tag_title">Parameters:</p>
|
1326
|
-
<ul class="param">
|
1327
|
-
|
1328
|
-
<li>
|
1329
|
-
|
1330
|
-
<span class='name'>valor</span>
|
1331
|
-
|
1332
|
-
|
1333
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1334
|
-
|
1335
|
-
|
1336
|
-
|
1337
|
-
—
|
1338
|
-
<div class='inline'>
|
1339
|
-
<p>nombre del alimentos</p>
|
1340
|
-
</div>
|
1341
|
-
|
1342
|
-
</li>
|
1343
|
-
|
1344
|
-
</ul>
|
1345
|
-
|
1346
|
-
<p class="tag_title">Since:</p>
|
1347
|
-
<ul class="since">
|
1348
|
-
|
1349
|
-
<li>
|
1350
|
-
|
1351
|
-
|
1352
|
-
|
1353
|
-
|
1354
|
-
|
1355
|
-
<div class='inline'>
|
1356
|
-
<p>0.6.0</p>
|
1357
|
-
</div>
|
1358
|
-
|
1359
|
-
</li>
|
1360
|
-
|
1361
|
-
</ul>
|
1362
|
-
|
1363
|
-
</div><table class="source_code">
|
1364
|
-
<tr>
|
1365
|
-
<td>
|
1366
|
-
<pre class="lines">
|
1367
|
-
|
1368
|
-
|
1369
|
-
40
|
1370
|
-
41
|
1371
|
-
42</pre>
|
1372
|
-
</td>
|
1373
|
-
<td>
|
1374
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 40</span>
|
1375
|
-
|
1376
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_get_nombre_ali'>get_nombre_ali</span> <span class='lparen'>(</span><span class='id identifier rubyid_valor'>valor</span><span class='rparen'>)</span>
|
1377
|
-
<span class='ivar'>@nombre_ali</span> <span class='op'>=</span> <span class='id identifier rubyid_valor'>valor</span>
|
1378
|
-
<span class='kw'>end</span></pre>
|
1379
|
-
</td>
|
1380
|
-
</tr>
|
1381
|
-
</table>
|
1382
|
-
</div>
|
1383
|
-
|
1384
|
-
<div class="method_details ">
|
1385
|
-
<h3 class="signature " id="get_proteinas-instance_method">
|
1386
|
-
|
1387
|
-
#<strong>get_proteinas</strong>(valor) ⇒ <tt>Object</tt>
|
1388
|
-
|
1389
|
-
|
1390
|
-
|
1391
|
-
|
1392
|
-
|
1393
|
-
</h3><div class="docstring">
|
1394
|
-
<div class="discussion">
|
1395
|
-
|
1396
|
-
|
1397
|
-
</div>
|
1398
|
-
</div>
|
1399
|
-
<div class="tags">
|
1400
|
-
<p class="tag_title">Parameters:</p>
|
1401
|
-
<ul class="param">
|
1402
|
-
|
1403
|
-
<li>
|
1404
|
-
|
1405
|
-
<span class='name'>valor</span>
|
1406
|
-
|
1407
|
-
|
1408
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
—
|
1413
|
-
<div class='inline'>
|
1414
|
-
<p>proteinas</p>
|
1415
|
-
</div>
|
1416
|
-
|
1417
|
-
</li>
|
1418
|
-
|
1419
|
-
</ul>
|
1420
|
-
|
1421
|
-
<p class="tag_title">Since:</p>
|
1422
|
-
<ul class="since">
|
1423
|
-
|
1424
|
-
<li>
|
1425
|
-
|
1426
|
-
|
1427
|
-
|
1428
|
-
|
1429
|
-
|
1430
|
-
<div class='inline'>
|
1431
|
-
<p>0.6.0</p>
|
1432
|
-
</div>
|
1433
|
-
|
1434
|
-
</li>
|
1435
|
-
|
1436
|
-
</ul>
|
1437
|
-
|
1438
|
-
</div><table class="source_code">
|
1439
|
-
<tr>
|
1440
|
-
<td>
|
1441
|
-
<pre class="lines">
|
1442
|
-
|
1443
|
-
|
1444
|
-
45
|
1445
|
-
46
|
1446
|
-
47</pre>
|
1447
|
-
</td>
|
1448
|
-
<td>
|
1449
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 45</span>
|
1450
|
-
|
1451
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_get_proteinas'>get_proteinas</span> <span class='lparen'>(</span><span class='id identifier rubyid_valor'>valor</span><span class='rparen'>)</span>
|
1452
|
-
<span class='ivar'>@proteinas</span> <span class='op'>=</span> <span class='id identifier rubyid_valor'>valor</span>
|
1453
|
-
<span class='kw'>end</span></pre>
|
1454
|
-
</td>
|
1455
|
-
</tr>
|
1456
|
-
</table>
|
1457
|
-
</div>
|
1458
|
-
|
1459
|
-
<div class="method_details ">
|
1460
|
-
<h3 class="signature " id="glucidos_to_s-instance_method">
|
1461
|
-
|
1462
|
-
#<strong>glucidos_to_s</strong> ⇒ <tt>String</tt>
|
1463
|
-
|
1464
|
-
|
1465
|
-
|
1466
|
-
|
1467
|
-
|
1468
|
-
</h3><div class="docstring">
|
1469
|
-
<div class="discussion">
|
1470
|
-
|
1471
|
-
<p>Returns objeto convertidos con el formato string glucidos</p>
|
1472
|
-
|
1473
|
-
|
1474
|
-
</div>
|
1475
|
-
</div>
|
1476
|
-
<div class="tags">
|
1477
|
-
|
1478
|
-
<p class="tag_title">Returns:</p>
|
1479
|
-
<ul class="return">
|
1480
|
-
|
1481
|
-
<li>
|
1482
|
-
|
1483
|
-
|
1484
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1485
|
-
|
1486
|
-
|
1487
|
-
|
1488
|
-
—
|
1489
|
-
<div class='inline'>
|
1490
|
-
<p>objeto convertidos con el formato string glucidos</p>
|
1491
|
-
</div>
|
1492
|
-
|
1493
|
-
</li>
|
1494
|
-
|
1495
|
-
</ul>
|
1496
|
-
<p class="tag_title">Since:</p>
|
1497
|
-
<ul class="since">
|
1498
|
-
|
1499
|
-
<li>
|
1500
|
-
|
1501
|
-
|
1502
|
-
|
1503
|
-
|
1504
|
-
|
1505
|
-
<div class='inline'>
|
1506
|
-
<p>0.6.0</p>
|
1507
|
-
</div>
|
1508
|
-
|
1509
|
-
</li>
|
1510
|
-
|
1511
|
-
</ul>
|
1512
|
-
|
1513
|
-
</div><table class="source_code">
|
1514
|
-
<tr>
|
1515
|
-
<td>
|
1516
|
-
<pre class="lines">
|
1517
|
-
|
1518
|
-
|
1519
|
-
73
|
1520
|
-
74
|
1521
|
-
75
|
1522
|
-
76</pre>
|
1523
|
-
</td>
|
1524
|
-
<td>
|
1525
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 73</span>
|
1526
|
-
|
1527
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_glucidos_to_s'>glucidos_to_s</span>
|
1528
|
-
<span class='id identifier rubyid_imprime'>imprime</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@glucidos</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='comment'>#número de porciones
|
1529
|
-
</span> <span class='kw'>return</span> <span class='id identifier rubyid_imprime'>imprime</span>
|
1530
|
-
<span class='kw'>end</span></pre>
|
1531
|
-
</td>
|
1532
|
-
</tr>
|
1533
|
-
</table>
|
1534
|
-
</div>
|
1535
|
-
|
1536
|
-
<div class="method_details ">
|
1537
|
-
<h3 class="signature " id="lipidos_to_s-instance_method">
|
1538
|
-
|
1539
|
-
#<strong>lipidos_to_s</strong> ⇒ <tt>String</tt>
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1543
|
-
|
1544
|
-
|
1545
|
-
</h3><div class="docstring">
|
1546
|
-
<div class="discussion">
|
1547
|
-
|
1548
|
-
<p>Returns objeto convertidos con el formato string lipidos</p>
|
1549
|
-
|
1550
|
-
|
1551
|
-
</div>
|
1552
|
-
</div>
|
1553
|
-
<div class="tags">
|
1554
|
-
|
1555
|
-
<p class="tag_title">Returns:</p>
|
1556
|
-
<ul class="return">
|
1557
|
-
|
1558
|
-
<li>
|
1559
|
-
|
1560
|
-
|
1561
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1562
|
-
|
1563
|
-
|
1564
|
-
|
1565
|
-
—
|
1566
|
-
<div class='inline'>
|
1567
|
-
<p>objeto convertidos con el formato string lipidos</p>
|
1568
|
-
</div>
|
1569
|
-
|
1570
|
-
</li>
|
1571
|
-
|
1572
|
-
</ul>
|
1573
|
-
<p class="tag_title">Since:</p>
|
1574
|
-
<ul class="since">
|
1575
|
-
|
1576
|
-
<li>
|
1577
|
-
|
1578
|
-
|
1579
|
-
|
1580
|
-
|
1581
|
-
|
1582
|
-
<div class='inline'>
|
1583
|
-
<p>0.6.0</p>
|
1584
|
-
</div>
|
1585
|
-
|
1586
|
-
</li>
|
1587
|
-
|
1588
|
-
</ul>
|
1589
|
-
|
1590
|
-
</div><table class="source_code">
|
1591
|
-
<tr>
|
1592
|
-
<td>
|
1593
|
-
<pre class="lines">
|
1594
|
-
|
1595
|
-
|
1596
|
-
79
|
1597
|
-
80
|
1598
|
-
81
|
1599
|
-
82</pre>
|
1600
|
-
</td>
|
1601
|
-
<td>
|
1602
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 79</span>
|
1603
|
-
|
1604
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_lipidos_to_s'>lipidos_to_s</span>
|
1605
|
-
<span class='id identifier rubyid_imprime'>imprime</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@lipidos</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='comment'>#número de porciones
|
1606
|
-
</span> <span class='kw'>return</span> <span class='id identifier rubyid_imprime'>imprime</span>
|
1607
|
-
<span class='kw'>end</span></pre>
|
1608
|
-
</td>
|
1609
|
-
</tr>
|
1610
|
-
</table>
|
1611
|
-
</div>
|
1612
|
-
|
1613
|
-
<div class="method_details ">
|
1614
|
-
<h3 class="signature " id="nombre_ali_to_s-instance_method">
|
1615
|
-
|
1616
|
-
#<strong>nombre_ali_to_s</strong> ⇒ <tt>String</tt>
|
1617
|
-
|
1618
|
-
|
1619
|
-
|
1620
|
-
|
1621
|
-
|
1622
|
-
</h3><div class="docstring">
|
1623
|
-
<div class="discussion">
|
1624
|
-
|
1625
|
-
<p>metodo to_s ################</p>
|
1626
|
-
|
1627
|
-
|
1628
|
-
</div>
|
1629
|
-
</div>
|
1630
|
-
<div class="tags">
|
1631
|
-
|
1632
|
-
<p class="tag_title">Returns:</p>
|
1633
|
-
<ul class="return">
|
1634
|
-
|
1635
|
-
<li>
|
1636
|
-
|
1637
|
-
|
1638
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
—
|
1643
|
-
<div class='inline'>
|
1644
|
-
<p>objeto convertidos con el formato string de nombre_ali</p>
|
1645
|
-
</div>
|
1646
|
-
|
1647
|
-
</li>
|
1648
|
-
|
1649
|
-
</ul>
|
1650
|
-
<p class="tag_title">Since:</p>
|
1651
|
-
<ul class="since">
|
1652
|
-
|
1653
|
-
<li>
|
1654
|
-
|
1655
|
-
|
1656
|
-
|
1657
|
-
|
1658
|
-
|
1659
|
-
<div class='inline'>
|
1660
|
-
<p>0.6.0</p>
|
1661
|
-
</div>
|
1662
|
-
|
1663
|
-
</li>
|
1664
|
-
|
1665
|
-
</ul>
|
1666
|
-
|
1667
|
-
</div><table class="source_code">
|
1668
|
-
<tr>
|
1669
|
-
<td>
|
1670
|
-
<pre class="lines">
|
1671
|
-
|
1672
|
-
|
1673
|
-
61
|
1674
|
-
62
|
1675
|
-
63
|
1676
|
-
64</pre>
|
1677
|
-
</td>
|
1678
|
-
<td>
|
1679
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 61</span>
|
1680
|
-
|
1681
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_nombre_ali_to_s'>nombre_ali_to_s</span>
|
1682
|
-
<span class='id identifier rubyid_imprime'>imprime</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre_ali</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='comment'>#número de porciones
|
1683
|
-
</span> <span class='kw'>return</span> <span class='id identifier rubyid_imprime'>imprime</span>
|
1684
|
-
<span class='kw'>end</span></pre>
|
1685
|
-
</td>
|
1686
|
-
</tr>
|
1687
|
-
</table>
|
1688
|
-
</div>
|
1689
|
-
|
1690
|
-
<div class="method_details ">
|
1691
|
-
<h3 class="signature " id="proteinas_to_s-instance_method">
|
1692
|
-
|
1693
|
-
#<strong>proteinas_to_s</strong> ⇒ <tt>String</tt>
|
1694
|
-
|
1695
|
-
|
1696
|
-
|
1697
|
-
|
1698
|
-
|
1699
|
-
</h3><div class="docstring">
|
1700
|
-
<div class="discussion">
|
1701
|
-
|
1702
|
-
<p>Returns objeto convertidos con el formato string proteinas</p>
|
1703
|
-
|
1704
|
-
|
1705
|
-
</div>
|
1706
|
-
</div>
|
1707
|
-
<div class="tags">
|
1708
|
-
|
1709
|
-
<p class="tag_title">Returns:</p>
|
1710
|
-
<ul class="return">
|
1711
|
-
|
1712
|
-
<li>
|
1713
|
-
|
1714
|
-
|
1715
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1716
|
-
|
1717
|
-
|
1718
|
-
|
1719
|
-
—
|
1720
|
-
<div class='inline'>
|
1721
|
-
<p>objeto convertidos con el formato string proteinas</p>
|
1722
|
-
</div>
|
1723
|
-
|
1724
|
-
</li>
|
1725
|
-
|
1726
|
-
</ul>
|
1727
|
-
<p class="tag_title">Since:</p>
|
1728
|
-
<ul class="since">
|
1729
|
-
|
1730
|
-
<li>
|
1731
|
-
|
1732
|
-
|
1733
|
-
|
1734
|
-
|
1735
|
-
|
1736
|
-
<div class='inline'>
|
1737
|
-
<p>0.6.0</p>
|
1738
|
-
</div>
|
1739
|
-
|
1740
|
-
</li>
|
1741
|
-
|
1742
|
-
</ul>
|
1743
|
-
|
1744
|
-
</div><table class="source_code">
|
1745
|
-
<tr>
|
1746
|
-
<td>
|
1747
|
-
<pre class="lines">
|
1748
|
-
|
1749
|
-
|
1750
|
-
67
|
1751
|
-
68
|
1752
|
-
69
|
1753
|
-
70</pre>
|
1754
|
-
</td>
|
1755
|
-
<td>
|
1756
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 67</span>
|
1757
|
-
|
1758
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_proteinas_to_s'>proteinas_to_s</span>
|
1759
|
-
<span class='id identifier rubyid_imprime'>imprime</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@proteinas</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span> <span class='comment'>#número de porciones
|
1760
|
-
</span> <span class='kw'>return</span> <span class='id identifier rubyid_imprime'>imprime</span>
|
1761
|
-
<span class='kw'>end</span></pre>
|
1762
|
-
</td>
|
1763
|
-
</tr>
|
1764
|
-
</table>
|
1765
|
-
</div>
|
1766
|
-
|
1767
|
-
<div class="method_details ">
|
1768
|
-
<h3 class="signature " id="to_s-instance_method">
|
1769
|
-
|
1770
|
-
#<strong>to_s</strong> ⇒ <tt>String</tt>
|
1771
|
-
|
1772
|
-
|
1773
|
-
|
1774
|
-
|
1775
|
-
|
1776
|
-
</h3><div class="docstring">
|
1777
|
-
<div class="discussion">
|
1778
|
-
|
1779
|
-
<p>Returns objeto convertidos con el formato string</p>
|
1780
|
-
|
1781
|
-
|
1782
|
-
</div>
|
1783
|
-
</div>
|
1784
|
-
<div class="tags">
|
1785
|
-
|
1786
|
-
<p class="tag_title">Returns:</p>
|
1787
|
-
<ul class="return">
|
1788
|
-
|
1789
|
-
<li>
|
1790
|
-
|
1791
|
-
|
1792
|
-
<span class='type'>(<tt>String</tt>)</span>
|
1793
|
-
|
1794
|
-
|
1795
|
-
|
1796
|
-
—
|
1797
|
-
<div class='inline'>
|
1798
|
-
<p>objeto convertidos con el formato string</p>
|
1799
|
-
</div>
|
1800
|
-
|
1801
|
-
</li>
|
1802
|
-
|
1803
|
-
</ul>
|
1804
|
-
<p class="tag_title">Since:</p>
|
1805
|
-
<ul class="since">
|
1806
|
-
|
1807
|
-
<li>
|
1808
|
-
|
1809
|
-
|
1810
|
-
|
1811
|
-
|
1812
|
-
|
1813
|
-
<div class='inline'>
|
1814
|
-
<p>0.6.0</p>
|
1815
|
-
</div>
|
1816
|
-
|
1817
|
-
</li>
|
1818
|
-
|
1819
|
-
</ul>
|
1820
|
-
|
1821
|
-
</div><table class="source_code">
|
1822
|
-
<tr>
|
1823
|
-
<td>
|
1824
|
-
<pre class="lines">
|
1825
|
-
|
1826
|
-
|
1827
|
-
85
|
1828
|
-
86
|
1829
|
-
87</pre>
|
1830
|
-
</td>
|
1831
|
-
<td>
|
1832
|
-
<pre class="code"><span class="info file"># File 'lib/Alimento/alimentos.rb', line 85</span>
|
1833
|
-
|
1834
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
1835
|
-
<span class='id identifier rubyid_nombre_ali_to_s'>nombre_ali_to_s</span> <span class='op'>+</span> <span class='id identifier rubyid_proteinas_to_s'>proteinas_to_s</span> <span class='op'>+</span> <span class='id identifier rubyid_glucidos_to_s'>glucidos_to_s</span> <span class='op'>+</span> <span class='id identifier rubyid_lipidos_to_s'>lipidos_to_s</span>
|
1836
|
-
<span class='kw'>end</span></pre>
|
1837
|
-
</td>
|
1838
|
-
</tr>
|
1839
|
-
</table>
|
1840
|
-
</div>
|
1841
|
-
|
1842
|
-
</div>
|
1843
|
-
|
1844
|
-
</div>
|
1845
|
-
|
1846
|
-
<div id="footer">
|
1847
|
-
Generated on Wed Nov 15 11:51:03 2017 by
|
1848
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1849
|
-
0.9.9 (ruby-2.3.3).
|
1850
|
-
</div>
|
1851
|
-
|
1852
|
-
</div>
|
1853
|
-
</body>
|
1854
|
-
</html>
|