practica7 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.DS_Store +0 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/documentation/Diet.html +1170 -0
- data/documentation/Dietedad.html +310 -0
- data/documentation/Diettipo.html +310 -0
- data/documentation/LinkedList.html +676 -0
- data/documentation/Node.html +411 -0
- data/documentation/Practica7.html +117 -0
- data/documentation/_index.html +158 -0
- data/documentation/class_list.html +51 -0
- data/documentation/css/common.css +1 -0
- data/documentation/css/full_list.css +58 -0
- data/documentation/css/style.css +481 -0
- data/documentation/file.README.html +128 -0
- data/documentation/file_list.html +56 -0
- data/documentation/frames.html +17 -0
- data/documentation/index.html +128 -0
- data/documentation/js/app.js +243 -0
- data/documentation/js/full_list.js +216 -0
- data/documentation/js/jquery.js +4 -0
- data/documentation/method_list.html +275 -0
- data/documentation/top-level-namespace.html +114 -0
- data/lib/.DS_Store +0 -0
- data/lib/practica7/.DS_Store +0 -0
- data/lib/practica7/diet.rb +80 -0
- data/lib/practica7/practica7.rb +38 -0
- data/lib/practica7/version.rb +3 -0
- data/practica7.gemspec +39 -0
- metadata +166 -0
@@ -0,0 +1,310 @@
|
|
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: Dietedad
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.5
|
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 = "Dietedad";
|
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"></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 (D)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Dietedad</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
|
+
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><h1>Class: Dietedad
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
</h1>
|
69
|
+
<div class="box_info">
|
70
|
+
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
74
|
+
<span class="inheritName"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></span>
|
75
|
+
|
76
|
+
<ul class="fullTree">
|
77
|
+
<li>Object</li>
|
78
|
+
|
79
|
+
<li class="next"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></li>
|
80
|
+
|
81
|
+
<li class="next">Dietedad</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/practica7/diet.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>esta clase es hija de dieta</p>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<div class="tags">
|
115
|
+
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>Instance Attribute Summary</h2>
|
124
|
+
|
125
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
|
126
|
+
<p class="inherited"><span class='object_link'><a href="Diet.html#con_plato-instance_method" title="Diet#con_plato (method)">#con_plato</a></span>, <span class='object_link'><a href="Diet.html#data-instance_method" title="Diet#data (method)">#data</a></span>, <span class='object_link'><a href="Diet.html#des_plato-instance_method" title="Diet#des_plato (method)">#des_plato</a></span>, <span class='object_link'><a href="Diet.html#percentage-instance_method" title="Diet#percentage (method)">#percentage</a></span>, <span class='object_link'><a href="Diet.html#title-instance_method" title="Diet#title (method)">#title</a></span>, <span class='object_link'><a href="Diet.html#vct-instance_method" title="Diet#vct (method)">#vct</a></span></p>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<h2>
|
131
|
+
Instance Method Summary
|
132
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
133
|
+
</h2>
|
134
|
+
|
135
|
+
<ul class="summary">
|
136
|
+
|
137
|
+
<li class="public ">
|
138
|
+
<span class="summary_signature">
|
139
|
+
|
140
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(title, percentage, con_plato, vct, data, age) ⇒ Dietedad </a>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
</span>
|
145
|
+
|
146
|
+
|
147
|
+
<span class="note title constructor">constructor</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>asignamos los valores de la dieta.</p>
|
158
|
+
</div></span>
|
159
|
+
|
160
|
+
</li>
|
161
|
+
|
162
|
+
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
181
|
+
<p>formateamos la salida por pantalla de una de estas dietas.</p>
|
182
|
+
</div></span>
|
183
|
+
|
184
|
+
</li>
|
185
|
+
|
186
|
+
|
187
|
+
</ul>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
|
200
|
+
<p class="inherited"><span class='object_link'><a href="Diet.html#%3C%3D%3E-instance_method" title="Diet#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Diet.html#gras-instance_method" title="Diet#gras (method)">#gras</a></span>, <span class='object_link'><a href="Diet.html#group_plates-instance_method" title="Diet#group_plates (method)">#group_plates</a></span>, <span class='object_link'><a href="Diet.html#hid_car-instance_method" title="Diet#hid_car (method)">#hid_car</a></span>, <span class='object_link'><a href="Diet.html#obtain_plate-instance_method" title="Diet#obtain_plate (method)">#obtain_plate</a></span>, <span class='object_link'><a href="Diet.html#prot-instance_method" title="Diet#prot (method)">#prot</a></span></p>
|
201
|
+
|
202
|
+
<div id="constructor_details" class="method_details_list">
|
203
|
+
<h2>Constructor Details</h2>
|
204
|
+
|
205
|
+
<div class="method_details first">
|
206
|
+
<h3 class="signature first" id="initialize-instance_method">
|
207
|
+
|
208
|
+
#<strong>initialize</strong>(title, percentage, con_plato, vct, data, age) ⇒ <tt><span class='object_link'><a href="" title="Dietedad (class)">Dietedad</a></span></tt>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</h3><div class="docstring">
|
215
|
+
<div class="discussion">
|
216
|
+
|
217
|
+
<p>asignamos los valores de la dieta</p>
|
218
|
+
|
219
|
+
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
<div class="tags">
|
223
|
+
|
224
|
+
|
225
|
+
</div><table class="source_code">
|
226
|
+
<tr>
|
227
|
+
<td>
|
228
|
+
<pre class="lines">
|
229
|
+
|
230
|
+
|
231
|
+
78
|
232
|
+
79
|
233
|
+
80
|
234
|
+
81</pre>
|
235
|
+
</td>
|
236
|
+
<td>
|
237
|
+
<pre class="code"><span class="info file"># File 'lib/practica7/diet.rb', line 78</span>
|
238
|
+
|
239
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span><span class='id identifier rubyid_age'>age</span><span class='rparen'>)</span>
|
240
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
241
|
+
<span class='ivar'>@age</span><span class='op'>=</span><span class='id identifier rubyid_age'>age</span>
|
242
|
+
<span class='kw'>end</span></pre>
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
</table>
|
246
|
+
</div>
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
|
251
|
+
<div id="instance_method_details" class="method_details_list">
|
252
|
+
<h2>Instance Method Details</h2>
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method_details first">
|
256
|
+
<h3 class="signature first" id="to_s-instance_method">
|
257
|
+
|
258
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</h3><div class="docstring">
|
265
|
+
<div class="discussion">
|
266
|
+
|
267
|
+
<p>formateamos la salida por pantalla de una de estas dietas</p>
|
268
|
+
|
269
|
+
|
270
|
+
</div>
|
271
|
+
</div>
|
272
|
+
<div class="tags">
|
273
|
+
|
274
|
+
|
275
|
+
</div><table class="source_code">
|
276
|
+
<tr>
|
277
|
+
<td>
|
278
|
+
<pre class="lines">
|
279
|
+
|
280
|
+
|
281
|
+
83
|
282
|
+
84
|
283
|
+
85
|
284
|
+
86</pre>
|
285
|
+
</td>
|
286
|
+
<td>
|
287
|
+
<pre class="code"><span class="info file"># File 'lib/practica7/diet.rb', line 83</span>
|
288
|
+
|
289
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
290
|
+
<span class='id identifier rubyid_print'>print</span><span class='op'><<</span><span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
291
|
+
<span class='id identifier rubyid_print'>print</span><span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> Age--> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@age</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
292
|
+
<span class='kw'>end</span></pre>
|
293
|
+
</td>
|
294
|
+
</tr>
|
295
|
+
</table>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</div>
|
299
|
+
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div id="footer">
|
303
|
+
Generated on Tue Nov 22 23:11:07 2016 by
|
304
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
305
|
+
0.9.5 (ruby-2.3.0).
|
306
|
+
</div>
|
307
|
+
|
308
|
+
</div>
|
309
|
+
</body>
|
310
|
+
</html>
|
@@ -0,0 +1,310 @@
|
|
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: Diettipo
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.5
|
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 = "Diettipo";
|
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"></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 (D)</a> »
|
40
|
+
|
41
|
+
|
42
|
+
<span class="title">Diettipo</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
|
+
<iframe id="search_frame" src="class_list.html"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><h1>Class: Diettipo
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
</h1>
|
69
|
+
<div class="box_info">
|
70
|
+
|
71
|
+
<dl>
|
72
|
+
<dt>Inherits:</dt>
|
73
|
+
<dd>
|
74
|
+
<span class="inheritName"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></span>
|
75
|
+
|
76
|
+
<ul class="fullTree">
|
77
|
+
<li>Object</li>
|
78
|
+
|
79
|
+
<li class="next"><span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></li>
|
80
|
+
|
81
|
+
<li class="next">Diettipo</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
</dl>
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<dl>
|
100
|
+
<dt>Defined in:</dt>
|
101
|
+
<dd>lib/practica7/diet.rb</dd>
|
102
|
+
</dl>
|
103
|
+
|
104
|
+
</div>
|
105
|
+
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
107
|
+
<div class="discussion">
|
108
|
+
|
109
|
+
<p>esta clase es hija de dieta</p>
|
110
|
+
|
111
|
+
|
112
|
+
</div>
|
113
|
+
</div>
|
114
|
+
<div class="tags">
|
115
|
+
|
116
|
+
|
117
|
+
</div>
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
<h2>Instance Attribute Summary</h2>
|
124
|
+
|
125
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
|
126
|
+
<p class="inherited"><span class='object_link'><a href="Diet.html#con_plato-instance_method" title="Diet#con_plato (method)">#con_plato</a></span>, <span class='object_link'><a href="Diet.html#data-instance_method" title="Diet#data (method)">#data</a></span>, <span class='object_link'><a href="Diet.html#des_plato-instance_method" title="Diet#des_plato (method)">#des_plato</a></span>, <span class='object_link'><a href="Diet.html#percentage-instance_method" title="Diet#percentage (method)">#percentage</a></span>, <span class='object_link'><a href="Diet.html#title-instance_method" title="Diet#title (method)">#title</a></span>, <span class='object_link'><a href="Diet.html#vct-instance_method" title="Diet#vct (method)">#vct</a></span></p>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<h2>
|
131
|
+
Instance Method Summary
|
132
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
133
|
+
</h2>
|
134
|
+
|
135
|
+
<ul class="summary">
|
136
|
+
|
137
|
+
<li class="public ">
|
138
|
+
<span class="summary_signature">
|
139
|
+
|
140
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(title, percentage, con_plato, vct, data, tipo) ⇒ Diettipo </a>
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
</span>
|
145
|
+
|
146
|
+
|
147
|
+
<span class="note title constructor">constructor</span>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
<span class="summary_desc"><div class='inline'>
|
157
|
+
<p>inicializamos la dieta con los valores determiandos.</p>
|
158
|
+
</div></span>
|
159
|
+
|
160
|
+
</li>
|
161
|
+
|
162
|
+
|
163
|
+
<li class="public ">
|
164
|
+
<span class="summary_signature">
|
165
|
+
|
166
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> ⇒ Object </a>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
</span>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<span class="summary_desc"><div class='inline'>
|
181
|
+
<p>formateamos la salida por pantalla de una de estas dietas.</p>
|
182
|
+
</div></span>
|
183
|
+
|
184
|
+
</li>
|
185
|
+
|
186
|
+
|
187
|
+
</ul>
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Diet.html" title="Diet (class)">Diet</a></span></h3>
|
200
|
+
<p class="inherited"><span class='object_link'><a href="Diet.html#%3C%3D%3E-instance_method" title="Diet#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Diet.html#gras-instance_method" title="Diet#gras (method)">#gras</a></span>, <span class='object_link'><a href="Diet.html#group_plates-instance_method" title="Diet#group_plates (method)">#group_plates</a></span>, <span class='object_link'><a href="Diet.html#hid_car-instance_method" title="Diet#hid_car (method)">#hid_car</a></span>, <span class='object_link'><a href="Diet.html#obtain_plate-instance_method" title="Diet#obtain_plate (method)">#obtain_plate</a></span>, <span class='object_link'><a href="Diet.html#prot-instance_method" title="Diet#prot (method)">#prot</a></span></p>
|
201
|
+
|
202
|
+
<div id="constructor_details" class="method_details_list">
|
203
|
+
<h2>Constructor Details</h2>
|
204
|
+
|
205
|
+
<div class="method_details first">
|
206
|
+
<h3 class="signature first" id="initialize-instance_method">
|
207
|
+
|
208
|
+
#<strong>initialize</strong>(title, percentage, con_plato, vct, data, tipo) ⇒ <tt><span class='object_link'><a href="" title="Diettipo (class)">Diettipo</a></span></tt>
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</h3><div class="docstring">
|
215
|
+
<div class="discussion">
|
216
|
+
|
217
|
+
<p>inicializamos la dieta con los valores determiandos</p>
|
218
|
+
|
219
|
+
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
<div class="tags">
|
223
|
+
|
224
|
+
|
225
|
+
</div><table class="source_code">
|
226
|
+
<tr>
|
227
|
+
<td>
|
228
|
+
<pre class="lines">
|
229
|
+
|
230
|
+
|
231
|
+
91
|
232
|
+
92
|
233
|
+
93
|
234
|
+
94</pre>
|
235
|
+
</td>
|
236
|
+
<td>
|
237
|
+
<pre class="code"><span class="info file"># File 'lib/practica7/diet.rb', line 91</span>
|
238
|
+
|
239
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='comma'>,</span><span class='id identifier rubyid_tipo'>tipo</span><span class='rparen'>)</span>
|
240
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span><span class='id identifier rubyid_percentage'>percentage</span><span class='comma'>,</span><span class='id identifier rubyid_con_plato'>con_plato</span><span class='comma'>,</span><span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span><span class='id identifier rubyid_data'>data</span><span class='rparen'>)</span>
|
241
|
+
<span class='ivar'>@type</span><span class='op'>=</span><span class='id identifier rubyid_tipo'>tipo</span>
|
242
|
+
<span class='kw'>end</span></pre>
|
243
|
+
</td>
|
244
|
+
</tr>
|
245
|
+
</table>
|
246
|
+
</div>
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
|
251
|
+
<div id="instance_method_details" class="method_details_list">
|
252
|
+
<h2>Instance Method Details</h2>
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method_details first">
|
256
|
+
<h3 class="signature first" id="to_s-instance_method">
|
257
|
+
|
258
|
+
#<strong>to_s</strong> ⇒ <tt>Object</tt>
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</h3><div class="docstring">
|
265
|
+
<div class="discussion">
|
266
|
+
|
267
|
+
<p>formateamos la salida por pantalla de una de estas dietas</p>
|
268
|
+
|
269
|
+
|
270
|
+
</div>
|
271
|
+
</div>
|
272
|
+
<div class="tags">
|
273
|
+
|
274
|
+
|
275
|
+
</div><table class="source_code">
|
276
|
+
<tr>
|
277
|
+
<td>
|
278
|
+
<pre class="lines">
|
279
|
+
|
280
|
+
|
281
|
+
96
|
282
|
+
97
|
283
|
+
98
|
284
|
+
99</pre>
|
285
|
+
</td>
|
286
|
+
<td>
|
287
|
+
<pre class="code"><span class="info file"># File 'lib/practica7/diet.rb', line 96</span>
|
288
|
+
|
289
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
290
|
+
<span class='id identifier rubyid_print'>print</span><span class='op'><<</span><span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
|
291
|
+
<span class='id identifier rubyid_print'>print</span><span class='op'><<</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> Age--> </span><span class='embexpr_beg'>#{</span><span class='ivar'>@age</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span>
|
292
|
+
<span class='kw'>end</span></pre>
|
293
|
+
</td>
|
294
|
+
</tr>
|
295
|
+
</table>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
</div>
|
299
|
+
|
300
|
+
</div>
|
301
|
+
|
302
|
+
<div id="footer">
|
303
|
+
Generated on Tue Nov 22 23:11:07 2016 by
|
304
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
305
|
+
0.9.5 (ruby-2.3.0).
|
306
|
+
</div>
|
307
|
+
|
308
|
+
</div>
|
309
|
+
</body>
|
310
|
+
</html>
|