alimentohv 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (153) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +11 -0
  4. data/.rake_tasks~ +7 -0
  5. data/.rspec +2 -0
  6. data/.travis.yml +5 -0
  7. data/Gemfile +6 -0
  8. data/Guardfile +82 -0
  9. data/README.md +3 -0
  10. data/Rakefile +6 -0
  11. data/alimento.gemspec +39 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/doc/Alimento.html +109 -0
  15. data/doc/Alimentos.html +467 -0
  16. data/doc/Gemfile.html +99 -0
  17. data/doc/Gemfile_lock.html +176 -0
  18. data/doc/Grupo.html +383 -0
  19. data/doc/Grupo_bebidas.html +102 -0
  20. data/doc/Grupo_carbohidratos.html +102 -0
  21. data/doc/Grupo_carnes.html +102 -0
  22. data/doc/Grupo_frutas.html +102 -0
  23. data/doc/Grupo_grasos.html +102 -0
  24. data/doc/Grupo_lacteos.html +102 -0
  25. data/doc/Grupo_pescados.html +102 -0
  26. data/doc/Grupo_verduras.html +102 -0
  27. data/doc/Guardfile.html +176 -0
  28. data/doc/Lista.html +457 -0
  29. data/doc/Object.html +116 -0
  30. data/doc/README_md.html +96 -0
  31. data/doc/Rakefile.html +97 -0
  32. data/doc/alimento_gemspec.html +130 -0
  33. data/doc/bin/setup.html +97 -0
  34. data/doc/created.rid +16 -0
  35. data/doc/css/fonts.css +167 -0
  36. data/doc/css/rdoc.css +590 -0
  37. data/doc/fonts/Lato-Light.ttf +0 -0
  38. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  39. data/doc/fonts/Lato-Regular.ttf +0 -0
  40. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  41. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  43. data/doc/images/add.png +0 -0
  44. data/doc/images/arrow_up.png +0 -0
  45. data/doc/images/brick.png +0 -0
  46. data/doc/images/brick_link.png +0 -0
  47. data/doc/images/bug.png +0 -0
  48. data/doc/images/bullet_black.png +0 -0
  49. data/doc/images/bullet_toggle_minus.png +0 -0
  50. data/doc/images/bullet_toggle_plus.png +0 -0
  51. data/doc/images/date.png +0 -0
  52. data/doc/images/delete.png +0 -0
  53. data/doc/images/find.png +0 -0
  54. data/doc/images/loadingAnimation.gif +0 -0
  55. data/doc/images/macFFBgHack.png +0 -0
  56. data/doc/images/package.png +0 -0
  57. data/doc/images/page_green.png +0 -0
  58. data/doc/images/page_white_text.png +0 -0
  59. data/doc/images/page_white_width.png +0 -0
  60. data/doc/images/plugin.png +0 -0
  61. data/doc/images/ruby.png +0 -0
  62. data/doc/images/tag_blue.png +0 -0
  63. data/doc/images/tag_green.png +0 -0
  64. data/doc/images/transparent.png +0 -0
  65. data/doc/images/wrench.png +0 -0
  66. data/doc/images/wrench_orange.png +0 -0
  67. data/doc/images/zoom.png +0 -0
  68. data/doc/index.html +125 -0
  69. data/doc/js/darkfish.js +161 -0
  70. data/doc/js/jquery.js +4 -0
  71. data/doc/js/navigation.js +142 -0
  72. data/doc/js/navigation.js.gz +0 -0
  73. data/doc/js/search.js +109 -0
  74. data/doc/js/search_index.js +1 -0
  75. data/doc/js/search_index.js.gz +0 -0
  76. data/doc/js/searcher.js +228 -0
  77. data/doc/js/searcher.js.gz +0 -0
  78. data/doc/table_of_contents.html +214 -0
  79. data/docs/Alimento.html +109 -0
  80. data/docs/Alimentos.html +467 -0
  81. data/docs/Gemfile.html +99 -0
  82. data/docs/Gemfile_lock.html +176 -0
  83. data/docs/Grupo.html +383 -0
  84. data/docs/Grupo_bebidas.html +102 -0
  85. data/docs/Grupo_carbohidratos.html +102 -0
  86. data/docs/Grupo_carnes.html +102 -0
  87. data/docs/Grupo_frutas.html +102 -0
  88. data/docs/Grupo_grasos.html +102 -0
  89. data/docs/Grupo_lacteos.html +102 -0
  90. data/docs/Grupo_pescados.html +102 -0
  91. data/docs/Grupo_verduras.html +102 -0
  92. data/docs/Guardfile.html +176 -0
  93. data/docs/Lista.html +457 -0
  94. data/docs/Object.html +116 -0
  95. data/docs/README_md.html +96 -0
  96. data/docs/Rakefile.html +97 -0
  97. data/docs/alimento_gemspec.html +130 -0
  98. data/docs/bin/setup.html +97 -0
  99. data/docs/created.rid +16 -0
  100. data/docs/css/fonts.css +167 -0
  101. data/docs/css/rdoc.css +590 -0
  102. data/docs/fonts/Lato-Light.ttf +0 -0
  103. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  104. data/docs/fonts/Lato-Regular.ttf +0 -0
  105. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  106. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  107. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  108. data/docs/images/add.png +0 -0
  109. data/docs/images/arrow_up.png +0 -0
  110. data/docs/images/brick.png +0 -0
  111. data/docs/images/brick_link.png +0 -0
  112. data/docs/images/bug.png +0 -0
  113. data/docs/images/bullet_black.png +0 -0
  114. data/docs/images/bullet_toggle_minus.png +0 -0
  115. data/docs/images/bullet_toggle_plus.png +0 -0
  116. data/docs/images/date.png +0 -0
  117. data/docs/images/delete.png +0 -0
  118. data/docs/images/find.png +0 -0
  119. data/docs/images/loadingAnimation.gif +0 -0
  120. data/docs/images/macFFBgHack.png +0 -0
  121. data/docs/images/package.png +0 -0
  122. data/docs/images/page_green.png +0 -0
  123. data/docs/images/page_white_text.png +0 -0
  124. data/docs/images/page_white_width.png +0 -0
  125. data/docs/images/plugin.png +0 -0
  126. data/docs/images/ruby.png +0 -0
  127. data/docs/images/tag_blue.png +0 -0
  128. data/docs/images/tag_green.png +0 -0
  129. data/docs/images/transparent.png +0 -0
  130. data/docs/images/wrench.png +0 -0
  131. data/docs/images/wrench_orange.png +0 -0
  132. data/docs/images/zoom.png +0 -0
  133. data/docs/index.html +125 -0
  134. data/docs/js/darkfish.js +161 -0
  135. data/docs/js/jquery.js +4 -0
  136. data/docs/js/navigation.js +142 -0
  137. data/docs/js/navigation.js.gz +0 -0
  138. data/docs/js/search.js +109 -0
  139. data/docs/js/search_index.js +1 -0
  140. data/docs/js/search_index.js.gz +0 -0
  141. data/docs/js/searcher.js +228 -0
  142. data/docs/js/searcher.js.gz +0 -0
  143. data/docs/table_of_contents.html +214 -0
  144. data/lib/alimento.rb +13 -0
  145. data/lib/alimento/alimentos.rb +35 -0
  146. data/lib/alimento/calculadora.rb +55 -0
  147. data/lib/alimento/comida.rb +58 -0
  148. data/lib/alimento/grupo.rb +53 -0
  149. data/lib/alimento/individuo.rb +46 -0
  150. data/lib/alimento/lista.rb +65 -0
  151. data/lib/alimento/platohardvard.rb +160 -0
  152. data/lib/alimento/version.rb +3 -0
  153. metadata +292 -0
