practica6 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,290 @@
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: Edad
8
+
9
+ &mdash; 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 = "Edad";
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 (E)</a> &raquo;
40
+
41
+
42
+ <span class="title">Edad</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: Edad
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="Dieta.html" title="Dieta (class)">Dieta</a></span></span>
75
+
76
+ <ul class="fullTree">
77
+ <li>Object</li>
78
+
79
+ <li class="next"><span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></li>
80
+
81
+ <li class="next">Edad</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>dieta.rb</dd>
102
+ </dl>
103
+
104
+ </div>
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <h2>Instance Attribute Summary</h2>
113
+
114
+ <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
115
+ <p class="inherited"><span class='object_link'><a href="Dieta.html#descripcion-instance_method" title="Dieta#descripcion (method)">#descripcion</a></span>, <span class='object_link'><a href="Dieta.html#gramos-instance_method" title="Dieta#gramos (method)">#gramos</a></span>, <span class='object_link'><a href="Dieta.html#p_grasas-instance_method" title="Dieta#p_grasas (method)">#p_grasas</a></span>, <span class='object_link'><a href="Dieta.html#p_hidratos-instance_method" title="Dieta#p_hidratos (method)">#p_hidratos</a></span>, <span class='object_link'><a href="Dieta.html#p_proteina-instance_method" title="Dieta#p_proteina (method)">#p_proteina</a></span>, <span class='object_link'><a href="Dieta.html#porcentaje-instance_method" title="Dieta#porcentaje (method)">#porcentaje</a></span>, <span class='object_link'><a href="Dieta.html#porcion-instance_method" title="Dieta#porcion (method)">#porcion</a></span>, <span class='object_link'><a href="Dieta.html#titulo-instance_method" title="Dieta#titulo (method)">#titulo</a></span>, <span class='object_link'><a href="Dieta.html#vct-instance_method" title="Dieta#vct (method)">#vct</a></span></p>
116
+
117
+
118
+
119
+ <h2>
120
+ Instance Method Summary
121
+ <small><a href="#" class="summary_toggle">collapse</a></small>
122
+ </h2>
123
+
124
+ <ul class="summary">
125
+
126
+ <li class="public ">
127
+ <span class="summary_signature">
128
+
129
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(descripcion, titulo, porcentaje, porcion, gramos, vct, p_proteina, p_grasas, p_hidratos, edad_from, edad_to) &#x21d2; Edad </a>
130
+
131
+
132
+
133
+ </span>
134
+
135
+
136
+ <span class="note title constructor">constructor</span>
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'>
146
+ <p>A new instance of Edad.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#to_s-instance_method" title="#to_s (instance method)">#<strong>to_s</strong> &#x21d2; Object </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'></div></span>
170
+
171
+ </li>
172
+
173
+
174
+ </ul>
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+ <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Dieta.html" title="Dieta (class)">Dieta</a></span></h3>
187
+ <p class="inherited"><span class='object_link'><a href="Dieta.html#%3C%3D%3E-instance_method" title="Dieta#&lt;=&gt; (method)">#<=></a></span>, <span class='object_link'><a href="Dieta.html#%3D%3D-instance_method" title="Dieta#== (method)">#==</a></span>, <span class='object_link'><a href="Dieta.html#get_cjto_platos-instance_method" title="Dieta#get_cjto_platos (method)">#get_cjto_platos</a></span>, <span class='object_link'><a href="Dieta.html#get_descripcion-instance_method" title="Dieta#get_descripcion (method)">#get_descripcion</a></span>, <span class='object_link'><a href="Dieta.html#get_p_grasas-instance_method" title="Dieta#get_p_grasas (method)">#get_p_grasas</a></span>, <span class='object_link'><a href="Dieta.html#get_p_hidratos-instance_method" title="Dieta#get_p_hidratos (method)">#get_p_hidratos</a></span>, <span class='object_link'><a href="Dieta.html#get_p_proteina-instance_method" title="Dieta#get_p_proteina (method)">#get_p_proteina</a></span>, <span class='object_link'><a href="Dieta.html#get_plato-instance_method" title="Dieta#get_plato (method)">#get_plato</a></span>, <span class='object_link'><a href="Dieta.html#get_porcentaje-instance_method" title="Dieta#get_porcentaje (method)">#get_porcentaje</a></span>, <span class='object_link'><a href="Dieta.html#get_titulo-instance_method" title="Dieta#get_titulo (method)">#get_titulo</a></span>, <span class='object_link'><a href="Dieta.html#get_vct-instance_method" title="Dieta#get_vct (method)">#get_vct</a></span></p>
188
+
189
+ <div id="constructor_details" class="method_details_list">
190
+ <h2>Constructor Details</h2>
191
+
192
+ <div class="method_details first">
193
+ <h3 class="signature first" id="initialize-instance_method">
194
+
195
+ #<strong>initialize</strong>(descripcion, titulo, porcentaje, porcion, gramos, vct, p_proteina, p_grasas, p_hidratos, edad_from, edad_to) &#x21d2; <tt><span class='object_link'><a href="" title="Edad (class)">Edad</a></span></tt>
196
+
197
+
198
+
199
+
200
+
201
+ </h3><div class="docstring">
202
+ <div class="discussion">
203
+
204
+ <p>Returns a new instance of Edad</p>
205
+
206
+
207
+ </div>
208
+ </div>
209
+ <div class="tags">
210
+
211
+
212
+ </div><table class="source_code">
213
+ <tr>
214
+ <td>
215
+ <pre class="lines">
216
+
217
+
218
+ 112
219
+ 113
220
+ 114
221
+ 115
222
+ 116</pre>
223
+ </td>
224
+ <td>
225
+ <pre class="code"><span class="info file"># File 'dieta.rb', line 112</span>
226
+
227
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span> <span class='lparen'>(</span><span class='id identifier rubyid_descripcion'>descripcion</span><span class='comma'>,</span> <span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje'>porcentaje</span><span class='comma'>,</span> <span class='id identifier rubyid_porcion'>porcion</span><span class='comma'>,</span> <span class='id identifier rubyid_gramos'>gramos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_p_proteina'>p_proteina</span><span class='comma'>,</span> <span class='id identifier rubyid_p_grasas'>p_grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_p_hidratos'>p_hidratos</span><span class='comma'>,</span> <span class='id identifier rubyid_edad_from'>edad_from</span><span class='comma'>,</span> <span class='id identifier rubyid_edad_to'>edad_to</span><span class='rparen'>)</span>
228
+ <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_descripcion'>descripcion</span><span class='comma'>,</span> <span class='id identifier rubyid_titulo'>titulo</span><span class='comma'>,</span> <span class='id identifier rubyid_porcentaje'>porcentaje</span><span class='comma'>,</span> <span class='id identifier rubyid_porcion'>porcion</span><span class='comma'>,</span> <span class='id identifier rubyid_gramos'>gramos</span><span class='comma'>,</span> <span class='id identifier rubyid_vct'>vct</span><span class='comma'>,</span> <span class='id identifier rubyid_p_proteina'>p_proteina</span><span class='comma'>,</span> <span class='id identifier rubyid_p_grasas'>p_grasas</span><span class='comma'>,</span> <span class='id identifier rubyid_p_hidratos'>p_hidratos</span><span class='rparen'>)</span>
229
+ <span class='ivar'>@edad_from</span> <span class='op'>=</span> <span class='id identifier rubyid_edad_from'>edad_from</span>
230
+ <span class='ivar'>@edad_to</span> <span class='op'>=</span> <span class='id identifier rubyid_edad_to'>edad_to</span>
231
+ <span class='kw'>end</span></pre>
232
+ </td>
233
+ </tr>
234
+ </table>
235
+ </div>
236
+
237
+ </div>
238
+
239
+
240
+ <div id="instance_method_details" class="method_details_list">
241
+ <h2>Instance Method Details</h2>
242
+
243
+
244
+ <div class="method_details first">
245
+ <h3 class="signature first" id="to_s-instance_method">
246
+
247
+ #<strong>to_s</strong> &#x21d2; <tt>Object</tt>
248
+
249
+
250
+
251
+
252
+
253
+ </h3><table class="source_code">
254
+ <tr>
255
+ <td>
256
+ <pre class="lines">
257
+
258
+
259
+ 117
260
+ 118
261
+ 119
262
+ 120
263
+ 121</pre>
264
+ </td>
265
+ <td>
266
+ <pre class="code"><span class="info file"># File 'dieta.rb', line 117</span>
267
+
268
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
269
+ <span class='id identifier rubyid_year'>year</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Dieta -&gt; De </span><span class='embexpr_beg'>#{</span><span class='ivar'>@edad_from</span><span class='embexpr_end'>}</span><span class='tstring_content'>-</span><span class='embexpr_beg'>#{</span><span class='ivar'>@edad_to</span><span class='embexpr_end'>}</span><span class='tstring_content'> años\n</span><span class='tstring_end'>&quot;</span></span>
270
+ <span class='id identifier rubyid_year'>year</span> <span class='op'>+=</span> <span class='kw'>super</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
271
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_year'>year</span><span class='embexpr_end'>}</span><span class='tstring_end'>&quot;</span></span>
272
+ <span class='kw'>end</span></pre>
273
+ </td>
274
+ </tr>
275
+ </table>
276
+ </div>
277
+
278
+ </div>
279
+
280
+ </div>
281
+
282
+ <div id="footer">
283
+ Generated on Tue Nov 22 19:31:08 2016 by
284
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
285
+ 0.9.5 (ruby-2.1.5).
286
+ </div>
287
+
288
+ </div>
289
+ </body>
290
+ </html>