exam1 0.0.1
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 +2 -0
- data/.coveralls.yml~ +0 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/.travis.yml~ +0 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +18 -0
- data/exam1.gemspec +30 -0
- data/exam1.gemspec~ +23 -0
- data/lib/exam1.rb +9 -0
- data/lib/exam1/SeleccionSimple.rb +86 -0
- data/lib/exam1/SeleccionSimple.rb~ +86 -0
- data/lib/exam1/doc/Exam1.html +112 -0
- data/lib/exam1/doc/Examen.html +484 -0
- data/lib/exam1/doc/Interfaz.html +384 -0
- data/lib/exam1/doc/List.html +467 -0
- data/lib/exam1/doc/Nodo.html +167 -0
- data/lib/exam1/doc/Object.html +119 -0
- data/lib/exam1/doc/SeleccionSimple.html +361 -0
- data/lib/exam1/doc/SeleccionSimple_rb~.html +237 -0
- data/lib/exam1/doc/Verdadero_Falso.html +208 -0
- data/lib/exam1/doc/created.rid +60 -0
- data/lib/exam1/doc/doc/Exam1_html.html +230 -0
- data/lib/exam1/doc/doc/Examen_html.html +556 -0
- data/lib/exam1/doc/doc/Interfaz_html.html +468 -0
- data/lib/exam1/doc/doc/List_html.html +531 -0
- data/lib/exam1/doc/doc/Nodo_html.html +285 -0
- data/lib/exam1/doc/doc/Object_html.html +237 -0
- data/lib/exam1/doc/doc/SeleccionSimple_html.html +454 -0
- data/lib/exam1/doc/doc/SeleccionSimple_rb~_html.html +377 -0
- data/lib/exam1/doc/doc/Verdadero_Falso_html.html +318 -0
- data/lib/exam1/doc/doc/examen_rb~_html.html +425 -0
- data/lib/exam1/doc/doc/fonts_css.html +307 -0
- data/lib/exam1/doc/doc/index_html.html +241 -0
- data/lib/exam1/doc/doc/js/darkfish_js.html +286 -0
- data/lib/exam1/doc/doc/js/jquery_js.html +1450 -0
- data/lib/exam1/doc/doc/js/navigation_js.html +271 -0
- data/lib/exam1/doc/doc/js/search_index_js.html +177 -0
- data/lib/exam1/doc/doc/js/search_js.html +240 -0
- data/lib/exam1/doc/doc/js/searcher_js.html +358 -0
- data/lib/exam1/doc/doc/linkedlist_rb~_html.html +345 -0
- data/lib/exam1/doc/doc/rdoc_css.html +844 -0
- data/lib/exam1/doc/doc/table_of_contents_html.html +352 -0
- data/lib/exam1/doc/examen_rb~.html +300 -0
- data/lib/exam1/doc/fonts.css +167 -0
- data/lib/exam1/doc/fonts/Lato-Light.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-Regular.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/lib/exam1/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/lib/exam1/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/lib/exam1/doc/images/add.png +0 -0
- data/lib/exam1/doc/images/arrow_up.png +0 -0
- data/lib/exam1/doc/images/brick.png +0 -0
- data/lib/exam1/doc/images/brick_link.png +0 -0
- data/lib/exam1/doc/images/bug.png +0 -0
- data/lib/exam1/doc/images/bullet_black.png +0 -0
- data/lib/exam1/doc/images/bullet_toggle_minus.png +0 -0
- data/lib/exam1/doc/images/bullet_toggle_plus.png +0 -0
- data/lib/exam1/doc/images/date.png +0 -0
- data/lib/exam1/doc/images/delete.png +0 -0
- data/lib/exam1/doc/images/find.png +0 -0
- data/lib/exam1/doc/images/loadingAnimation.gif +0 -0
- data/lib/exam1/doc/images/macFFBgHack.png +0 -0
- data/lib/exam1/doc/images/package.png +0 -0
- data/lib/exam1/doc/images/page_green.png +0 -0
- data/lib/exam1/doc/images/page_white_text.png +0 -0
- data/lib/exam1/doc/images/page_white_width.png +0 -0
- data/lib/exam1/doc/images/plugin.png +0 -0
- data/lib/exam1/doc/images/ruby.png +0 -0
- data/lib/exam1/doc/images/tag_blue.png +0 -0
- data/lib/exam1/doc/images/tag_green.png +0 -0
- data/lib/exam1/doc/images/transparent.png +0 -0
- data/lib/exam1/doc/images/wrench.png +0 -0
- data/lib/exam1/doc/images/wrench_orange.png +0 -0
- data/lib/exam1/doc/images/zoom.png +0 -0
- data/lib/exam1/doc/index.html +152 -0
- data/lib/exam1/doc/js/darkfish.js +140 -0
- data/lib/exam1/doc/js/jquery.js +18 -0
- data/lib/exam1/doc/js/navigation.js +142 -0
- data/lib/exam1/doc/js/search.js +109 -0
- data/lib/exam1/doc/js/search_index.js +1 -0
- data/lib/exam1/doc/js/searcher.js +228 -0
- data/lib/exam1/doc/linkedlist_rb~.html +238 -0
- data/lib/exam1/doc/rdoc.css +580 -0
- data/lib/exam1/doc/table_of_contents.html +288 -0
- data/lib/exam1/examen.rb +178 -0
- data/lib/exam1/examen.rb~ +178 -0
- data/lib/exam1/linkedlist.rb +129 -0
- data/lib/exam1/linkedlist.rb~ +134 -0
- data/lib/exam1/version.rb +3 -0
- data/spec/.yardoc/checksums +0 -0
- data/spec/.yardoc/object_types +0 -0
- data/spec/.yardoc/objects/root.dat +0 -0
- data/spec/.yardoc/proxy_types +0 -0
- data/spec/doc/_index.html +88 -0
- data/spec/doc/class_list.html +58 -0
- data/spec/doc/created.rid +3 -0
- data/spec/doc/css/common.css +1 -0
- data/spec/doc/css/full_list.css +57 -0
- data/spec/doc/css/style.css +339 -0
- data/spec/doc/file_list.html +57 -0
- data/spec/doc/frames.html +26 -0
- data/spec/doc/images/brick.png +0 -0
- data/spec/doc/images/brick_link.png +0 -0
- data/spec/doc/images/bug.png +0 -0
- data/spec/doc/images/bullet_black.png +0 -0
- data/spec/doc/images/bullet_toggle_minus.png +0 -0
- data/spec/doc/images/bullet_toggle_plus.png +0 -0
- data/spec/doc/images/date.png +0 -0
- data/spec/doc/images/find.png +0 -0
- data/spec/doc/images/loadingAnimation.gif +0 -0
- data/spec/doc/images/macFFBgHack.png +0 -0
- data/spec/doc/images/package.png +0 -0
- data/spec/doc/images/page_green.png +0 -0
- data/spec/doc/images/page_white_text.png +0 -0
- data/spec/doc/images/page_white_width.png +0 -0
- data/spec/doc/images/plugin.png +0 -0
- data/spec/doc/images/ruby.png +0 -0
- data/spec/doc/images/tag_green.png +0 -0
- data/spec/doc/images/wrench.png +0 -0
- data/spec/doc/images/wrench_orange.png +0 -0
- data/spec/doc/images/zoom.png +0 -0
- data/spec/doc/index.html +88 -0
- data/spec/doc/js/app.js +219 -0
- data/spec/doc/js/darkfish.js +118 -0
- data/spec/doc/js/full_list.js +181 -0
- data/spec/doc/js/jquery.js +4 -0
- data/spec/doc/js/quicksearch.js +114 -0
- data/spec/doc/js/thickbox-compressed.js +10 -0
- data/spec/doc/linkedlist_spec_rb.html +56 -0
- data/spec/doc/method_list.html +57 -0
- data/spec/doc/rdoc.css +763 -0
- data/spec/doc/spec_helper_rb.html +54 -0
- data/spec/doc/top-level-namespace.html +102 -0
- data/spec/linkedlist_spec.rb +449 -0
- data/spec/linkedlist_spec.rb~ +449 -0
- data/spec/spec_helper.rb +28 -0
- metadata +331 -0
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>SeleccionSimple_rb~.html - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
+
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
var rdoc_rel_prefix = "../";
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script src="../js/jquery.js"></script>
|
|
17
|
+
<script src="../js/navigation.js"></script>
|
|
18
|
+
<script src="../js/search_index.js"></script>
|
|
19
|
+
<script src="../js/search.js"></script>
|
|
20
|
+
<script src="../js/searcher.js"></script>
|
|
21
|
+
<script src="../js/darkfish.js"></script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<body id="top" role="document" class="file">
|
|
25
|
+
<nav role="navigation">
|
|
26
|
+
<div id="project-navigation">
|
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
+
<h2>
|
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
|
30
|
+
</h2>
|
|
31
|
+
|
|
32
|
+
<div id="table-of-contents-navigation">
|
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
+
<div id="search-field-wrapper">
|
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
+
</form>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<div id="project-metadata">
|
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
|
60
|
+
<h3>Pages</h3>
|
|
61
|
+
|
|
62
|
+
<ul class="link-list">
|
|
63
|
+
|
|
64
|
+
<li><a href="../SeleccionSimple_rb~.html">SeleccionSimple.rb~</a>
|
|
65
|
+
|
|
66
|
+
<li><a href="../doc/Exam1_html.html">Exam1.html</a>
|
|
67
|
+
|
|
68
|
+
<li><a href="../doc/Examen_html.html">Examen.html</a>
|
|
69
|
+
|
|
70
|
+
<li><a href="../doc/Interfaz_html.html">Interfaz.html</a>
|
|
71
|
+
|
|
72
|
+
<li><a href="../doc/List_html.html">List.html</a>
|
|
73
|
+
|
|
74
|
+
<li><a href="../doc/Nodo_html.html">Nodo.html</a>
|
|
75
|
+
|
|
76
|
+
<li><a href="../doc/Object_html.html">Object.html</a>
|
|
77
|
+
|
|
78
|
+
<li><a href="../doc/SeleccionSimple_html.html">SeleccionSimple.html</a>
|
|
79
|
+
|
|
80
|
+
<li><a href="../doc/SeleccionSimple_rb~_html.html">SeleccionSimple_rb~.html</a>
|
|
81
|
+
|
|
82
|
+
<li><a href="../doc/Verdadero_Falso_html.html">Verdadero_Falso.html</a>
|
|
83
|
+
|
|
84
|
+
<li><a href="../doc/examen_rb~_html.html">examen_rb~.html</a>
|
|
85
|
+
|
|
86
|
+
<li><a href="../doc/fonts_css.html">fonts.css</a>
|
|
87
|
+
|
|
88
|
+
<li><a href="../doc/index_html.html">index.html</a>
|
|
89
|
+
|
|
90
|
+
<li><a href="../doc/js/darkfish_js.html">darkfish.js</a>
|
|
91
|
+
|
|
92
|
+
<li><a href="../doc/js/jquery_js.html">jquery.js</a>
|
|
93
|
+
|
|
94
|
+
<li><a href="../doc/js/navigation_js.html">navigation.js</a>
|
|
95
|
+
|
|
96
|
+
<li><a href="../doc/js/search_js.html">search.js</a>
|
|
97
|
+
|
|
98
|
+
<li><a href="../doc/js/search_index_js.html">search_index.js</a>
|
|
99
|
+
|
|
100
|
+
<li><a href="../doc/js/searcher_js.html">searcher.js</a>
|
|
101
|
+
|
|
102
|
+
<li><a href="../doc/linkedlist_rb~_html.html">linkedlist_rb~.html</a>
|
|
103
|
+
|
|
104
|
+
<li><a href="../doc/rdoc_css.html">rdoc.css</a>
|
|
105
|
+
|
|
106
|
+
<li><a href="../doc/table_of_contents_html.html">table_of_contents.html</a>
|
|
107
|
+
|
|
108
|
+
<li><a href="../examen_rb~.html">examen.rb~</a>
|
|
109
|
+
|
|
110
|
+
<li><a href="../linkedlist_rb~.html">linkedlist.rb~</a>
|
|
111
|
+
|
|
112
|
+
</ul>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
</nav>
|
|
117
|
+
|
|
118
|
+
<main role="main" aria-label="Page doc/SeleccionSimple_rb~.html">
|
|
119
|
+
|
|
120
|
+
<p><!DOCTYPE html></p>
|
|
121
|
+
|
|
122
|
+
<p><html> <head> <meta charset=“UTF-8”></p>
|
|
123
|
+
|
|
124
|
+
<p><title>SeleccionSimple.rb~ - RDoc Documentation</title></p>
|
|
125
|
+
|
|
126
|
+
<p><link href=“./fonts.css” rel=“stylesheet”> <link href=“./rdoc.css”
|
|
127
|
+
rel=“stylesheet”></p>
|
|
128
|
+
|
|
129
|
+
<p><script type=“text/javascript”></p>
|
|
130
|
+
|
|
131
|
+
<pre>var rdoc_rel_prefix = "./";</pre>
|
|
132
|
+
|
|
133
|
+
<p></script></p>
|
|
134
|
+
|
|
135
|
+
<p><script src=“./js/jquery.js”></script> <script
|
|
136
|
+
src=“./js/navigation.js”></script> <script
|
|
137
|
+
src=“./js/search_index.js”></script> <script
|
|
138
|
+
src=“./js/search.js”></script> <script
|
|
139
|
+
src=“./js/searcher.js”></script> <script
|
|
140
|
+
src=“./js/darkfish.js”></script></p>
|
|
141
|
+
|
|
142
|
+
<p><body id=“top” role=“document” class=“file”> <nav
|
|
143
|
+
role=“navigation”></p>
|
|
144
|
+
|
|
145
|
+
<pre><div id="project-navigation">
|
|
146
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
147
|
+
<h2>
|
|
148
|
+
<a href="./index.html" rel="home">Home</a>
|
|
149
|
+
</h2>
|
|
150
|
+
|
|
151
|
+
<div id="table-of-contents-navigation">
|
|
152
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
153
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
154
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
155
|
+
</div></pre>
|
|
156
|
+
|
|
157
|
+
<p></div></p>
|
|
158
|
+
|
|
159
|
+
<pre> <div id="search-section" role="search" class="project-section initially-hidden">
|
|
160
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
161
|
+
<div id="search-field-wrapper">
|
|
162
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
163
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
164
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
165
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
166
|
+
</div>
|
|
167
|
+
|
|
168
|
+
<ul id="search-results" aria-label="Search Results"
|
|
169
|
+
aria-busy="false" aria-expanded="false"
|
|
170
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
171
|
+
</form></pre>
|
|
172
|
+
|
|
173
|
+
<p></div></p>
|
|
174
|
+
|
|
175
|
+
<pre></div></pre>
|
|
176
|
+
|
|
177
|
+
<p><div class=“nav-section”></p>
|
|
178
|
+
|
|
179
|
+
<pre><h3>Table of Contents</h3>
|
|
180
|
+
|
|
181
|
+
<ul class="link-list" role="directory">
|
|
182
|
+
<li><a href="#label-begin++">begin </a>
|
|
183
|
+
<li><a href="#label-end">end</a>
|
|
184
|
+
<li><a href="#label-begin++">begin </a>
|
|
185
|
+
<li><a href="#label-end">end</a>
|
|
186
|
+
<li><a href="#label-begin++">begin </a>
|
|
187
|
+
<li><a href="#label-end">end</a>
|
|
188
|
+
</ul></pre>
|
|
189
|
+
|
|
190
|
+
<p></div></p>
|
|
191
|
+
|
|
192
|
+
<pre><div id="project-metadata">
|
|
193
|
+
<div id="fileindex-section" class="nav-section">
|
|
194
|
+
<h3>Pages</h3>
|
|
195
|
+
|
|
196
|
+
<ul class="link-list">
|
|
197
|
+
|
|
198
|
+
<li><a href="./SeleccionSimple_rb~.html">SeleccionSimple.rb~</a>
|
|
199
|
+
|
|
200
|
+
<li><a href="./examen_rb~.html">examen.rb~</a>
|
|
201
|
+
|
|
202
|
+
<li><a href="./linkedlist_rb~.html">linkedlist.rb~</a>
|
|
203
|
+
|
|
204
|
+
</ul></pre>
|
|
205
|
+
|
|
206
|
+
<p></div></p>
|
|
207
|
+
|
|
208
|
+
<pre></div></pre>
|
|
209
|
+
|
|
210
|
+
<p></nav></p>
|
|
211
|
+
|
|
212
|
+
<p><main role=“main” aria-label=“Page SeleccionSimple.rb~”></p>
|
|
213
|
+
|
|
214
|
+
<p><p>class <a
|
|
215
|
+
href=“SeleccionSimple.html”>SeleccionSimple</a></p></p>
|
|
216
|
+
|
|
217
|
+
<p><pre class=“ruby”><span
|
|
218
|
+
class=“ruby-identifier”>attr_reader</span> :<span
|
|
219
|
+
class=“ruby-identifier”>pregunta</span>, :<span
|
|
220
|
+
class=“ruby-identifier”>respuesta</span>, :<span
|
|
221
|
+
class=“ruby-identifier”>nivel</span>, :<span
|
|
222
|
+
class=“ruby-identifier”>rescorr</span></p>
|
|
223
|
+
|
|
224
|
+
<p><span class=“ruby-identifier”>include</span> <span
|
|
225
|
+
class=“ruby-constant”>Comparable</span></p>
|
|
226
|
+
|
|
227
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
228
|
+
class=“ruby-identifier”>initialize</span>(<span
|
|
229
|
+
class=“ruby-identifier”>pregunta</span>,<span
|
|
230
|
+
class=“ruby-identifier”>respuesta</span>,<span
|
|
231
|
+
class=“ruby-identifier”>nivel</span>,<span
|
|
232
|
+
class=“ruby-identifier”>rescorr</span>)</p>
|
|
233
|
+
|
|
234
|
+
<pre><span class="ruby-ivar">@pregunta</span>=<span class="ruby-identifier">pregunta</span>
|
|
235
|
+
<span class="ruby-ivar">@respuesta</span>=<span class="ruby-identifier">respuesta</span>
|
|
236
|
+
<span class="ruby-ivar">@nivel</span>=<span class="ruby-identifier">nivel</span>
|
|
237
|
+
<span class="ruby-ivar">@rescorr</span>=<span class="ruby-identifier">rescorr</span></pre>
|
|
238
|
+
|
|
239
|
+
<p><span class=“ruby-keyword”>end</span></p>
|
|
240
|
+
|
|
241
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
242
|
+
class=“ruby-identifier”>to_s</span> <span
|
|
243
|
+
class=“ruby-comment”>#para respuestas de 4 opciones</span></p>
|
|
244
|
+
|
|
245
|
+
<pre><span class="ruby-node">&quot;#{@pregunta}\n a) #{@respuesta[0]}\n b) #{@respuesta[1]}\n c) #{@respuesta[2]}\n d) #{@respuesta[3]}\n&quot;</span></pre>
|
|
246
|
+
|
|
247
|
+
<p><span class=“ruby-keyword”>end</span></p>
|
|
248
|
+
|
|
249
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
250
|
+
class=“ruby-operator”>&lt;=&gt;</span>(<span
|
|
251
|
+
class=“ruby-identifier”>other</span>) </pre></p>
|
|
252
|
+
|
|
253
|
+
<p><h1 id=“label-begin++”>begin <span><a
|
|
254
|
+
href=“#label-begin++”>&para;</a> <a
|
|
255
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
256
|
+
|
|
257
|
+
<p><pre>for i in (0..3)</p>
|
|
258
|
+
|
|
259
|
+
<pre>respuesta_size += @respuesta[i].size
|
|
260
|
+
respuesta_other_size += other.respuesta[i].size</pre>
|
|
261
|
+
|
|
262
|
+
<p>end</pre></p>
|
|
263
|
+
|
|
264
|
+
<p><h1 id=“label-end”>end<span><a
|
|
265
|
+
href=“#label-end”>&para;</a> <a
|
|
266
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
267
|
+
|
|
268
|
+
<p><pre class=“ruby”> <span
|
|
269
|
+
class=“ruby-keyword”>return</span> <span
|
|
270
|
+
class=“ruby-keyword”>nil</span> <span
|
|
271
|
+
class=“ruby-keyword”>unless</span> <span
|
|
272
|
+
class=“ruby-identifier”>other</span>.<span
|
|
273
|
+
class=“ruby-identifier”>is_a?</span><span
|
|
274
|
+
class=“ruby-constant”>SeleccionSimple</span></p>
|
|
275
|
+
|
|
276
|
+
<pre><span class="ruby-ivar">@nivel</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">nivel</span>
|
|
277
|
+
<span class="ruby-comment">#@pregunta.size + respuesta_size &lt;=&gt; other.pregunta.size + respuesta_other_size</span></pre>
|
|
278
|
+
|
|
279
|
+
<p><span class=“ruby-keyword”>end</span></p>
|
|
280
|
+
|
|
281
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
282
|
+
class=“ruby-operator”>==</span>(<span
|
|
283
|
+
class=“ruby-identifier”>other</span>)</p>
|
|
284
|
+
|
|
285
|
+
<pre><span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span><span class="ruby-constant">SeleccionSimple</span>
|
|
286
|
+
<span class="ruby-keyword">if</span> <span class="ruby-ivar">@nivel</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">nivel</span>
|
|
287
|
+
<span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
|
|
288
|
+
<span class="ruby-keyword">end</span>
|
|
289
|
+
|
|
290
|
+
<span class="ruby-comment">#return nil unless other.is_a?SeleccionSimple</span>
|
|
291
|
+
<span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span></pre>
|
|
292
|
+
|
|
293
|
+
<p><span class=“ruby-keyword”>end</span> </pre></p>
|
|
294
|
+
|
|
295
|
+
<p><h1 id=“label-begin++”>begin <span><a
|
|
296
|
+
href=“#label-begin++”>&para;</a> <a
|
|
297
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
298
|
+
|
|
299
|
+
<p><pre class=“ruby”><span class=“ruby-keyword”>def</span>
|
|
300
|
+
<span class=“ruby-operator”>&lt;=</span>(<span
|
|
301
|
+
class=“ruby-identifier”>other</span>)</p>
|
|
302
|
+
|
|
303
|
+
<pre><span class="ruby-ivar">@pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;</span></pre>
|
|
304
|
+
|
|
305
|
+
<p><span class=“ruby-keyword”>end</span> </pre></p>
|
|
306
|
+
|
|
307
|
+
<p><h1 id=“label-end”>end<span><a
|
|
308
|
+
href=“#label-end”>&para;</a> <a
|
|
309
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
310
|
+
|
|
311
|
+
<p><p>end</p></p>
|
|
312
|
+
|
|
313
|
+
<p><p>class <a
|
|
314
|
+
href=“Verdadero_Falso.html”>Verdadero_Falso</a> &lt; <a
|
|
315
|
+
href=“SeleccionSimple.html”>SeleccionSimple</a></p></p>
|
|
316
|
+
|
|
317
|
+
<p><pre class=“ruby”><span class=“ruby-keyword”>def</span>
|
|
318
|
+
<span class=“ruby-identifier”>initialize</span>(<span
|
|
319
|
+
class=“ruby-identifier”>pregunta</span>,<span
|
|
320
|
+
class=“ruby-identifier”>nivel</span>,<span
|
|
321
|
+
class=“ruby-identifier”>rescorr</span>)</p>
|
|
322
|
+
|
|
323
|
+
<pre><span class="ruby-keyword">super</span>(<span class="ruby-identifier">pregunta</span>, [<span class="ruby-string">&#39;Cierto&#39;</span>,<span class="ruby-string">&#39;Falso&#39;</span>],<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)</pre>
|
|
324
|
+
|
|
325
|
+
<p><span class=“ruby-keyword”>end</span></p>
|
|
326
|
+
|
|
327
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
328
|
+
class=“ruby-identifier”>to_s</span></p>
|
|
329
|
+
|
|
330
|
+
<pre><span class="ruby-node">&quot;#{@pregunta}\n a) Cierto\n b) Falso\n&quot;</span></pre>
|
|
331
|
+
|
|
332
|
+
<p><span class=“ruby-keyword”>end</span> </pre></p>
|
|
333
|
+
|
|
334
|
+
<p><h1 id=“label-begin++”>begin <span><a
|
|
335
|
+
href=“#label-begin++”>&para;</a> <a
|
|
336
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
337
|
+
|
|
338
|
+
<p><pre class=“ruby”><span class=“ruby-keyword”>def</span>
|
|
339
|
+
<span class=“ruby-operator”>&lt;=&gt;</span>(<span
|
|
340
|
+
class=“ruby-identifier”>other</span>)</p>
|
|
341
|
+
|
|
342
|
+
<pre><span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">instance_of?</span><span class="ruby-constant">Verdadero_Falso</span>
|
|
343
|
+
<span class="ruby-ivar">@pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@respuesta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>.<span class="ruby-identifier">size</span></pre>
|
|
344
|
+
|
|
345
|
+
<p><span class=“ruby-keyword”>end</span></p>
|
|
346
|
+
|
|
347
|
+
<pre><span class="ruby-keyword">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
|
348
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">instance_of?</span><span class="ruby-constant">Verdadero_Falso</span>
|
|
349
|
+
<span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>
|
|
350
|
+
<span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
|
|
351
|
+
<span class="ruby-keyword">end</span></pre>
|
|
352
|
+
|
|
353
|
+
<p></pre></p>
|
|
354
|
+
|
|
355
|
+
<p><h1 id=“label-end”>end<span><a
|
|
356
|
+
href=“#label-end”>&para;</a> <a
|
|
357
|
+
href=“#documentation”>&uarr;</a></span></h1></p>
|
|
358
|
+
|
|
359
|
+
<p><p>end</p> </main></p>
|
|
360
|
+
|
|
361
|
+
<p><footer id=“validator-badges” role=“contentinfo”></p>
|
|
362
|
+
|
|
363
|
+
<pre><p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
364
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
365
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</pre>
|
|
366
|
+
|
|
367
|
+
<p></footer></p>
|
|
368
|
+
</main>
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<footer id="validator-badges" role="contentinfo">
|
|
373
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
374
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
375
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
376
|
+
</footer>
|
|
377
|
+
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>Verdadero_Falso.html - RDoc Documentation</title>
|
|
8
|
+
|
|
9
|
+
<link href="../fonts.css" rel="stylesheet">
|
|
10
|
+
<link href="../rdoc.css" rel="stylesheet">
|
|
11
|
+
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
var rdoc_rel_prefix = "../";
|
|
14
|
+
</script>
|
|
15
|
+
|
|
16
|
+
<script src="../js/jquery.js"></script>
|
|
17
|
+
<script src="../js/navigation.js"></script>
|
|
18
|
+
<script src="../js/search_index.js"></script>
|
|
19
|
+
<script src="../js/search.js"></script>
|
|
20
|
+
<script src="../js/searcher.js"></script>
|
|
21
|
+
<script src="../js/darkfish.js"></script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<body id="top" role="document" class="file">
|
|
25
|
+
<nav role="navigation">
|
|
26
|
+
<div id="project-navigation">
|
|
27
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
28
|
+
<h2>
|
|
29
|
+
<a href="../index.html" rel="home">Home</a>
|
|
30
|
+
</h2>
|
|
31
|
+
|
|
32
|
+
<div id="table-of-contents-navigation">
|
|
33
|
+
<a href="../table_of_contents.html#pages">Pages</a>
|
|
34
|
+
<a href="../table_of_contents.html#classes">Classes</a>
|
|
35
|
+
<a href="../table_of_contents.html#methods">Methods</a>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
|
40
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
41
|
+
<div id="search-field-wrapper">
|
|
42
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
43
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
44
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
45
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
46
|
+
</div>
|
|
47
|
+
|
|
48
|
+
<ul id="search-results" aria-label="Search Results"
|
|
49
|
+
aria-busy="false" aria-expanded="false"
|
|
50
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
51
|
+
</form>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<div id="project-metadata">
|
|
59
|
+
<div id="fileindex-section" class="nav-section">
|
|
60
|
+
<h3>Pages</h3>
|
|
61
|
+
|
|
62
|
+
<ul class="link-list">
|
|
63
|
+
|
|
64
|
+
<li><a href="../SeleccionSimple_rb~.html">SeleccionSimple.rb~</a>
|
|
65
|
+
|
|
66
|
+
<li><a href="../doc/Exam1_html.html">Exam1.html</a>
|
|
67
|
+
|
|
68
|
+
<li><a href="../doc/Examen_html.html">Examen.html</a>
|
|
69
|
+
|
|
70
|
+
<li><a href="../doc/Interfaz_html.html">Interfaz.html</a>
|
|
71
|
+
|
|
72
|
+
<li><a href="../doc/List_html.html">List.html</a>
|
|
73
|
+
|
|
74
|
+
<li><a href="../doc/Nodo_html.html">Nodo.html</a>
|
|
75
|
+
|
|
76
|
+
<li><a href="../doc/Object_html.html">Object.html</a>
|
|
77
|
+
|
|
78
|
+
<li><a href="../doc/SeleccionSimple_html.html">SeleccionSimple.html</a>
|
|
79
|
+
|
|
80
|
+
<li><a href="../doc/SeleccionSimple_rb~_html.html">SeleccionSimple_rb~.html</a>
|
|
81
|
+
|
|
82
|
+
<li><a href="../doc/Verdadero_Falso_html.html">Verdadero_Falso.html</a>
|
|
83
|
+
|
|
84
|
+
<li><a href="../doc/examen_rb~_html.html">examen_rb~.html</a>
|
|
85
|
+
|
|
86
|
+
<li><a href="../doc/fonts_css.html">fonts.css</a>
|
|
87
|
+
|
|
88
|
+
<li><a href="../doc/index_html.html">index.html</a>
|
|
89
|
+
|
|
90
|
+
<li><a href="../doc/js/darkfish_js.html">darkfish.js</a>
|
|
91
|
+
|
|
92
|
+
<li><a href="../doc/js/jquery_js.html">jquery.js</a>
|
|
93
|
+
|
|
94
|
+
<li><a href="../doc/js/navigation_js.html">navigation.js</a>
|
|
95
|
+
|
|
96
|
+
<li><a href="../doc/js/search_js.html">search.js</a>
|
|
97
|
+
|
|
98
|
+
<li><a href="../doc/js/search_index_js.html">search_index.js</a>
|
|
99
|
+
|
|
100
|
+
<li><a href="../doc/js/searcher_js.html">searcher.js</a>
|
|
101
|
+
|
|
102
|
+
<li><a href="../doc/linkedlist_rb~_html.html">linkedlist_rb~.html</a>
|
|
103
|
+
|
|
104
|
+
<li><a href="../doc/rdoc_css.html">rdoc.css</a>
|
|
105
|
+
|
|
106
|
+
<li><a href="../doc/table_of_contents_html.html">table_of_contents.html</a>
|
|
107
|
+
|
|
108
|
+
<li><a href="../examen_rb~.html">examen.rb~</a>
|
|
109
|
+
|
|
110
|
+
<li><a href="../linkedlist_rb~.html">linkedlist.rb~</a>
|
|
111
|
+
|
|
112
|
+
</ul>
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
</nav>
|
|
117
|
+
|
|
118
|
+
<main role="main" aria-label="Page doc/Verdadero_Falso.html">
|
|
119
|
+
|
|
120
|
+
<p><!DOCTYPE html></p>
|
|
121
|
+
|
|
122
|
+
<p><html> <head> <meta charset=“UTF-8”></p>
|
|
123
|
+
|
|
124
|
+
<p><title>class <a href="../Verdadero_Falso.html">Verdadero_Falso</a> -
|
|
125
|
+
RDoc Documentation</title></p>
|
|
126
|
+
|
|
127
|
+
<p><link href=“./fonts.css” rel=“stylesheet”> <link href=“./rdoc.css”
|
|
128
|
+
rel=“stylesheet”></p>
|
|
129
|
+
|
|
130
|
+
<p><script type=“text/javascript”></p>
|
|
131
|
+
|
|
132
|
+
<pre>var rdoc_rel_prefix = "./";</pre>
|
|
133
|
+
|
|
134
|
+
<p></script></p>
|
|
135
|
+
|
|
136
|
+
<p><script src=“./js/jquery.js”></script> <script
|
|
137
|
+
src=“./js/navigation.js”></script> <script
|
|
138
|
+
src=“./js/search_index.js”></script> <script
|
|
139
|
+
src=“./js/search.js”></script> <script
|
|
140
|
+
src=“./js/searcher.js”></script> <script
|
|
141
|
+
src=“./js/darkfish.js”></script></p>
|
|
142
|
+
|
|
143
|
+
<p><body id=“top” role=“document” class=“class”> <nav
|
|
144
|
+
role=“navigation”></p>
|
|
145
|
+
|
|
146
|
+
<pre><div id="project-navigation">
|
|
147
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
|
148
|
+
<h2>
|
|
149
|
+
<a href="./index.html" rel="home">Home</a>
|
|
150
|
+
</h2>
|
|
151
|
+
|
|
152
|
+
<div id="table-of-contents-navigation">
|
|
153
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
|
154
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
|
155
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
|
156
|
+
</div></pre>
|
|
157
|
+
|
|
158
|
+
<p></div></p>
|
|
159
|
+
|
|
160
|
+
<pre> <div id="search-section" role="search" class="project-section initially-hidden">
|
|
161
|
+
<form action="#" method="get" accept-charset="utf-8">
|
|
162
|
+
<div id="search-field-wrapper">
|
|
163
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
|
164
|
+
aria-autocomplete="list" aria-controls="search-results"
|
|
165
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
|
166
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
|
167
|
+
</div>
|
|
168
|
+
|
|
169
|
+
<ul id="search-results" aria-label="Search Results"
|
|
170
|
+
aria-busy="false" aria-expanded="false"
|
|
171
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
|
172
|
+
</form></pre>
|
|
173
|
+
|
|
174
|
+
<p></div></p>
|
|
175
|
+
|
|
176
|
+
<pre></div>
|
|
177
|
+
|
|
178
|
+
<div id="class-metadata">
|
|
179
|
+
|
|
180
|
+
<div id="parent-class-section" class="nav-section">
|
|
181
|
+
<h3>Parent</h3>
|
|
182
|
+
|
|
183
|
+
<p class="link"><a href="SeleccionSimple.html">SeleccionSimple</a></pre>
|
|
184
|
+
|
|
185
|
+
<p></div></p>
|
|
186
|
+
|
|
187
|
+
<pre><!-- Method Quickref --></pre>
|
|
188
|
+
|
|
189
|
+
<p><div id=“method-list-section” class=“nav-section”></p>
|
|
190
|
+
|
|
191
|
+
<pre><h3>Methods</h3>
|
|
192
|
+
|
|
193
|
+
<ul class="link-list" role="directory">
|
|
194
|
+
|
|
195
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
|
196
|
+
|
|
197
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
|
198
|
+
|
|
199
|
+
</ul></pre>
|
|
200
|
+
|
|
201
|
+
<p></div></p>
|
|
202
|
+
|
|
203
|
+
<pre></div></pre>
|
|
204
|
+
|
|
205
|
+
<p></nav></p>
|
|
206
|
+
|
|
207
|
+
<p><main role=“main” aria-labelledby=“class-Verdadero_Falso”></p>
|
|
208
|
+
|
|
209
|
+
<pre class="ruby"><span class="ruby-operator"><</span><span class="ruby-identifier">h1</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"class-Verdadero_Falso"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"class"</span><span class="ruby-operator">></span>
|
|
210
|
+
<span class="ruby-keyword">class</span> <span class="ruby-constant">Verdadero_Falso</span>
|
|
211
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/h1>
|
|
212
|
+
|
|
213
|
+
<section class="description">
|
|
214
|
+
|
|
215
|
+
</se</span><span class="ruby-identifier">ction</span><span class="ruby-operator">></span>
|
|
216
|
+
|
|
217
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">section</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"5Buntitled-5D"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"documentation-section"</span><span class="ruby-operator">></span>
|
|
218
|
+
|
|
219
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">section</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"public-class-5Buntitled-5D-method-details"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-section"</span><span class="ruby-operator">></span>
|
|
220
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">header</span><span class="ruby-operator">></span>
|
|
221
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">h3</span><span class="ruby-operator">></span><span class="ruby-constant">Public</span> <span class="ruby-constant">Class</span> <span class="ruby-constant">Methods</span><span class="ruby-operator"><</span><span class="ruby-regexp">/h3>
|
|
222
|
+
</</span><span class="ruby-identifier">header</span><span class="ruby-operator">></span>
|
|
223
|
+
|
|
224
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"method-c-new"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-detail "</span><span class="ruby-operator">></span>
|
|
225
|
+
|
|
226
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-heading"</span><span class="ruby-operator">></span>
|
|
227
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">span</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-name"</span><span class="ruby-operator">></span><span class="ruby-identifier">new</span><span class="ruby-operator"><</span><span class="ruby-regexp">/span><span
|
|
228
|
+
class="method-args">(pregunta,nivel,rescorr)</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span>
|
|
229
|
+
|
|
230
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">span</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-click-advice"</span><span class="ruby-operator">></span><span class="ruby-identifier">click</span> <span class="ruby-identifier">to</span> <span class="ruby-identifier">toggle</span> <span class="ruby-identifier">source</span><span class="ruby-operator"><</span><span class="ruby-regexp">/span>
|
|
231
|
+
|
|
232
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
233
|
+
|
|
234
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-description"</span><span class="ruby-operator">></span>
|
|
235
|
+
|
|
236
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-calls-super"</span><span class="ruby-operator">></span>
|
|
237
|
+
<span class="ruby-constant">Calls</span> <span class="ruby-identifier">superclass</span> <span class="ruby-identifier">method</span>
|
|
238
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">a</span> <span class="ruby-identifier">href</span>=<span class="ruby-node">"SeleccionSimple.html#method-c-new"</span><span class="ruby-operator">></span><span class="ruby-constant">SeleccionSimple</span>.<span class="ruby-identifier">new</span><span class="ruby-operator"><</span><span class="ruby-regexp">/a>
|
|
239
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
240
|
+
|
|
241
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-source-code"</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"new-source"</span><span class="ruby-operator">></span>
|
|
242
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">pre</span><span class="ruby-operator">></span><span class="ruby-operator"><</span><span class="ruby-identifier">span</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"ruby-comment"</span><span class="ruby-operator">></span><span class="ruby-comment"># File SeleccionSimple.rb, line 60</span></span>
|
|
243
|
+
</pre>
|
|
244
|
+
|
|
245
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
246
|
+
class=“ruby-identifier”>initialize</span>(<span
|
|
247
|
+
class=“ruby-identifier”>pregunta</span>,<span
|
|
248
|
+
class=“ruby-identifier”>nivel</span>,<span
|
|
249
|
+
class=“ruby-identifier”>rescorr</span>)</p>
|
|
250
|
+
|
|
251
|
+
<pre><span class="ruby-keyword">super</span>(<span class="ruby-identifier">pregunta</span>, [<span class="ruby-string">&#39;Cierto&#39;</span>,<span class="ruby-string">&#39;Falso&#39;</span>],<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)</pre>
|
|
252
|
+
|
|
253
|
+
<p><span class=“ruby-keyword”>end</span></pre></p>
|
|
254
|
+
|
|
255
|
+
<pre> </div>
|
|
256
|
+
|
|
257
|
+
</div>
|
|
258
|
+
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
</section>
|
|
262
|
+
|
|
263
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
264
|
+
<header>
|
|
265
|
+
<h3>Public Instance Methods</h3>
|
|
266
|
+
</header>
|
|
267
|
+
|
|
268
|
+
<div id="method-i-to_s" class="method-detail ">
|
|
269
|
+
|
|
270
|
+
<div class="method-heading">
|
|
271
|
+
<span class="method-name">to_s</span><span
|
|
272
|
+
class="method-args">()</span>
|
|
273
|
+
|
|
274
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
275
|
+
|
|
276
|
+
</div>
|
|
277
|
+
|
|
278
|
+
<div class="method-description">
|
|
279
|
+
|
|
280
|
+
<div class="method-source-code" id="to_s-source">
|
|
281
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 66</span></pre>
|
|
282
|
+
|
|
283
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
284
|
+
class=“ruby-identifier”>to_s</span></p>
|
|
285
|
+
|
|
286
|
+
<pre><span class="ruby-node">&quot;#{@pregunta}\n a) Cierto\n b) Falso\n&quot;</span></pre>
|
|
287
|
+
|
|
288
|
+
<p><span class=“ruby-keyword”>end</span></pre></p>
|
|
289
|
+
|
|
290
|
+
<pre> </div>
|
|
291
|
+
|
|
292
|
+
</div>
|
|
293
|
+
|
|
294
|
+
</div>
|
|
295
|
+
|
|
296
|
+
</section>
|
|
297
|
+
|
|
298
|
+
</section></pre>
|
|
299
|
+
|
|
300
|
+
<p></main></p>
|
|
301
|
+
|
|
302
|
+
<p><footer id=“validator-badges” role=“contentinfo”></p>
|
|
303
|
+
|
|
304
|
+
<pre><p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
305
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
306
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</pre>
|
|
307
|
+
|
|
308
|
+
<p></footer></p>
|
|
309
|
+
</main>
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
<footer id="validator-badges" role="contentinfo">
|
|
314
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
315
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
316
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
317
|
+
</footer>
|
|
318
|
+
|