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,454 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>SeleccionSimple.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.html">
|
|
119
|
+
|
|
120
|
+
<p><!DOCTYPE html></p>
|
|
121
|
+
|
|
122
|
+
<p><html> <head> <meta charset=“UTF-8”></p>
|
|
123
|
+
|
|
124
|
+
<p><title>class <a href="../SeleccionSimple.html">SeleccionSimple</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="Object.html">Object</a></pre>
|
|
184
|
+
|
|
185
|
+
<p></div></p>
|
|
186
|
+
|
|
187
|
+
<pre> <div id="includes-section" class="nav-section">
|
|
188
|
+
<h3>Included Modules</h3>
|
|
189
|
+
|
|
190
|
+
<ul class="link-list">
|
|
191
|
+
|
|
192
|
+
<li><span class="include">Comparable</span>
|
|
193
|
+
|
|
194
|
+
</ul></pre>
|
|
195
|
+
|
|
196
|
+
<p></div></p>
|
|
197
|
+
|
|
198
|
+
<pre><!-- Method Quickref --></pre>
|
|
199
|
+
|
|
200
|
+
<p><div id=“method-list-section” class=“nav-section”></p>
|
|
201
|
+
|
|
202
|
+
<pre><h3>Methods</h3>
|
|
203
|
+
|
|
204
|
+
<ul class="link-list" role="directory">
|
|
205
|
+
|
|
206
|
+
<li ><a href="#method-c-new">::new</a>
|
|
207
|
+
|
|
208
|
+
<li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
|
|
209
|
+
|
|
210
|
+
<li ><a href="#method-i-3D-3D">#==</a>
|
|
211
|
+
|
|
212
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
|
213
|
+
|
|
214
|
+
</ul></pre>
|
|
215
|
+
|
|
216
|
+
<p></div></p>
|
|
217
|
+
|
|
218
|
+
<pre></div></pre>
|
|
219
|
+
|
|
220
|
+
<p></nav></p>
|
|
221
|
+
|
|
222
|
+
<p><main role=“main” aria-labelledby=“class-SeleccionSimple”></p>
|
|
223
|
+
|
|
224
|
+
<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-SeleccionSimple"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"class"</span><span class="ruby-operator">></span>
|
|
225
|
+
<span class="ruby-keyword">class</span> <span class="ruby-constant">SeleccionSimple</span>
|
|
226
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/h1>
|
|
227
|
+
|
|
228
|
+
<section class="description">
|
|
229
|
+
|
|
230
|
+
</se</span><span class="ruby-identifier">ction</span><span class="ruby-operator">></span>
|
|
231
|
+
|
|
232
|
+
<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>
|
|
233
|
+
|
|
234
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">section</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"attribute-method-details"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-section"</span><span class="ruby-operator">></span>
|
|
235
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">header</span><span class="ruby-operator">></span>
|
|
236
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">h3</span><span class="ruby-operator">></span><span class="ruby-constant">Attributes</span><span class="ruby-operator"><</span><span class="ruby-regexp">/h3>
|
|
237
|
+
</</span><span class="ruby-identifier">header</span><span class="ruby-operator">></span>
|
|
238
|
+
|
|
239
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"attribute-i-nivel"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-detail"</span><span class="ruby-operator">></span>
|
|
240
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-heading attribute-method-heading"</span><span class="ruby-operator">></span>
|
|
241
|
+
<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">nivel</span><span class="ruby-operator"><</span><span class="ruby-regexp">/span><span
|
|
242
|
+
class="attribute-access-type">[R]</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span>
|
|
243
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
244
|
+
|
|
245
|
+
<div class="method-description">
|
|
246
|
+
|
|
247
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
248
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
249
|
+
|
|
250
|
+
<div id="attribute-i-pregunta" class="method-detail">
|
|
251
|
+
<div class="method-heading attribute-method-heading">
|
|
252
|
+
<span class="method-name">pregunta</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span><span class="ruby-operator"><</span><span class="ruby-identifier">span</span>
|
|
253
|
+
<span class="ruby-identifier">class</span>=<span class="ruby-string">"attribute-access-type"</span><span class="ruby-operator">></span>[<span class="ruby-constant">R</span>]<span class="ruby-operator"><</span><span class="ruby-regexp">/span>
|
|
254
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
255
|
+
|
|
256
|
+
<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>
|
|
257
|
+
|
|
258
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
259
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
260
|
+
|
|
261
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">id</span>=<span class="ruby-string">"attribute-i-rescorr"</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-detail"</span><span class="ruby-operator">></span>
|
|
262
|
+
<span class="ruby-operator"><</span><span class="ruby-identifier">div</span> <span class="ruby-identifier">class</span>=<span class="ruby-string">"method-heading attribute-method-heading"</span><span class="ruby-operator">></span>
|
|
263
|
+
<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">rescorr</span><span class="ruby-operator"><</span><span class="ruby-regexp">/span><span
|
|
264
|
+
class="attribute-access-type">[R]</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span>
|
|
265
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
266
|
+
|
|
267
|
+
<div class="method-description">
|
|
268
|
+
|
|
269
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
270
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
271
|
+
|
|
272
|
+
<div id="attribute-i-respuesta" class="method-detail">
|
|
273
|
+
<div class="method-heading attribute-method-heading">
|
|
274
|
+
<span class="method-name">respuesta</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span><span class="ruby-operator"><</span><span class="ruby-identifier">span</span>
|
|
275
|
+
<span class="ruby-identifier">class</span>=<span class="ruby-string">"attribute-access-type"</span><span class="ruby-operator">></span>[<span class="ruby-constant">R</span>]<span class="ruby-operator"><</span><span class="ruby-regexp">/span>
|
|
276
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
277
|
+
|
|
278
|
+
<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>
|
|
279
|
+
|
|
280
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/div>
|
|
281
|
+
</</span><span class="ruby-identifier">div</span><span class="ruby-operator">></span>
|
|
282
|
+
|
|
283
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/section>
|
|
284
|
+
|
|
285
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
286
|
+
<header>
|
|
287
|
+
<h3>Public Class Methods</</span><span class="ruby-identifier">h3</span><span class="ruby-operator">></span>
|
|
288
|
+
<span class="ruby-operator"><</span><span class="ruby-regexp">/header>
|
|
289
|
+
|
|
290
|
+
<div id="method-c-new" class="method-detail ">
|
|
291
|
+
|
|
292
|
+
<div class="method-heading">
|
|
293
|
+
<span class="method-name">new</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span><span class="ruby-operator"><</span><span class="ruby-identifier">span</span>
|
|
294
|
+
<span class="ruby-identifier">class</span>=<span class="ruby-string">"method-args"</span><span class="ruby-operator">></span>(<span class="ruby-identifier">pregunta</span>,<span class="ruby-identifier">respuesta</span>,<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)<span class="ruby-operator"><</span><span class="ruby-regexp">/span>
|
|
295
|
+
|
|
296
|
+
<span class="method-click-advice">click to toggle source</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span>
|
|
297
|
+
|
|
298
|
+
<span class="ruby-operator"><</span><span class="ruby-node">/div>
|
|
299
|
+
|
|
300
|
+
<div class="method-description">
|
|
301
|
+
|
|
302
|
+
<div class="method-source-code" id="new-source">
|
|
303
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 8</s</span><span class="ruby-identifier">pan</span><span class="ruby-operator">></span>
|
|
304
|
+
</pre>
|
|
305
|
+
|
|
306
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
307
|
+
class=“ruby-identifier”>initialize</span>(<span
|
|
308
|
+
class=“ruby-identifier”>pregunta</span>,<span
|
|
309
|
+
class=“ruby-identifier”>respuesta</span>,<span
|
|
310
|
+
class=“ruby-identifier”>nivel</span>,<span
|
|
311
|
+
class=“ruby-identifier”>rescorr</span>)</p>
|
|
312
|
+
|
|
313
|
+
<pre><span class="ruby-ivar">@pregunta</span>=<span class="ruby-identifier">pregunta</span>
|
|
314
|
+
<span class="ruby-ivar">@respuesta</span>=<span class="ruby-identifier">respuesta</span>
|
|
315
|
+
<span class="ruby-ivar">@nivel</span>=<span class="ruby-identifier">nivel</span>
|
|
316
|
+
<span class="ruby-ivar">@rescorr</span>=<span class="ruby-identifier">rescorr</span></pre>
|
|
317
|
+
|
|
318
|
+
<p><span class=“ruby-keyword”>end</span></pre></p>
|
|
319
|
+
|
|
320
|
+
<pre> </div>
|
|
321
|
+
|
|
322
|
+
</div>
|
|
323
|
+
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
</section>
|
|
327
|
+
|
|
328
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
329
|
+
<header>
|
|
330
|
+
<h3>Public Instance Methods</h3>
|
|
331
|
+
</header>
|
|
332
|
+
|
|
333
|
+
<div id="method-i-3C-3D-3E" class="method-detail ">
|
|
334
|
+
|
|
335
|
+
<div class="method-heading">
|
|
336
|
+
<span class="method-name">&lt;=&gt;</span><span
|
|
337
|
+
class="method-args">(other)</span>
|
|
338
|
+
|
|
339
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
340
|
+
|
|
341
|
+
</div>
|
|
342
|
+
|
|
343
|
+
<div class="method-description">
|
|
344
|
+
|
|
345
|
+
<div class="method-source-code" id="3C-3D-3E-source">
|
|
346
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 21</span>
|
|
347
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)</pre>
|
|
348
|
+
|
|
349
|
+
<p><span class=“ruby-comment”> for i in (0..3)</p>
|
|
350
|
+
|
|
351
|
+
<pre> respuesta_size += @respuesta[i].size
|
|
352
|
+
respuesta_other_size += other.respuesta[i].size
|
|
353
|
+
end</pre>
|
|
354
|
+
|
|
355
|
+
<p></span></p>
|
|
356
|
+
|
|
357
|
+
<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>
|
|
358
|
+
<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>
|
|
359
|
+
<span class="ruby-comment">#@pregunta.size + respuesta_size &lt;=&gt; other.pregunta.size + respuesta_other_size</span>
|
|
360
|
+
|
|
361
|
+
<span class="ruby-keyword">end</span></pre>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
</div>
|
|
365
|
+
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
<div id="method-i-3D-3D" class="method-detail ">
|
|
369
|
+
|
|
370
|
+
<div class="method-heading">
|
|
371
|
+
<span class="method-name">==</span><span
|
|
372
|
+
class="method-args">(other)</span>
|
|
373
|
+
|
|
374
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
375
|
+
|
|
376
|
+
</div>
|
|
377
|
+
|
|
378
|
+
<div class="method-description">
|
|
379
|
+
|
|
380
|
+
<div class="method-source-code" id="3D-3D-source">
|
|
381
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 36</span></pre>
|
|
382
|
+
|
|
383
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
384
|
+
class=“ruby-operator”>==</span>(<span
|
|
385
|
+
class=“ruby-identifier”>other</span>)</p>
|
|
386
|
+
|
|
387
|
+
<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>
|
|
388
|
+
<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>
|
|
389
|
+
<span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
|
|
390
|
+
<span class="ruby-keyword">end</span>
|
|
391
|
+
|
|
392
|
+
<span class="ruby-comment">#return nil unless other.is_a?SeleccionSimple</span>
|
|
393
|
+
<span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span></pre>
|
|
394
|
+
|
|
395
|
+
<p><span class=“ruby-keyword”>end</span></pre></p>
|
|
396
|
+
|
|
397
|
+
<pre> </div>
|
|
398
|
+
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
</div>
|
|
402
|
+
|
|
403
|
+
<div id="method-i-to_s" class="method-detail ">
|
|
404
|
+
|
|
405
|
+
<div class="method-heading">
|
|
406
|
+
<span class="method-name">to_s</span><span
|
|
407
|
+
class="method-args">()</span>
|
|
408
|
+
|
|
409
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
410
|
+
|
|
411
|
+
</div>
|
|
412
|
+
|
|
413
|
+
<div class="method-description">
|
|
414
|
+
|
|
415
|
+
<div class="method-source-code" id="to_s-source">
|
|
416
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 16</span></pre>
|
|
417
|
+
|
|
418
|
+
<p><span class=“ruby-keyword”>def</span> <span
|
|
419
|
+
class=“ruby-identifier”>to_s</span> <span
|
|
420
|
+
class=“ruby-comment”>#para respuestas de 4 opciones</span></p>
|
|
421
|
+
|
|
422
|
+
<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>
|
|
423
|
+
|
|
424
|
+
<p><span class=“ruby-keyword”>end</span></pre></p>
|
|
425
|
+
|
|
426
|
+
<pre> </div>
|
|
427
|
+
|
|
428
|
+
</div>
|
|
429
|
+
|
|
430
|
+
</div>
|
|
431
|
+
|
|
432
|
+
</section>
|
|
433
|
+
|
|
434
|
+
</section></pre>
|
|
435
|
+
|
|
436
|
+
<p></main></p>
|
|
437
|
+
|
|
438
|
+
<p><footer id=“validator-badges” role=“contentinfo”></p>
|
|
439
|
+
|
|
440
|
+
<pre><p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
441
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
442
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.</pre>
|
|
443
|
+
|
|
444
|
+
<p></footer></p>
|
|
445
|
+
</main>
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
<footer id="validator-badges" role="contentinfo">
|
|
450
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
451
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
452
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
453
|
+
</footer>
|
|
454
|
+
|