nutrientes_AkaiBF 1.3.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/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +43 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +927 -0
- data/docs/Carbohidratado.html +301 -0
- data/docs/Carnido.html +301 -0
- data/docs/Fruta.html +301 -0
- data/docs/Graso.html +301 -0
- data/docs/List.html +1469 -0
- data/docs/Node.html +410 -0
- data/docs/Nutrientes.html +139 -0
- data/docs/OvoLacteo.html +301 -0
- data/docs/Pescado.html +301 -0
- data/docs/Verdura.html +301 -0
- data/docs/_index.html +224 -0
- data/docs/class_list.html +51 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/style.css +492 -0
- data/docs/file.README.html +135 -0
- data/docs/file_list.html +56 -0
- data/docs/frames.html +17 -0
- data/docs/index.html +135 -0
- data/docs/js/app.js +248 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +267 -0
- data/docs/top-level-namespace.html +112 -0
- data/lib/nutrientes.rb +8 -0
- data/lib/nutrientes/alimento.rb +165 -0
- data/lib/nutrientes/glucosa.rb +40 -0
- data/lib/nutrientes/harvard_dish.rb +94 -0
- data/lib/nutrientes/list.rb +109 -0
- data/lib/nutrientes/version.rb +4 -0
- data/nutrientes.gemspec +39 -0
- metadata +187 -0
data/docs/OvoLacteo.html
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
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: OvoLacteo
|
|
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 = "OvoLacteo";
|
|
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 (O)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">OvoLacteo</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: OvoLacteo
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">OvoLacteo</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/nutrientes/alimento.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Class OvoLacteo Defines an Alimento (or food) derived from milk or eggs</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<h2>Instance Attribute Summary</h2>
|
|
122
|
+
|
|
123
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
124
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#glucids-instance_method" title="Alimento#glucids (method)">#glucids</a></span>, <span class='object_link'><a href="Alimento.html#lipids-instance_method" title="Alimento#lipids (method)">#lipids</a></span>, <span class='object_link'><a href="Alimento.html#name-instance_method" title="Alimento#name (method)">#name</a></span>, <span class='object_link'><a href="Alimento.html#proteins-instance_method" title="Alimento#proteins (method)">#proteins</a></span></p>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<h2>
|
|
129
|
+
Instance Method Summary
|
|
130
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
131
|
+
</h2>
|
|
132
|
+
|
|
133
|
+
<ul class="summary">
|
|
134
|
+
|
|
135
|
+
<li class="public ">
|
|
136
|
+
<span class="summary_signature">
|
|
137
|
+
|
|
138
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, proteins, glucids, lipids) ⇒ OvoLacteo </a>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</span>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<span class="note title constructor">constructor</span>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<span class="summary_desc"><div class='inline'>
|
|
155
|
+
<p>Initialization of the object given its attributes.</p>
|
|
156
|
+
</div></span>
|
|
157
|
+
|
|
158
|
+
</li>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
</ul>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
174
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#<=>-instance_method" title="Alimento#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Alimento.html#caloric_value-instance_method" title="Alimento#caloric_value (method)">#caloric_value</a></span>, <span class='object_link'><a href="Alimento.html#to_s-instance_method" title="Alimento#to_s (method)">#to_s</a></span></p>
|
|
175
|
+
|
|
176
|
+
<div id="constructor_details" class="method_details_list">
|
|
177
|
+
<h2>Constructor Details</h2>
|
|
178
|
+
|
|
179
|
+
<div class="method_details first">
|
|
180
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
181
|
+
|
|
182
|
+
#<strong>initialize</strong>(name, proteins, glucids, lipids) ⇒ <tt><span class='object_link'><a href="" title="OvoLacteo (class)">OvoLacteo</a></span></tt>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
</h3><div class="docstring">
|
|
189
|
+
<div class="discussion">
|
|
190
|
+
|
|
191
|
+
<p>Initialization of the object given its attributes</p>
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="tags">
|
|
197
|
+
<p class="tag_title">Parameters:</p>
|
|
198
|
+
<ul class="param">
|
|
199
|
+
|
|
200
|
+
<li>
|
|
201
|
+
|
|
202
|
+
<span class='name'>name</span>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
—
|
|
210
|
+
<div class='inline'>
|
|
211
|
+
<p>Name of the Alimento</p>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
</li>
|
|
215
|
+
|
|
216
|
+
<li>
|
|
217
|
+
|
|
218
|
+
<span class='name'>proteins</span>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
—
|
|
226
|
+
<div class='inline'>
|
|
227
|
+
<p>Proteins ammount of the Alimento</p>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
</li>
|
|
231
|
+
|
|
232
|
+
<li>
|
|
233
|
+
|
|
234
|
+
<span class='name'>glucids</span>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
—
|
|
242
|
+
<div class='inline'>
|
|
243
|
+
<p>Glucids ammount of the Alimento</p>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
</li>
|
|
247
|
+
|
|
248
|
+
<li>
|
|
249
|
+
|
|
250
|
+
<span class='name'>lipids</span>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
—
|
|
258
|
+
<div class='inline'>
|
|
259
|
+
<p>Lipids ammount of the Alimento</p>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
</li>
|
|
263
|
+
|
|
264
|
+
</ul>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
</div><table class="source_code">
|
|
268
|
+
<tr>
|
|
269
|
+
<td>
|
|
270
|
+
<pre class="lines">
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
84
|
|
274
|
+
85
|
|
275
|
+
86</pre>
|
|
276
|
+
</td>
|
|
277
|
+
<td>
|
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/nutrientes/alimento.rb', line 84</span>
|
|
279
|
+
|
|
280
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_glucids'>glucids</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='rparen'>)</span>
|
|
281
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_glucids'>glucids</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='rparen'>)</span>
|
|
282
|
+
<span class='kw'>end</span></pre>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</table>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<div id="footer">
|
|
294
|
+
Generated on Wed Nov 15 09:37:58 2017 by
|
|
295
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
296
|
+
0.9.9 (ruby-2.3.0).
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
</body>
|
|
301
|
+
</html>
|
data/docs/Pescado.html
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
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: Pescado
|
|
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 = "Pescado";
|
|
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 (P)</a> »
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
<span class="title">Pescado</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: Pescado
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
</h1>
|
|
67
|
+
<div class="box_info">
|
|
68
|
+
|
|
69
|
+
<dl>
|
|
70
|
+
<dt>Inherits:</dt>
|
|
71
|
+
<dd>
|
|
72
|
+
<span class="inheritName"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></span>
|
|
73
|
+
|
|
74
|
+
<ul class="fullTree">
|
|
75
|
+
<li>Object</li>
|
|
76
|
+
|
|
77
|
+
<li class="next"><span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></li>
|
|
78
|
+
|
|
79
|
+
<li class="next">Pescado</li>
|
|
80
|
+
|
|
81
|
+
</ul>
|
|
82
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
83
|
+
|
|
84
|
+
</dd>
|
|
85
|
+
</dl>
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
<dl>
|
|
98
|
+
<dt>Defined in:</dt>
|
|
99
|
+
<dd>lib/nutrientes/alimento.rb</dd>
|
|
100
|
+
</dl>
|
|
101
|
+
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Class Pescado Defines Fish and Shelfish</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
<h2>Instance Attribute Summary</h2>
|
|
122
|
+
|
|
123
|
+
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
124
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#glucids-instance_method" title="Alimento#glucids (method)">#glucids</a></span>, <span class='object_link'><a href="Alimento.html#lipids-instance_method" title="Alimento#lipids (method)">#lipids</a></span>, <span class='object_link'><a href="Alimento.html#name-instance_method" title="Alimento#name (method)">#name</a></span>, <span class='object_link'><a href="Alimento.html#proteins-instance_method" title="Alimento#proteins (method)">#proteins</a></span></p>
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
<h2>
|
|
129
|
+
Instance Method Summary
|
|
130
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
|
131
|
+
</h2>
|
|
132
|
+
|
|
133
|
+
<ul class="summary">
|
|
134
|
+
|
|
135
|
+
<li class="public ">
|
|
136
|
+
<span class="summary_signature">
|
|
137
|
+
|
|
138
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(name, proteins, glucids, lipids) ⇒ Pescado </a>
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
</span>
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
<span class="note title constructor">constructor</span>
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<span class="summary_desc"><div class='inline'>
|
|
155
|
+
<p>Initialization of the object given its attributes.</p>
|
|
156
|
+
</div></span>
|
|
157
|
+
|
|
158
|
+
</li>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
</ul>
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Alimento.html" title="Alimento (class)">Alimento</a></span></h3>
|
|
174
|
+
<p class="inherited"><span class='object_link'><a href="Alimento.html#<=>-instance_method" title="Alimento#<=> (method)">#<=></a></span>, <span class='object_link'><a href="Alimento.html#caloric_value-instance_method" title="Alimento#caloric_value (method)">#caloric_value</a></span>, <span class='object_link'><a href="Alimento.html#to_s-instance_method" title="Alimento#to_s (method)">#to_s</a></span></p>
|
|
175
|
+
|
|
176
|
+
<div id="constructor_details" class="method_details_list">
|
|
177
|
+
<h2>Constructor Details</h2>
|
|
178
|
+
|
|
179
|
+
<div class="method_details first">
|
|
180
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
181
|
+
|
|
182
|
+
#<strong>initialize</strong>(name, proteins, glucids, lipids) ⇒ <tt><span class='object_link'><a href="" title="Pescado (class)">Pescado</a></span></tt>
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
</h3><div class="docstring">
|
|
189
|
+
<div class="discussion">
|
|
190
|
+
|
|
191
|
+
<p>Initialization of the object given its attributes</p>
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
<div class="tags">
|
|
197
|
+
<p class="tag_title">Parameters:</p>
|
|
198
|
+
<ul class="param">
|
|
199
|
+
|
|
200
|
+
<li>
|
|
201
|
+
|
|
202
|
+
<span class='name'>name</span>
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
—
|
|
210
|
+
<div class='inline'>
|
|
211
|
+
<p>Name of the Alimento</p>
|
|
212
|
+
</div>
|
|
213
|
+
|
|
214
|
+
</li>
|
|
215
|
+
|
|
216
|
+
<li>
|
|
217
|
+
|
|
218
|
+
<span class='name'>proteins</span>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
—
|
|
226
|
+
<div class='inline'>
|
|
227
|
+
<p>Proteins ammount of the Alimento</p>
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
</li>
|
|
231
|
+
|
|
232
|
+
<li>
|
|
233
|
+
|
|
234
|
+
<span class='name'>glucids</span>
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
—
|
|
242
|
+
<div class='inline'>
|
|
243
|
+
<p>Glucids ammount of the Alimento</p>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
</li>
|
|
247
|
+
|
|
248
|
+
<li>
|
|
249
|
+
|
|
250
|
+
<span class='name'>lipids</span>
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
<span class='type'>(<tt>Fixnum</tt>)</span>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
—
|
|
258
|
+
<div class='inline'>
|
|
259
|
+
<p>Lipids ammount of the Alimento</p>
|
|
260
|
+
</div>
|
|
261
|
+
|
|
262
|
+
</li>
|
|
263
|
+
|
|
264
|
+
</ul>
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
</div><table class="source_code">
|
|
268
|
+
<tr>
|
|
269
|
+
<td>
|
|
270
|
+
<pre class="lines">
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
110
|
|
274
|
+
111
|
|
275
|
+
112</pre>
|
|
276
|
+
</td>
|
|
277
|
+
<td>
|
|
278
|
+
<pre class="code"><span class="info file"># File 'lib/nutrientes/alimento.rb', line 110</span>
|
|
279
|
+
|
|
280
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_glucids'>glucids</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='rparen'>)</span>
|
|
281
|
+
<span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_name'>name</span><span class='comma'>,</span> <span class='id identifier rubyid_proteins'>proteins</span><span class='comma'>,</span> <span class='id identifier rubyid_glucids'>glucids</span><span class='comma'>,</span> <span class='id identifier rubyid_lipids'>lipids</span><span class='rparen'>)</span>
|
|
282
|
+
<span class='kw'>end</span></pre>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
</table>
|
|
286
|
+
</div>
|
|
287
|
+
|
|
288
|
+
</div>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
<div id="footer">
|
|
294
|
+
Generated on Wed Nov 15 09:37:58 2017 by
|
|
295
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
296
|
+
0.9.9 (ruby-2.3.0).
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
</div>
|
|
300
|
+
</body>
|
|
301
|
+
</html>
|