data/docs/Gemfile.html ADDED
@@ -0,0 +1,99 @@
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
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./Gemfile.html">Gemfile</a>
62
+
63
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
64
+
65
+ <li><a href="./Guardfile.html">Guardfile</a>
66
+
67
+ <li><a href="./README_md.html">README</a>
68
+
69
+ <li><a href="./Rakefile.html">Rakefile</a>
70
+
71
+ <li><a href="./alimento_gemspec.html">alimento.gemspec</a>
72
+
73
+ <li><a href="./bin/setup.html">setup</a>
74
+
75
+ </ul>
76
+ </div>
77
+
78
+ </div>
79
+ </nav>
80
+
81
+ <main role="main" aria-label="Page Gemfile">
82
+
83
+ <p>source “<a href="https://rubygems.org">rubygems.org</a>”</p>
84
+
85
+ <p>git_source(:github) {|repo_name| “<a
86
+ href="https://github.com/#{repo_name">github.com/#{repo_name</a>}” }</p>
87
+
88
+ <p># Specify your gem&#39;s dependencies in <a
89
+ href="alimento_gemspec.html">alimento.gemspec</a> gemspec</p>
90
+ </main>
91
+
92
+
93
+
94
+ <footer id="validator-badges" role="contentinfo">
95
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
96
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
97
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
98
+ </footer>
99
+
@@ -0,0 +1,176 @@
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
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./Gemfile.html">Gemfile</a>
62
+
63
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
64
+
65
+ <li><a href="./Guardfile.html">Guardfile</a>
66
+
67
+ <li><a href="./README_md.html">README</a>
68
+
69
+ <li><a href="./Rakefile.html">Rakefile</a>
70
+
71
+ <li><a href="./alimento_gemspec.html">alimento.gemspec</a>
72
+
73
+ <li><a href="./bin/setup.html">setup</a>
74
+
75
+ </ul>
76
+ </div>
77
+
78
+ </div>
79
+ </nav>
80
+
81
+ <main role="main" aria-label="Page Gemfile.lock">
82
+
83
+ <p>PATH</p>
84
+
85
+ <pre>remote: .
86
+ specs:
87
+ alimento (0.1.0)</pre>
88
+
89
+ <p>GEM</p>
90
+
91
+ <pre>remote: https://rubygems.org/
92
+ specs:
93
+ coderay (1.1.2)
94
+ diff-lcs (1.3)
95
+ ffi (1.9.18)
96
+ formatador (0.2.5)
97
+ guard (2.14.1)
98
+ formatador (&gt;= 0.2.4)
99
+ listen (&gt;= 2.7, &lt; 4.0)
100
+ lumberjack (~&gt; 1.0)
101
+ nenv (~&gt; 0.1)
102
+ notiffany (~&gt; 0.0)
103
+ pry (&gt;= 0.9.12)
104
+ shellany (~&gt; 0.0)
105
+ thor (&gt;= 0.18.1)
106
+ guard-bundler (2.1.0)
107
+ bundler (~&gt; 1.0)
108
+ guard (~&gt; 2.2)
109
+ guard-compat (~&gt; 1.1)
110
+ guard-compat (1.2.1)
111
+ guard-rspec (4.7.3)
112
+ guard (~&gt; 2.1)
113
+ guard-compat (~&gt; 1.1)
114
+ rspec (&gt;= 2.99.0, &lt; 4.0)
115
+ listen (3.1.5)
116
+ rb-fsevent (~&gt; 0.9, &gt;= 0.9.4)
117
+ rb-inotify (~&gt; 0.9, &gt;= 0.9.7)
118
+ ruby_dep (~&gt; 1.2)
119
+ lumberjack (1.0.12)
120
+ method_source (0.9.0)
121
+ nenv (0.3.0)
122
+ notiffany (0.1.1)
123
+ nenv (~&gt; 0.1)
124
+ shellany (~&gt; 0.0)
125
+ pry (0.11.2)
126
+ coderay (~&gt; 1.1.0)
127
+ method_source (~&gt; 0.9.0)
128
+ rake (10.5.0)
129
+ rb-fsevent (0.10.2)
130
+ rb-inotify (0.9.10)
131
+ ffi (&gt;= 0.5.0, &lt; 2)
132
+ rspec (3.7.0)
133
+ rspec-core (~&gt; 3.7.0)
134
+ rspec-expectations (~&gt; 3.7.0)
135
+ rspec-mocks (~&gt; 3.7.0)
136
+ rspec-core (3.7.0)
137
+ rspec-support (~&gt; 3.7.0)
138
+ rspec-expectations (3.7.0)
139
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
140
+ rspec-support (~&gt; 3.7.0)
141
+ rspec-mocks (3.7.0)
142
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
143
+ rspec-support (~&gt; 3.7.0)
144
+ rspec-support (3.7.0)
145
+ ruby_dep (1.5.0)
146
+ shellany (0.0.1)
147
+ thor (0.20.0)</pre>
148
+
149
+ <p>PLATFORMS</p>
150
+
151
+ <pre class="ruby"><span class="ruby-identifier">ruby</span>
152
+ </pre>
153
+
154
+ <p>DEPENDENCIES</p>
155
+
156
+ <pre>alimento!
157
+ bundler (~&gt; 1.15)
158
+ guard
159
+ guard-bundler
160
+ guard-rspec
161
+ rake (~&gt; 10.0)
162
+ rspec (~&gt; 3.0)</pre>
163
+
164
+ <p>BUNDLED WITH</p>
165
+
166
+ <pre>1.15.4</pre>
167
+ </main>
168
+
169
+
170
+
171
+ <footer id="validator-badges" role="contentinfo">
172
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
173
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
174
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
175
+ </footer>
176
+
data/docs/Grupo.html ADDED
@@ -0,0 +1,383 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Grupo - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link"><a href="Object.html">Object</a>
62
+
63
+ </div>
64
+
65
+ <div id="includes-section" class="nav-section">
66
+ <h3>Included Modules</h3>
67
+
68
+ <ul class="link-list">
69
+
70
+
71
+ <li><span class="include">Comparable</span>
72
+
73
+
74
+ </ul>
75
+ </div>
76
+
77
+
78
+ <!-- Method Quickref -->
79
+ <div id="method-list-section" class="nav-section">
80
+ <h3>Methods</h3>
81
+
82
+ <ul class="link-list" role="directory">
83
+
84
+ <li ><a href="#method-c-new">::new</a>
85
+
86
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
87
+
88
+ <li ><a href="#method-i-get_alimento">#get_alimento</a>
89
+
90
+ <li ><a href="#method-i-get_titulo">#get_titulo</a>
91
+
92
+ <li ><a href="#method-i-getall_alimentos">#getall_alimentos</a>
93
+
94
+ <li ><a href="#method-i-to_s">#to_s</a>
95
+
96
+ </ul>
97
+ </div>
98
+
99
+ </div>
100
+ </nav>
101
+
102
+ <main role="main" aria-labelledby="class-Grupo">
103
+ <h1 id="class-Grupo" class="class">
104
+ class Grupo
105
+ </h1>
106
+
107
+ <section class="description">
108
+
109
+ </section>
110
+
111
+
112
+
113
+
114
+ <section id="5Buntitled-5D" class="documentation-section">
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+ <section class="attribute-method-details" class="method-section">
123
+ <header>
124
+ <h3>Attributes</h3>
125
+ </header>
126
+
127
+
128
+ <div id="attribute-i-alimentos" class="method-detail">
129
+ <div class="method-heading attribute-method-heading">
130
+ <span class="method-name">alimentos</span><span
131
+ class="attribute-access-type">[R]</span>
132
+ </div>
133
+
134
+ <div class="method-description">
135
+
136
+
137
+
138
+ </div>
139
+ </div>
140
+
141
+ <div id="attribute-i-titulo" class="method-detail">
142
+ <div class="method-heading attribute-method-heading">
143
+ <span class="method-name">titulo</span><span
144
+ class="attribute-access-type">[R]</span>
145
+ </div>
146
+
147
+ <div class="method-description">
148
+
149
+
150
+
151
+ </div>
152
+ </div>
153
+
154
+ </section>
155
+
156
+
157
+
158
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
159
+ <header>
160
+ <h3>Public Class Methods</h3>
161
+ </header>
162
+
163
+
164
+ <div id="method-c-new" class="method-detail ">
165
+
166
+ <div class="method-heading">
167
+ <span class="method-name">new</span><span
168
+ class="method-args">(titulo, alimentos)</span>
169
+
170
+ <span class="method-click-advice">click to toggle source</span>
171
+
172
+ </div>
173
+
174
+
175
+ <div class="method-description">
176
+
177
+
178
+
179
+
180
+
181
+
182
+ <div class="method-source-code" id="new-source">
183
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 6</span>
184
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">alimentos</span>
185
+ <span class="ruby-ivar">@titulo</span>, <span class="ruby-ivar">@alimentos</span> = <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">alimentos</span>
186
+ <span class="ruby-keyword">end</span></pre>
187
+ </div>
188
+
189
+ </div>
190
+
191
+
192
+
193
+
194
+ </div>
195
+
196
+
197
+ </section>
198
+
199
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
200
+ <header>
201
+ <h3>Public Instance Methods</h3>
202
+ </header>
203
+
204
+
205
+ <div id="method-i-3C-3D-3E" class="method-detail ">
206
+
207
+ <div class="method-heading">
208
+ <span class="method-name">&lt;=&gt;</span><span
209
+ class="method-args">(otro)</span>
210
+
211
+ <span class="method-click-advice">click to toggle source</span>
212
+
213
+ </div>
214
+
215
+
216
+ <div class="method-description">
217
+
218
+
219
+
220
+
221
+
222
+
223
+ <div class="method-source-code" id="3C-3D-3E-source">
224
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 23</span>
225
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span> (<span class="ruby-identifier">otro</span>)
226
+ <span class="ruby-ivar">@titulo</span><span class="ruby-operator">&lt;=&gt;</span><span class="ruby-identifier">otro</span>.<span class="ruby-identifier">titulo</span>
227
+ <span class="ruby-keyword">end</span></pre>
228
+ </div>
229
+
230
+ </div>
231
+
232
+
233
+
234
+
235
+ </div>
236
+
237
+
238
+ <div id="method-i-get_alimento" class="method-detail ">
239
+
240
+ <div class="method-heading">
241
+ <span class="method-name">get_alimento</span><span
242
+ class="method-args">(i)</span>
243
+
244
+ <span class="method-click-advice">click to toggle source</span>
245
+
246
+ </div>
247
+
248
+
249
+ <div class="method-description">
250
+
251
+
252
+
253
+
254
+
255
+
256
+ <div class="method-source-code" id="get_alimento-source">
257
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 12</span>
258
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_alimento</span> <span class="ruby-identifier">i</span>
259
+ <span class="ruby-ivar">@alimentos</span>[<span class="ruby-identifier">i</span>]
260
+ <span class="ruby-keyword">end</span></pre>
261
+ </div>
262
+
263
+ </div>
264
+
265
+
266
+
267
+
268
+ </div>
269
+
270
+
271
+ <div id="method-i-get_titulo" class="method-detail ">
272
+
273
+ <div class="method-heading">
274
+ <span class="method-name">get_titulo</span><span
275
+ class="method-args">()</span>
276
+
277
+ <span class="method-click-advice">click to toggle source</span>
278
+
279
+ </div>
280
+
281
+
282
+ <div class="method-description">
283
+
284
+
285
+
286
+
287
+
288
+
289
+ <div class="method-source-code" id="get_titulo-source">
290
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 9</span>
291
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_titulo</span>
292
+ <span class="ruby-ivar">@titulo</span>
293
+ <span class="ruby-keyword">end</span></pre>
294
+ </div>
295
+
296
+ </div>
297
+
298
+
299
+
300
+
301
+ </div>
302
+
303
+
304
+ <div id="method-i-getall_alimentos" class="method-detail ">
305
+
306
+ <div class="method-heading">
307
+ <span class="method-name">getall_alimentos</span><span
308
+ class="method-args">()</span>
309
+
310
+ <span class="method-click-advice">click to toggle source</span>
311
+
312
+ </div>
313
+
314
+
315
+ <div class="method-description">
316
+
317
+
318
+
319
+
320
+
321
+
322
+ <div class="method-source-code" id="getall_alimentos-source">
323
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 15</span>
324
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">getall_alimentos</span>
325
+ <span class="ruby-ivar">@alimentos</span>
326
+ <span class="ruby-keyword">end</span></pre>
327
+ </div>
328
+
329
+ </div>
330
+
331
+
332
+
333
+
334
+ </div>
335
+
336
+
337
+ <div id="method-i-to_s" class="method-detail ">
338
+
339
+ <div class="method-heading">
340
+ <span class="method-name">to_s</span><span
341
+ class="method-args">()</span>
342
+
343
+ <span class="method-click-advice">click to toggle source</span>
344
+
345
+ </div>
346
+
347
+
348
+ <div class="method-description">
349
+
350
+
351
+
352
+
353
+
354
+
355
+ <div class="method-source-code" id="to_s-source">
356
+ <pre><span class="ruby-comment"># File lib/alimento/grupo.rb, line 18</span>
357
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
358
+ <span class="ruby-identifier">out</span> = <span class="ruby-node">&quot;#{@titulo.upcase}\n&quot;</span>
359
+ <span class="ruby-identifier">out</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@alimentos</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">alimento</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;-#{alimento}&quot;</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;,\n&quot;</span>)
360
+ <span class="ruby-identifier">out</span>
361
+ <span class="ruby-keyword">end</span></pre>
362
+ </div>
363
+
364
+ </div>
365
+
366
+
367
+
368
+
369
+ </div>
370
+
371
+
372
+ </section>
373
+
374
+ </section>
375
+ </main>
376
+
377
+
378
+ <footer id="validator-badges" role="contentinfo">
379
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
380
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
381
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
382
+ </footer>
383
+