menu_nitesh 0.1.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.
Files changed (80) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +0 -0
  4. data/CODE_OF_CONDUCT.md +49 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +41 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/doc/CODE_OF_CONDUCT_md.html +149 -0
  13. data/doc/Gemfile.html +100 -0
  14. data/doc/Gemfile_lock.html +182 -0
  15. data/doc/Guardfile.html +180 -0
  16. data/doc/LICENSE_txt.html +117 -0
  17. data/doc/Lista.html +497 -0
  18. data/doc/Menu.html +117 -0
  19. data/doc/Menu/Menu.html +810 -0
  20. data/doc/Menu_edad.html +98 -0
  21. data/doc/Menu_edad/Menu_edad.html +242 -0
  22. data/doc/Menu_tipo.html +98 -0
  23. data/doc/Menu_tipo/Menu_tipo.html +242 -0
  24. data/doc/Object.html +118 -0
  25. data/doc/README_md.html +164 -0
  26. data/doc/Rakefile.html +101 -0
  27. data/doc/bin/setup.html +101 -0
  28. data/doc/created.rid +17 -0
  29. data/doc/css/fonts.css +167 -0
  30. data/doc/css/rdoc.css +590 -0
  31. data/doc/fonts/Lato-Light.ttf +0 -0
  32. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  33. data/doc/fonts/Lato-Regular.ttf +0 -0
  34. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  35. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  36. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  37. data/doc/images/add.png +0 -0
  38. data/doc/images/arrow_up.png +0 -0
  39. data/doc/images/brick.png +0 -0
  40. data/doc/images/brick_link.png +0 -0
  41. data/doc/images/bug.png +0 -0
  42. data/doc/images/bullet_black.png +0 -0
  43. data/doc/images/bullet_toggle_minus.png +0 -0
  44. data/doc/images/bullet_toggle_plus.png +0 -0
  45. data/doc/images/date.png +0 -0
  46. data/doc/images/delete.png +0 -0
  47. data/doc/images/find.png +0 -0
  48. data/doc/images/loadingAnimation.gif +0 -0
  49. data/doc/images/macFFBgHack.png +0 -0
  50. data/doc/images/package.png +0 -0
  51. data/doc/images/page_green.png +0 -0
  52. data/doc/images/page_white_text.png +0 -0
  53. data/doc/images/page_white_width.png +0 -0
  54. data/doc/images/plugin.png +0 -0
  55. data/doc/images/ruby.png +0 -0
  56. data/doc/images/tag_blue.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/transparent.png +0 -0
  59. data/doc/images/wrench.png +0 -0
  60. data/doc/images/wrench_orange.png +0 -0
  61. data/doc/images/zoom.png +0 -0
  62. data/doc/index.html +119 -0
  63. data/doc/js/darkfish.js +161 -0
  64. data/doc/js/jquery.js +4 -0
  65. data/doc/js/navigation.js +142 -0
  66. data/doc/js/navigation.js.gz +0 -0
  67. data/doc/js/search.js +109 -0
  68. data/doc/js/search_index.js +1 -0
  69. data/doc/js/search_index.js.gz +0 -0
  70. data/doc/js/searcher.js +228 -0
  71. data/doc/js/searcher.js.gz +0 -0
  72. data/doc/menu_gemspec.html +136 -0
  73. data/doc/table_of_contents.html +234 -0
  74. data/lib/menu.rb +5 -0
  75. data/lib/menu/codigo_lista.rb +98 -0
  76. data/lib/menu/codigo_menu.rb +157 -0
  77. data/lib/menu/codigo_menu_dsl.rb +107 -0
  78. data/lib/menu/version.rb +5 -0
  79. data/menu.gemspec +39 -0
  80. metadata +209 -0
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Menu_edad - 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="module">
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
+
58
+
59
+
60
+
61
+ </div>
62
+ </nav>
63
+
64
+ <main role="main" aria-labelledby="module-Menu_edad">
65
+ <h1 id="module-Menu_edad" class="module">
66
+ module Menu_edad
67
+ </h1>
68
+
69
+ <section class="description">
70
+ <ul><li>
71
+ <p>Módulo <a href="Menu_edad/Menu_edad.html">Menu_edad</a></p>
72
+ </li></ul>
73
+
74
+ </section>
75
+
76
+
77
+
78
+
79
+ <section id="5Buntitled-5D" class="documentation-section">
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ </section>
90
+ </main>
91
+
92
+
93
+ <footer id="validator-badges" role="contentinfo">
94
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
95
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
96
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
97
+ </footer>
98
+
@@ -0,0 +1,242 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Menu_edad::Menu_edad - 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="../Menu/Menu.html">Menu::Menu</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Menu_edad::Menu_edad">
84
+ <h1 id="class-Menu_edad::Menu_edad" class="class">
85
+ class Menu_edad::Menu_edad
86
+ </h1>
87
+
88
+ <section class="description">
89
+ <ul><li>
90
+ <p>Creando una herencia del Menú, llamado <a
91
+ href="Menu_edad.html">Menu_edad</a>, quien contiene un campo que especifica
92
+ a qué edad corresponde el Menú.</p>
93
+ </li></ul>
94
+
95
+ </section>
96
+
97
+
98
+
99
+
100
+ <section id="5Buntitled-5D" class="documentation-section">
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <section class="attribute-method-details" class="method-section">
109
+ <header>
110
+ <h3>Attributes</h3>
111
+ </header>
112
+
113
+
114
+ <div id="attribute-i-edad" class="method-detail">
115
+ <div class="method-heading attribute-method-heading">
116
+ <span class="method-name">edad</span><span
117
+ class="attribute-access-type">[R]</span>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+
122
+ <ul><li>
123
+ <p>Atributos</p>
124
+ </li></ul>
125
+
126
+ </div>
127
+ </div>
128
+
129
+ </section>
130
+
131
+
132
+
133
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
134
+ <header>
135
+ <h3>Public Class Methods</h3>
136
+ </header>
137
+
138
+
139
+ <div id="method-c-new" class="method-detail ">
140
+
141
+ <div class="method-heading">
142
+ <span class="method-name">new</span><span
143
+ class="method-args">(titulo, porcent, plat, vct, prot, grss, hidr, edad)</span>
144
+
145
+ <span class="method-click-advice">click to toggle source</span>
146
+
147
+ </div>
148
+
149
+
150
+ <div class="method-description">
151
+
152
+ <ul><li>
153
+ <p>Construyendo el Objeto <a href="Menu_edad.html">Menu_edad</a> de tipo
154
+ “Clase”.</p>
155
+ </li></ul>
156
+
157
+
158
+ <div class="method-calls-super">
159
+ Calls superclass method
160
+ <a href="../Menu/Menu.html#method-c-new">Menu::Menu.new</a>
161
+ </div>
162
+
163
+
164
+
165
+ <div class="method-source-code" id="new-source">
166
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 141</span>
167
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcent</span>, <span class="ruby-identifier">plat</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">prot</span>, <span class="ruby-identifier">grss</span>, <span class="ruby-identifier">hidr</span>, <span class="ruby-identifier">edad</span>)
168
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcent</span>, <span class="ruby-identifier">plat</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">prot</span>, <span class="ruby-identifier">grss</span>, <span class="ruby-identifier">hidr</span>)
169
+ <span class="ruby-ivar">@edad</span> = <span class="ruby-identifier">edad</span>
170
+ <span class="ruby-keyword">end</span></pre>
171
+ </div>
172
+
173
+ </div>
174
+
175
+
176
+
177
+
178
+ </div>
179
+
180
+
181
+ </section>
182
+
183
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
184
+ <header>
185
+ <h3>Public Instance Methods</h3>
186
+ </header>
187
+
188
+
189
+ <div id="method-i-to_s" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">to_s</span><span
193
+ class="method-args">()</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <ul><li>
203
+ <p>Creando el método <a href="Menu_edad.html#method-i-to_s">#to_s</a> que
204
+ imprime por pantalla TODO el <a href="Menu_edad.html">Menu_edad</a>.</p>
205
+ </li></ul>
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="to_s-source">
211
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 147</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
213
+ <span class="ruby-identifier">s</span> = <span class="ruby-node">&quot;\n#{get_titulo} (#{get_porcentaje})\n#{get_conjunto_plat}&quot;</span>
214
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\nVCT: #{get_vct} kcal | &quot;</span>
215
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_prot}% proteínas - &quot;</span>
216
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_grss}% grasas - &quot;</span>
217
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_hidr}% hidratos de carbono\n&quot;</span>
218
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Para el grupo de edad: \&quot;#{edad}\&quot;&quot;</span>
219
+ <span class="ruby-identifier">s</span>
220
+ <span class="ruby-keyword">end</span></pre>
221
+ </div>
222
+
223
+ </div>
224
+
225
+
226
+
227
+
228
+ </div>
229
+
230
+
231
+ </section>
232
+
233
+ </section>
234
+ </main>
235
+
236
+
237
+ <footer id="validator-badges" role="contentinfo">
238
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
239
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
240
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
241
+ </footer>
242
+
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Menu_tipo - 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="module">
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
+
58
+
59
+
60
+
61
+ </div>
62
+ </nav>
63
+
64
+ <main role="main" aria-labelledby="module-Menu_tipo">
65
+ <h1 id="module-Menu_tipo" class="module">
66
+ module Menu_tipo
67
+ </h1>
68
+
69
+ <section class="description">
70
+ <ul><li>
71
+ <p>Módulo <a href="Menu_tipo/Menu_tipo.html">Menu_tipo</a></p>
72
+ </li></ul>
73
+
74
+ </section>
75
+
76
+
77
+
78
+
79
+ <section id="5Buntitled-5D" class="documentation-section">
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ </section>
90
+ </main>
91
+
92
+
93
+ <footer id="validator-badges" role="contentinfo">
94
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
95
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
96
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
97
+ </footer>
98
+
@@ -0,0 +1,242 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Menu_tipo::Menu_tipo - 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="../Menu/Menu.html">Menu::Menu</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-Menu_tipo::Menu_tipo">
84
+ <h1 id="class-Menu_tipo::Menu_tipo" class="class">
85
+ class Menu_tipo::Menu_tipo
86
+ </h1>
87
+
88
+ <section class="description">
89
+ <ul><li>
90
+ <p>Creando una herencia del Menú, llamado <a
91
+ href="Menu_tipo.html">Menu_tipo</a>, quien contiene un campo que especifica
92
+ el tipo del Menú.</p>
93
+ </li></ul>
94
+
95
+ </section>
96
+
97
+
98
+
99
+
100
+ <section id="5Buntitled-5D" class="documentation-section">
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <section class="attribute-method-details" class="method-section">
109
+ <header>
110
+ <h3>Attributes</h3>
111
+ </header>
112
+
113
+
114
+ <div id="attribute-i-tipo" class="method-detail">
115
+ <div class="method-heading attribute-method-heading">
116
+ <span class="method-name">tipo</span><span
117
+ class="attribute-access-type">[R]</span>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+
122
+ <ul><li>
123
+ <p>Atributos</p>
124
+ </li></ul>
125
+
126
+ </div>
127
+ </div>
128
+
129
+ </section>
130
+
131
+
132
+
133
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
134
+ <header>
135
+ <h3>Public Class Methods</h3>
136
+ </header>
137
+
138
+
139
+ <div id="method-c-new" class="method-detail ">
140
+
141
+ <div class="method-heading">
142
+ <span class="method-name">new</span><span
143
+ class="method-args">(titulo, porcent, plat, vct, prot, grss, hidr, tipo)</span>
144
+
145
+ <span class="method-click-advice">click to toggle source</span>
146
+
147
+ </div>
148
+
149
+
150
+ <div class="method-description">
151
+
152
+ <ul><li>
153
+ <p>Construyendo el Objeto <a href="Menu_tipo.html">Menu_tipo</a> de tipo
154
+ “Clase”.</p>
155
+ </li></ul>
156
+
157
+
158
+ <div class="method-calls-super">
159
+ Calls superclass method
160
+ <a href="../Menu/Menu.html#method-c-new">Menu::Menu.new</a>
161
+ </div>
162
+
163
+
164
+
165
+ <div class="method-source-code" id="new-source">
166
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 115</span>
167
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcent</span>, <span class="ruby-identifier">plat</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">prot</span>, <span class="ruby-identifier">grss</span>, <span class="ruby-identifier">hidr</span>, <span class="ruby-identifier">tipo</span>)
168
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">porcent</span>, <span class="ruby-identifier">plat</span>, <span class="ruby-identifier">vct</span>, <span class="ruby-identifier">prot</span>, <span class="ruby-identifier">grss</span>, <span class="ruby-identifier">hidr</span>)
169
+ <span class="ruby-ivar">@tipo</span> = <span class="ruby-identifier">tipo</span>
170
+ <span class="ruby-keyword">end</span></pre>
171
+ </div>
172
+
173
+ </div>
174
+
175
+
176
+
177
+
178
+ </div>
179
+
180
+
181
+ </section>
182
+
183
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
184
+ <header>
185
+ <h3>Public Instance Methods</h3>
186
+ </header>
187
+
188
+
189
+ <div id="method-i-to_s" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">to_s</span><span
193
+ class="method-args">()</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+ <ul><li>
203
+ <p>Creando el método <a href="Menu_tipo.html#method-i-to_s">#to_s</a> que
204
+ imprime por pantalla TODO el <a href="Menu_tipo.html">Menu_tipo</a>.</p>
205
+ </li></ul>
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="to_s-source">
211
+ <pre><span class="ruby-comment"># File lib/menu/codigo_menu.rb, line 121</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
213
+ <span class="ruby-identifier">s</span> = <span class="ruby-node">&quot;\n#{get_titulo} (#{get_porcentaje})\n#{get_conjunto_plat}&quot;</span>
214
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;\nVCT: #{get_vct} kcal | &quot;</span>
215
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_prot}% proteínas - &quot;</span>
216
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_grss}% grasas - &quot;</span>
217
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;#{get_hidr}% hidratos de carbono\n&quot;</span>
218
+ <span class="ruby-identifier">s</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-node">&quot;Tipo de plato: \&quot;#{tipo}\&quot;&quot;</span>
219
+ <span class="ruby-identifier">s</span>
220
+ <span class="ruby-keyword">end</span></pre>
221
+ </div>
222
+
223
+ </div>
224
+
225
+
226
+
227
+
228
+ </div>
229
+
230
+
231
+ </section>
232
+
233
+ </section>
234
+ </main>
235
+
236
+
237
+ <footer id="validator-badges" role="contentinfo">
238
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
239
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
240
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
241
+ </footer>
242
+