alimento-0100895001 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +50 -0
- data/Rakefile +6 -0
- data/alimento.gemspec +40 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +110 -0
- data/docs/Alimento_.html +406 -0
- data/docs/Gemfile.html +100 -0
- data/docs/Gemfile_lock.html +213 -0
- data/docs/Grupo_alimento.html +232 -0
- data/docs/Guardfile.html +177 -0
- data/docs/List.html +511 -0
- data/docs/Object.html +129 -0
- data/docs/README_md.html +169 -0
- data/docs/Rakefile.html +98 -0
- data/docs/alimento_gemspec.html +133 -0
- data/docs/bin/setup.html +98 -0
- data/docs/created.rid +17 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +590 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +110 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +142 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +109 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +165 -0
- data/lib/alimento.rb +8 -0
- data/lib/alimento/alimento_.rb +73 -0
- data/lib/alimento/list.rb +108 -0
- data/lib/alimento/plato.rb +169 -0
- data/lib/alimento/version.rb +3 -0
- metadata +227 -0
data/docs/Gemfile.html
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="project-metadata">
|
57
|
+
<div id="fileindex-section" class="nav-section">
|
58
|
+
<h3>Pages</h3>
|
59
|
+
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
63
|
+
|
64
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
65
|
+
|
66
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
67
|
+
|
68
|
+
<li><a href="./README_md.html">README</a>
|
69
|
+
|
70
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
71
|
+
|
72
|
+
<li><a href="./alimento_gemspec.html">alimento.gemspec</a>
|
73
|
+
|
74
|
+
<li><a href="./bin/setup.html">setup</a>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
<main role="main" aria-label="Page Gemfile">
|
83
|
+
|
84
|
+
<p>source “<a href="https://rubygems.org">rubygems.org</a>”</p>
|
85
|
+
|
86
|
+
<p>git_source(:github) {|repo_name| “<a
|
87
|
+
href="https://github.com/#{repo_name">github.com/#{repo_name</a>}” }</p>
|
88
|
+
|
89
|
+
<p># Specify your gem's dependencies in <a
|
90
|
+
href="alimento_gemspec.html">alimento.gemspec</a> gemspec</p>
|
91
|
+
</main>
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<footer id="validator-badges" role="contentinfo">
|
96
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
97
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
98
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
99
|
+
</footer>
|
100
|
+
|
@@ -0,0 +1,213 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Gemfile.lock - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="file">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="project-metadata">
|
57
|
+
<div id="fileindex-section" class="nav-section">
|
58
|
+
<h3>Pages</h3>
|
59
|
+
|
60
|
+
<ul class="link-list">
|
61
|
+
|
62
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
63
|
+
|
64
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
65
|
+
|
66
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
67
|
+
|
68
|
+
<li><a href="./README_md.html">README</a>
|
69
|
+
|
70
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
71
|
+
|
72
|
+
<li><a href="./alimento_gemspec.html">alimento.gemspec</a>
|
73
|
+
|
74
|
+
<li><a href="./bin/setup.html">setup</a>
|
75
|
+
|
76
|
+
</ul>
|
77
|
+
</div>
|
78
|
+
|
79
|
+
</div>
|
80
|
+
</nav>
|
81
|
+
|
82
|
+
<main role="main" aria-label="Page Gemfile.lock">
|
83
|
+
|
84
|
+
<p>PATH</p>
|
85
|
+
|
86
|
+
<pre>remote: .
|
87
|
+
specs:
|
88
|
+
alimento (0.1.0)</pre>
|
89
|
+
|
90
|
+
<p>GEM</p>
|
91
|
+
|
92
|
+
<pre>remote: https://rubygems.org/
|
93
|
+
specs:
|
94
|
+
coderay (1.1.2)
|
95
|
+
coveralls (0.7.1)
|
96
|
+
multi_json (~> 1.3)
|
97
|
+
rest-client
|
98
|
+
simplecov (>= 0.7)
|
99
|
+
term-ansicolor
|
100
|
+
thor
|
101
|
+
diff-lcs (1.3)
|
102
|
+
docile (1.1.5)
|
103
|
+
domain_name (0.5.20170404)
|
104
|
+
unf (>= 0.0.5, < 1.0.0)
|
105
|
+
ffi (1.9.18)
|
106
|
+
formatador (0.2.5)
|
107
|
+
guard (2.14.1)
|
108
|
+
formatador (>= 0.2.4)
|
109
|
+
listen (>= 2.7, < 4.0)
|
110
|
+
lumberjack (~> 1.0)
|
111
|
+
nenv (~> 0.1)
|
112
|
+
notiffany (~> 0.0)
|
113
|
+
pry (>= 0.9.12)
|
114
|
+
shellany (~> 0.0)
|
115
|
+
thor (>= 0.18.1)
|
116
|
+
guard-bundler (2.1.0)
|
117
|
+
bundler (~> 1.0)
|
118
|
+
guard (~> 2.2)
|
119
|
+
guard-compat (~> 1.1)
|
120
|
+
guard-compat (1.2.1)
|
121
|
+
guard-rdoc (1.0.3)
|
122
|
+
guard
|
123
|
+
guard-rspec (4.7.3)
|
124
|
+
guard (~> 2.1)
|
125
|
+
guard-compat (~> 1.1)
|
126
|
+
rspec (>= 2.99.0, < 4.0)
|
127
|
+
http-cookie (1.0.3)
|
128
|
+
domain_name (~> 0.5)
|
129
|
+
json (2.1.0)
|
130
|
+
listen (3.1.5)
|
131
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
132
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
133
|
+
ruby_dep (~> 1.2)
|
134
|
+
lumberjack (1.0.12)
|
135
|
+
method_source (0.9.0)
|
136
|
+
mime-types (3.1)
|
137
|
+
mime-types-data (~> 3.2015)
|
138
|
+
mime-types-data (3.2016.0521)
|
139
|
+
multi_json (1.12.2)
|
140
|
+
nenv (0.3.0)
|
141
|
+
netrc (0.11.0)
|
142
|
+
notiffany (0.1.1)
|
143
|
+
nenv (~> 0.1)
|
144
|
+
shellany (~> 0.0)
|
145
|
+
pry (0.11.2)
|
146
|
+
coderay (~> 1.1.0)
|
147
|
+
method_source (~> 0.9.0)
|
148
|
+
rake (10.5.0)
|
149
|
+
rb-fsevent (0.10.2)
|
150
|
+
rb-inotify (0.9.10)
|
151
|
+
ffi (>= 0.5.0, < 2)
|
152
|
+
rest-client (2.0.2)
|
153
|
+
http-cookie (>= 1.0.2, < 2.0)
|
154
|
+
mime-types (>= 1.16, < 4.0)
|
155
|
+
netrc (~> 0.8)
|
156
|
+
rspec (3.7.0)
|
157
|
+
rspec-core (~> 3.7.0)
|
158
|
+
rspec-expectations (~> 3.7.0)
|
159
|
+
rspec-mocks (~> 3.7.0)
|
160
|
+
rspec-core (3.7.0)
|
161
|
+
rspec-support (~> 3.7.0)
|
162
|
+
rspec-expectations (3.7.0)
|
163
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
164
|
+
rspec-support (~> 3.7.0)
|
165
|
+
rspec-mocks (3.7.0)
|
166
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
167
|
+
rspec-support (~> 3.7.0)
|
168
|
+
rspec-support (3.7.0)
|
169
|
+
ruby_dep (1.5.0)
|
170
|
+
shellany (0.0.1)
|
171
|
+
simplecov (0.15.1)
|
172
|
+
docile (~> 1.1.0)
|
173
|
+
json (>= 1.8, < 3)
|
174
|
+
simplecov-html (~> 0.10.0)
|
175
|
+
simplecov-html (0.10.2)
|
176
|
+
term-ansicolor (1.6.0)
|
177
|
+
tins (~> 1.0)
|
178
|
+
thor (0.20.0)
|
179
|
+
tins (1.15.1)
|
180
|
+
unf (0.1.4)
|
181
|
+
unf_ext
|
182
|
+
unf_ext (0.0.7.4)</pre>
|
183
|
+
|
184
|
+
<p>PLATFORMS</p>
|
185
|
+
|
186
|
+
<pre class="ruby"><span class="ruby-identifier">ruby</span>
|
187
|
+
</pre>
|
188
|
+
|
189
|
+
<p>DEPENDENCIES</p>
|
190
|
+
|
191
|
+
<pre>alimento!
|
192
|
+
bundler (~> 1.15)
|
193
|
+
coveralls
|
194
|
+
guard
|
195
|
+
guard-bundler
|
196
|
+
guard-rdoc
|
197
|
+
guard-rspec
|
198
|
+
rake (~> 10.0)
|
199
|
+
rspec (~> 3.0)</pre>
|
200
|
+
|
201
|
+
<p>BUNDLED WITH</p>
|
202
|
+
|
203
|
+
<pre>1.15.4</pre>
|
204
|
+
</main>
|
205
|
+
|
206
|
+
|
207
|
+
|
208
|
+
<footer id="validator-badges" role="contentinfo">
|
209
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
210
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
211
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
212
|
+
</footer>
|
213
|
+
|
@@ -0,0 +1,232 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Grupo_alimento - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/jquery.js"></script>
|
15
|
+
<script src="./js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
<body id="top" role="document" class="class">
|
23
|
+
<nav role="navigation">
|
24
|
+
<div id="project-navigation">
|
25
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
26
|
+
<h2>
|
27
|
+
<a href="./index.html" rel="home">Home</a>
|
28
|
+
</h2>
|
29
|
+
|
30
|
+
<div id="table-of-contents-navigation">
|
31
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
32
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
33
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
|
37
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
38
|
+
<form action="#" method="get" accept-charset="utf-8">
|
39
|
+
<div id="search-field-wrapper">
|
40
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
41
|
+
aria-autocomplete="list" aria-controls="search-results"
|
42
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
43
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<ul id="search-results" aria-label="Search Results"
|
47
|
+
aria-busy="false" aria-expanded="false"
|
48
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
49
|
+
</form>
|
50
|
+
</div>
|
51
|
+
|
52
|
+
</div>
|
53
|
+
|
54
|
+
|
55
|
+
|
56
|
+
<div id="class-metadata">
|
57
|
+
|
58
|
+
<div id="parent-class-section" class="nav-section">
|
59
|
+
<h3>Parent</h3>
|
60
|
+
|
61
|
+
|
62
|
+
<p class="link"><a href="Alimento_.html">Alimento_</a>
|
63
|
+
|
64
|
+
</div>
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
<!-- Method Quickref -->
|
69
|
+
<div id="method-list-section" class="nav-section">
|
70
|
+
<h3>Methods</h3>
|
71
|
+
|
72
|
+
<ul class="link-list" role="directory">
|
73
|
+
|
74
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
75
|
+
|
76
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
77
|
+
|
78
|
+
</ul>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
</div>
|
82
|
+
</nav>
|
83
|
+
|
84
|
+
<main role="main" aria-labelledby="class-Grupo_alimento">
|
85
|
+
<h1 id="class-Grupo_alimento" class="class">
|
86
|
+
class Grupo_alimento
|
87
|
+
</h1>
|
88
|
+
|
89
|
+
<section class="description">
|
90
|
+
|
91
|
+
<p>Herencia de la clase <a href="Alimento.html">Alimento</a></p>
|
92
|
+
|
93
|
+
</section>
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<section class="attribute-method-details" class="method-section">
|
107
|
+
<header>
|
108
|
+
<h3>Attributes</h3>
|
109
|
+
</header>
|
110
|
+
|
111
|
+
|
112
|
+
<div id="attribute-i-grupo" class="method-detail">
|
113
|
+
<div class="method-heading attribute-method-heading">
|
114
|
+
<span class="method-name">grupo</span><span
|
115
|
+
class="attribute-access-type">[R]</span>
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div class="method-description">
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
</div>
|
123
|
+
</div>
|
124
|
+
|
125
|
+
</section>
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
130
|
+
<header>
|
131
|
+
<h3>Public Class Methods</h3>
|
132
|
+
</header>
|
133
|
+
|
134
|
+
|
135
|
+
<div id="method-c-new" class="method-detail ">
|
136
|
+
|
137
|
+
<div class="method-heading">
|
138
|
+
<span class="method-name">new</span><span
|
139
|
+
class="method-args">(name, proteins, glucids, fats, group)</span>
|
140
|
+
|
141
|
+
<span class="method-click-advice">click to toggle source</span>
|
142
|
+
|
143
|
+
</div>
|
144
|
+
|
145
|
+
|
146
|
+
<div class="method-description">
|
147
|
+
|
148
|
+
<p>Se asigna el nombre, las proteinas, los glucidos, las grasas y el grupo del
|
149
|
+
alimento</p>
|
150
|
+
|
151
|
+
|
152
|
+
<div class="method-calls-super">
|
153
|
+
Calls superclass method
|
154
|
+
<a href="Alimento_.html#method-c-new">Alimento_.new</a>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
<div class="method-source-code" id="new-source">
|
160
|
+
<pre><span class="ruby-comment"># File lib/alimento/alimento_.rb, line 64</span>
|
161
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">proteins</span>, <span class="ruby-identifier">glucids</span>, <span class="ruby-identifier">fats</span>, <span class="ruby-identifier">group</span>)
|
162
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">proteins</span>, <span class="ruby-identifier">glucids</span>, <span class="ruby-identifier">fats</span>)
|
163
|
+
<span class="ruby-ivar">@group</span> = <span class="ruby-identifier">group</span>
|
164
|
+
<span class="ruby-keyword">end</span></pre>
|
165
|
+
</div>
|
166
|
+
|
167
|
+
</div>
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
</div>
|
173
|
+
|
174
|
+
|
175
|
+
</section>
|
176
|
+
|
177
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
178
|
+
<header>
|
179
|
+
<h3>Public Instance Methods</h3>
|
180
|
+
</header>
|
181
|
+
|
182
|
+
|
183
|
+
<div id="method-i-to_s" class="method-detail ">
|
184
|
+
|
185
|
+
<div class="method-heading">
|
186
|
+
<span class="method-name">to_s</span><span
|
187
|
+
class="method-args">()</span>
|
188
|
+
|
189
|
+
<span class="method-click-advice">click to toggle source</span>
|
190
|
+
|
191
|
+
</div>
|
192
|
+
|
193
|
+
|
194
|
+
<div class="method-description">
|
195
|
+
|
196
|
+
<p>Formatea la salida a texto</p>
|
197
|
+
|
198
|
+
|
199
|
+
<div class="method-calls-super">
|
200
|
+
Calls superclass method
|
201
|
+
<a href="Alimento_.html#method-i-to_s">Alimento_#to_s</a>
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
|
206
|
+
<div class="method-source-code" id="to_s-source">
|
207
|
+
<pre><span class="ruby-comment"># File lib/alimento/alimento_.rb, line 69</span>
|
208
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
209
|
+
<span class="ruby-identifier">string</span> = <span class="ruby-keyword">super</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-node">"\tgrupo alimenticio:#{@group}"</span>
|
210
|
+
<span class="ruby-keyword">end</span></pre>
|
211
|
+
</div>
|
212
|
+
|
213
|
+
</div>
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
</div>
|
219
|
+
|
220
|
+
|
221
|
+
</section>
|
222
|
+
|
223
|
+
</section>
|
224
|
+
</main>
|
225
|
+
|
226
|
+
|
227
|
+
<footer id="validator-badges" role="contentinfo">
|
228
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
229
|
+
<p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
|
230
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
231
|
+
</footer>
|
232
|
+
|