nutricion 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.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +12 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/Individuo.html +604 -0
- data/doc/Lista.html +852 -0
- data/doc/Node.html +409 -0
- data/doc/Nutricion.html +145 -0
- data/doc/Nutricional.html +1999 -0
- data/doc/Paciente.html +3151 -0
- data/doc/_index.html +156 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +496 -0
- data/doc/file.README.html +119 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +17 -0
- data/doc/index.html +119 -0
- data/doc/js/app.js +292 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +675 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/nutricion/array.rb +48 -0
- data/lib/nutricion/dsl.rb +133 -0
- data/lib/nutricion/icc.rb +354 -0
- data/lib/nutricion/lista_code.rb +175 -0
- data/lib/nutricion/nutricion_code.rb +157 -0
- data/lib/nutricion/version.rb +4 -0
- data/lib/nutricion.rb +11 -0
- data/nutricion.gemspec +40 -0
- metadata +179 -0
data/doc/Individuo.html
ADDED
|
@@ -0,0 +1,604 @@
|
|
|
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: Individuo
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.9.16
|
|
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 = "Individuo";
|
|
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 (I)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">Individuo</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: Individuo
|
|
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">Individuo</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/nutricion/icc.rb</dd>
|
|
103
|
+
</dl>
|
|
104
|
+
|
|
105
|
+
</div>
|
|
106
|
+
|
|
107
|
+
<h2>Overview</h2><div class="docstring">
|
|
108
|
+
<div class="discussion">
|
|
109
|
+
|
|
110
|
+
<p>Clase Individuo (Individuo que tiene un nombre, edad y sexo)</p>
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="tags">
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
</div><div id="subclasses">
|
|
119
|
+
<h2>Direct Known Subclasses</h2>
|
|
120
|
+
<p class="children"><span class='object_link'><a href="Paciente.html" title="Paciente (class)">Paciente</a></span></p>
|
|
121
|
+
</div>
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
|
127
|
+
<ul class="summary">
|
|
128
|
+
|
|
129
|
+
<li class="public ">
|
|
130
|
+
<span class="summary_signature">
|
|
131
|
+
|
|
132
|
+
<a href="#edad-instance_method" title="#edad (instance method)">#<strong>edad</strong> ⇒ Object </a>
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
</span>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<span class="note title readonly">readonly</span>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
<span class="summary_desc"><div class='inline'>
|
|
152
|
+
<p>Getters.</p>
|
|
153
|
+
</div></span>
|
|
154
|
+
|
|
155
|
+
</li>
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
<li class="public ">
|
|
159
|
+
<span class="summary_signature">
|
|
160
|
+
|
|
161
|
+
<a href="#nombre-instance_method" title="#nombre (instance method)">#<strong>nombre</strong> ⇒ Object </a>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
</span>
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
<span class="note title readonly">readonly</span>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
|
181
|
+
<p>Getters.</p>
|
|
182
|
+
</div></span>
|
|
183
|
+
|
|
184
|
+
</li>
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
<li class="public ">
|
|
188
|
+
<span class="summary_signature">
|
|
189
|
+
|
|
190
|
+
<a href="#sexo-instance_method" title="#sexo (instance method)">#<strong>sexo</strong> ⇒ Object </a>
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</span>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<span class="note title readonly">readonly</span>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<span class="summary_desc"><div class='inline'>
|
|
210
|
+
<p>Getters.</p>
|
|
211
|
+
</div></span>
|
|
212
|
+
|
|
213
|
+
</li>
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
</ul>
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<h2>
|
|
223
|
+
Instance Method Summary
|
|
224
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
225
|
+
</h2>
|
|
226
|
+
|
|
227
|
+
<ul class="summary">
|
|
228
|
+
|
|
229
|
+
<li class="public ">
|
|
230
|
+
<span class="summary_signature">
|
|
231
|
+
|
|
232
|
+
<a href="#<=>-instance_method" title="#<=> (instance method)">#<strong><=></strong>(other) ⇒ Object </a>
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
</span>
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
<span class="summary_desc"><div class='inline'>
|
|
247
|
+
<p>Metodo para que la clase sea Comparable.</p>
|
|
248
|
+
</div></span>
|
|
249
|
+
|
|
250
|
+
</li>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<li class="public ">
|
|
254
|
+
<span class="summary_signature">
|
|
255
|
+
|
|
256
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(nombre, edad, sexo) ⇒ Individuo </a>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
</span>
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<span class="note title constructor">constructor</span>
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
<span class="summary_desc"><div class='inline'>
|
|
273
|
+
<p>Inicializar los valores.</p>
|
|
274
|
+
</div></span>
|
|
275
|
+
|
|
276
|
+
</li>
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
<li class="public ">
|
|
280
|
+
<span class="summary_signature">
|
|
281
|
+
|
|
282
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
</span>
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
<span class="summary_desc"><div class='inline'>
|
|
297
|
+
<p>Mostrar los resultados.</p>
|
|
298
|
+
</div></span>
|
|
299
|
+
|
|
300
|
+
</li>
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
</ul>
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
<div id="constructor_details" class="method_details_list">
|
|
308
|
+
<h2>Constructor Details</h2>
|
|
309
|
+
|
|
310
|
+
<div class="method_details first">
|
|
311
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
312
|
+
|
|
313
|
+
#<strong>initialize</strong>(nombre, edad, sexo) ⇒ <tt><span class='object_link'><a href="" title="Individuo (class)">Individuo</a></span></tt>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
</h3><div class="docstring">
|
|
320
|
+
<div class="discussion">
|
|
321
|
+
|
|
322
|
+
<p>Inicializar los valores</p>
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
</div>
|
|
326
|
+
</div>
|
|
327
|
+
<div class="tags">
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
</div><table class="source_code">
|
|
331
|
+
<tr>
|
|
332
|
+
<td>
|
|
333
|
+
<pre class="lines">
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
11
|
|
337
|
+
12
|
|
338
|
+
13
|
|
339
|
+
14
|
|
340
|
+
15
|
|
341
|
+
16
|
|
342
|
+
17</pre>
|
|
343
|
+
</td>
|
|
344
|
+
<td>
|
|
345
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 11</span>
|
|
346
|
+
|
|
347
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_nombre'>nombre</span><span class='comma'>,</span> <span class='id identifier rubyid_edad'>edad</span><span class='comma'>,</span> <span class='id identifier rubyid_sexo'>sexo</span><span class='rparen'>)</span>
|
|
348
|
+
|
|
349
|
+
<span class='ivar'>@nombre</span> <span class='op'>=</span> <span class='id identifier rubyid_nombre'>nombre</span>
|
|
350
|
+
<span class='ivar'>@edad</span> <span class='op'>=</span> <span class='id identifier rubyid_edad'>edad</span>
|
|
351
|
+
<span class='ivar'>@sexo</span> <span class='op'>=</span> <span class='id identifier rubyid_sexo'>sexo</span>
|
|
352
|
+
|
|
353
|
+
<span class='kw'>end</span></pre>
|
|
354
|
+
</td>
|
|
355
|
+
</tr>
|
|
356
|
+
</table>
|
|
357
|
+
</div>
|
|
358
|
+
|
|
359
|
+
</div>
|
|
360
|
+
|
|
361
|
+
<div id="instance_attr_details" class="attr_details">
|
|
362
|
+
<h2>Instance Attribute Details</h2>
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
<span id=""></span>
|
|
366
|
+
<div class="method_details first">
|
|
367
|
+
<h3 class="signature first" id="edad-instance_method">
|
|
368
|
+
|
|
369
|
+
#<strong>edad</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
</h3><div class="docstring">
|
|
376
|
+
<div class="discussion">
|
|
377
|
+
|
|
378
|
+
<p>Getters</p>
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
<div class="tags">
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
</div><table class="source_code">
|
|
387
|
+
<tr>
|
|
388
|
+
<td>
|
|
389
|
+
<pre class="lines">
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
8
|
|
393
|
+
9
|
|
394
|
+
10</pre>
|
|
395
|
+
</td>
|
|
396
|
+
<td>
|
|
397
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 8</span>
|
|
398
|
+
|
|
399
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_edad'>edad</span>
|
|
400
|
+
<span class='ivar'>@edad</span>
|
|
401
|
+
<span class='kw'>end</span></pre>
|
|
402
|
+
</td>
|
|
403
|
+
</tr>
|
|
404
|
+
</table>
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
<span id=""></span>
|
|
409
|
+
<div class="method_details ">
|
|
410
|
+
<h3 class="signature " id="nombre-instance_method">
|
|
411
|
+
|
|
412
|
+
#<strong>nombre</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
</h3><div class="docstring">
|
|
419
|
+
<div class="discussion">
|
|
420
|
+
|
|
421
|
+
<p>Getters</p>
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
</div>
|
|
425
|
+
</div>
|
|
426
|
+
<div class="tags">
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
</div><table class="source_code">
|
|
430
|
+
<tr>
|
|
431
|
+
<td>
|
|
432
|
+
<pre class="lines">
|
|
433
|
+
|
|
434
|
+
|
|
435
|
+
8
|
|
436
|
+
9
|
|
437
|
+
10</pre>
|
|
438
|
+
</td>
|
|
439
|
+
<td>
|
|
440
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 8</span>
|
|
441
|
+
|
|
442
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_nombre'>nombre</span>
|
|
443
|
+
<span class='ivar'>@nombre</span>
|
|
444
|
+
<span class='kw'>end</span></pre>
|
|
445
|
+
</td>
|
|
446
|
+
</tr>
|
|
447
|
+
</table>
|
|
448
|
+
</div>
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
<span id=""></span>
|
|
452
|
+
<div class="method_details ">
|
|
453
|
+
<h3 class="signature " id="sexo-instance_method">
|
|
454
|
+
|
|
455
|
+
#<strong>sexo</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
</h3><div class="docstring">
|
|
462
|
+
<div class="discussion">
|
|
463
|
+
|
|
464
|
+
<p>Getters</p>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</div>
|
|
468
|
+
</div>
|
|
469
|
+
<div class="tags">
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
</div><table class="source_code">
|
|
473
|
+
<tr>
|
|
474
|
+
<td>
|
|
475
|
+
<pre class="lines">
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
8
|
|
479
|
+
9
|
|
480
|
+
10</pre>
|
|
481
|
+
</td>
|
|
482
|
+
<td>
|
|
483
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 8</span>
|
|
484
|
+
|
|
485
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sexo'>sexo</span>
|
|
486
|
+
<span class='ivar'>@sexo</span>
|
|
487
|
+
<span class='kw'>end</span></pre>
|
|
488
|
+
</td>
|
|
489
|
+
</tr>
|
|
490
|
+
</table>
|
|
491
|
+
</div>
|
|
492
|
+
|
|
493
|
+
</div>
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
<div id="instance_method_details" class="method_details_list">
|
|
497
|
+
<h2>Instance Method Details</h2>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<div class="method_details first">
|
|
501
|
+
<h3 class="signature first" id="<=>-instance_method">
|
|
502
|
+
|
|
503
|
+
#<strong><=></strong>(other) ⇒ <tt>Object</tt>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
</h3><div class="docstring">
|
|
510
|
+
<div class="discussion">
|
|
511
|
+
|
|
512
|
+
<p>Metodo para que la clase sea Comparable</p>
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
</div>
|
|
516
|
+
</div>
|
|
517
|
+
<div class="tags">
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
</div><table class="source_code">
|
|
521
|
+
<tr>
|
|
522
|
+
<td>
|
|
523
|
+
<pre class="lines">
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
20
|
|
527
|
+
21
|
|
528
|
+
22
|
|
529
|
+
23
|
|
530
|
+
24
|
|
531
|
+
25
|
|
532
|
+
26
|
|
533
|
+
27</pre>
|
|
534
|
+
</td>
|
|
535
|
+
<td>
|
|
536
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 20</span>
|
|
537
|
+
|
|
538
|
+
<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>
|
|
539
|
+
|
|
540
|
+
<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'>Individuo</span>
|
|
541
|
+
<span class='ivar'>@nombre</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_nombre'>nombre</span>
|
|
542
|
+
<span class='ivar'>@edad</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_edad'>edad</span>
|
|
543
|
+
<span class='ivar'>@sexo</span> <span class='op'><=></span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_sexo'>sexo</span>
|
|
544
|
+
|
|
545
|
+
<span class='kw'>end</span></pre>
|
|
546
|
+
</td>
|
|
547
|
+
</tr>
|
|
548
|
+
</table>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<div class="method_details ">
|
|
552
|
+
<h3 class="signature " id="to_s-instance_method">
|
|
553
|
+
|
|
554
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
</h3><div class="docstring">
|
|
561
|
+
<div class="discussion">
|
|
562
|
+
|
|
563
|
+
<p>Mostrar los resultados</p>
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
</div>
|
|
567
|
+
</div>
|
|
568
|
+
<div class="tags">
|
|
569
|
+
|
|
570
|
+
|
|
571
|
+
</div><table class="source_code">
|
|
572
|
+
<tr>
|
|
573
|
+
<td>
|
|
574
|
+
<pre class="lines">
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
30
|
|
578
|
+
31
|
|
579
|
+
32</pre>
|
|
580
|
+
</td>
|
|
581
|
+
<td>
|
|
582
|
+
<pre class="code"><span class="info file"># File 'lib/nutricion/icc.rb', line 30</span>
|
|
583
|
+
|
|
584
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
585
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Sujeto: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@nombre</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Edad: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@edad</span><span class='embexpr_end'>}</span><span class='tstring_content'>. Sexo: </span><span class='embexpr_beg'>#{</span><span class='ivar'>@sexo</span><span class='embexpr_end'>}</span><span class='tstring_content'>. </span><span class='tstring_end'>"</span></span>
|
|
586
|
+
<span class='kw'>end</span></pre>
|
|
587
|
+
</td>
|
|
588
|
+
</tr>
|
|
589
|
+
</table>
|
|
590
|
+
</div>
|
|
591
|
+
|
|
592
|
+
</div>
|
|
593
|
+
|
|
594
|
+
</div>
|
|
595
|
+
|
|
596
|
+
<div id="footer">
|
|
597
|
+
Generated on Wed Dec 12 18:55:16 2018 by
|
|
598
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
599
|
+
0.9.16 (ruby-2.3.4).
|
|
600
|
+
</div>
|
|
601
|
+
|
|
602
|
+
</div>
|
|
603
|
+
</body>
|
|
604
|
+
</html>
|