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.
Files changed (143) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.coveralls.yml~ +0 -0
  4. data/.gitignore +14 -0
  5. data/.rspec +2 -0
  6. data/.travis.yml +4 -0
  7. data/.travis.yml~ +0 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +38 -0
  11. data/Rakefile +18 -0
  12. data/exam1.gemspec +30 -0
  13. data/exam1.gemspec~ +23 -0
  14. data/lib/exam1.rb +9 -0
  15. data/lib/exam1/SeleccionSimple.rb +86 -0
  16. data/lib/exam1/SeleccionSimple.rb~ +86 -0
  17. data/lib/exam1/doc/Exam1.html +112 -0
  18. data/lib/exam1/doc/Examen.html +484 -0
  19. data/lib/exam1/doc/Interfaz.html +384 -0
  20. data/lib/exam1/doc/List.html +467 -0
  21. data/lib/exam1/doc/Nodo.html +167 -0
  22. data/lib/exam1/doc/Object.html +119 -0
  23. data/lib/exam1/doc/SeleccionSimple.html +361 -0
  24. data/lib/exam1/doc/SeleccionSimple_rb~.html +237 -0
  25. data/lib/exam1/doc/Verdadero_Falso.html +208 -0
  26. data/lib/exam1/doc/created.rid +60 -0
  27. data/lib/exam1/doc/doc/Exam1_html.html +230 -0
  28. data/lib/exam1/doc/doc/Examen_html.html +556 -0
  29. data/lib/exam1/doc/doc/Interfaz_html.html +468 -0
  30. data/lib/exam1/doc/doc/List_html.html +531 -0
  31. data/lib/exam1/doc/doc/Nodo_html.html +285 -0
  32. data/lib/exam1/doc/doc/Object_html.html +237 -0
  33. data/lib/exam1/doc/doc/SeleccionSimple_html.html +454 -0
  34. data/lib/exam1/doc/doc/SeleccionSimple_rb~_html.html +377 -0
  35. data/lib/exam1/doc/doc/Verdadero_Falso_html.html +318 -0
  36. data/lib/exam1/doc/doc/examen_rb~_html.html +425 -0
  37. data/lib/exam1/doc/doc/fonts_css.html +307 -0
  38. data/lib/exam1/doc/doc/index_html.html +241 -0
  39. data/lib/exam1/doc/doc/js/darkfish_js.html +286 -0
  40. data/lib/exam1/doc/doc/js/jquery_js.html +1450 -0
  41. data/lib/exam1/doc/doc/js/navigation_js.html +271 -0
  42. data/lib/exam1/doc/doc/js/search_index_js.html +177 -0
  43. data/lib/exam1/doc/doc/js/search_js.html +240 -0
  44. data/lib/exam1/doc/doc/js/searcher_js.html +358 -0
  45. data/lib/exam1/doc/doc/linkedlist_rb~_html.html +345 -0
  46. data/lib/exam1/doc/doc/rdoc_css.html +844 -0
  47. data/lib/exam1/doc/doc/table_of_contents_html.html +352 -0
  48. data/lib/exam1/doc/examen_rb~.html +300 -0
  49. data/lib/exam1/doc/fonts.css +167 -0
  50. data/lib/exam1/doc/fonts/Lato-Light.ttf +0 -0
  51. data/lib/exam1/doc/fonts/Lato-LightItalic.ttf +0 -0
  52. data/lib/exam1/doc/fonts/Lato-Regular.ttf +0 -0
  53. data/lib/exam1/doc/fonts/Lato-RegularItalic.ttf +0 -0
  54. data/lib/exam1/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  55. data/lib/exam1/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  56. data/lib/exam1/doc/images/add.png +0 -0
  57. data/lib/exam1/doc/images/arrow_up.png +0 -0
  58. data/lib/exam1/doc/images/brick.png +0 -0
  59. data/lib/exam1/doc/images/brick_link.png +0 -0
  60. data/lib/exam1/doc/images/bug.png +0 -0
  61. data/lib/exam1/doc/images/bullet_black.png +0 -0
  62. data/lib/exam1/doc/images/bullet_toggle_minus.png +0 -0
  63. data/lib/exam1/doc/images/bullet_toggle_plus.png +0 -0
  64. data/lib/exam1/doc/images/date.png +0 -0
  65. data/lib/exam1/doc/images/delete.png +0 -0
  66. data/lib/exam1/doc/images/find.png +0 -0
  67. data/lib/exam1/doc/images/loadingAnimation.gif +0 -0
  68. data/lib/exam1/doc/images/macFFBgHack.png +0 -0
  69. data/lib/exam1/doc/images/package.png +0 -0
  70. data/lib/exam1/doc/images/page_green.png +0 -0
  71. data/lib/exam1/doc/images/page_white_text.png +0 -0
  72. data/lib/exam1/doc/images/page_white_width.png +0 -0
  73. data/lib/exam1/doc/images/plugin.png +0 -0
  74. data/lib/exam1/doc/images/ruby.png +0 -0
  75. data/lib/exam1/doc/images/tag_blue.png +0 -0
  76. data/lib/exam1/doc/images/tag_green.png +0 -0
  77. data/lib/exam1/doc/images/transparent.png +0 -0
  78. data/lib/exam1/doc/images/wrench.png +0 -0
  79. data/lib/exam1/doc/images/wrench_orange.png +0 -0
  80. data/lib/exam1/doc/images/zoom.png +0 -0
  81. data/lib/exam1/doc/index.html +152 -0
  82. data/lib/exam1/doc/js/darkfish.js +140 -0
  83. data/lib/exam1/doc/js/jquery.js +18 -0
  84. data/lib/exam1/doc/js/navigation.js +142 -0
  85. data/lib/exam1/doc/js/search.js +109 -0
  86. data/lib/exam1/doc/js/search_index.js +1 -0
  87. data/lib/exam1/doc/js/searcher.js +228 -0
  88. data/lib/exam1/doc/linkedlist_rb~.html +238 -0
  89. data/lib/exam1/doc/rdoc.css +580 -0
  90. data/lib/exam1/doc/table_of_contents.html +288 -0
  91. data/lib/exam1/examen.rb +178 -0
  92. data/lib/exam1/examen.rb~ +178 -0
  93. data/lib/exam1/linkedlist.rb +129 -0
  94. data/lib/exam1/linkedlist.rb~ +134 -0
  95. data/lib/exam1/version.rb +3 -0
  96. data/spec/.yardoc/checksums +0 -0
  97. data/spec/.yardoc/object_types +0 -0
  98. data/spec/.yardoc/objects/root.dat +0 -0
  99. data/spec/.yardoc/proxy_types +0 -0
  100. data/spec/doc/_index.html +88 -0
  101. data/spec/doc/class_list.html +58 -0
  102. data/spec/doc/created.rid +3 -0
  103. data/spec/doc/css/common.css +1 -0
  104. data/spec/doc/css/full_list.css +57 -0
  105. data/spec/doc/css/style.css +339 -0
  106. data/spec/doc/file_list.html +57 -0
  107. data/spec/doc/frames.html +26 -0
  108. data/spec/doc/images/brick.png +0 -0
  109. data/spec/doc/images/brick_link.png +0 -0
  110. data/spec/doc/images/bug.png +0 -0
  111. data/spec/doc/images/bullet_black.png +0 -0
  112. data/spec/doc/images/bullet_toggle_minus.png +0 -0
  113. data/spec/doc/images/bullet_toggle_plus.png +0 -0
  114. data/spec/doc/images/date.png +0 -0
  115. data/spec/doc/images/find.png +0 -0
  116. data/spec/doc/images/loadingAnimation.gif +0 -0
  117. data/spec/doc/images/macFFBgHack.png +0 -0
  118. data/spec/doc/images/package.png +0 -0
  119. data/spec/doc/images/page_green.png +0 -0
  120. data/spec/doc/images/page_white_text.png +0 -0
  121. data/spec/doc/images/page_white_width.png +0 -0
  122. data/spec/doc/images/plugin.png +0 -0
  123. data/spec/doc/images/ruby.png +0 -0
  124. data/spec/doc/images/tag_green.png +0 -0
  125. data/spec/doc/images/wrench.png +0 -0
  126. data/spec/doc/images/wrench_orange.png +0 -0
  127. data/spec/doc/images/zoom.png +0 -0
  128. data/spec/doc/index.html +88 -0
  129. data/spec/doc/js/app.js +219 -0
  130. data/spec/doc/js/darkfish.js +118 -0
  131. data/spec/doc/js/full_list.js +181 -0
  132. data/spec/doc/js/jquery.js +4 -0
  133. data/spec/doc/js/quicksearch.js +114 -0
  134. data/spec/doc/js/thickbox-compressed.js +10 -0
  135. data/spec/doc/linkedlist_spec_rb.html +56 -0
  136. data/spec/doc/method_list.html +57 -0
  137. data/spec/doc/rdoc.css +763 -0
  138. data/spec/doc/spec_helper_rb.html +54 -0
  139. data/spec/doc/top-level-namespace.html +102 -0
  140. data/spec/linkedlist_spec.rb +449 -0
  141. data/spec/linkedlist_spec.rb~ +449 -0
  142. data/spec/spec_helper.rb +28 -0
  143. metadata +331 -0
@@ -0,0 +1,271 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>navigation.js - 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/js/navigation.js">
119
+
120
+ <pre>Navigation allows movement using the arrow keys through the search results.
121
+
122
+ When using this library you will need to set scrollIntoView to the
123
+ appropriate function for your layout. Use scrollInWindow if the container
124
+ is not scrollable and scrollInElement if the container is a separate
125
+ scrolling region.</pre>
126
+
127
+ <p>Navigation = new function() {</p>
128
+
129
+ <pre>this.initNavigation = function() {
130
+ var _this = this;
131
+
132
+ $(document).keydown(function(e) {
133
+ _this.onkeydown(e);
134
+ }).keyup(function(e) {
135
+ _this.onkeyup(e);
136
+ });
137
+
138
+ this.navigationActive = true;
139
+ }
140
+
141
+ this.setNavigationActive = function(state) {
142
+ this.navigationActive = state;
143
+ this.clearMoveTimeout();
144
+ }
145
+
146
+ this.onkeyup = function(e) {
147
+ if (!this.navigationActive) return;
148
+
149
+ switch(e.keyCode) {
150
+ case 37: //Event.KEY_LEFT:
151
+ case 38: //Event.KEY_UP:
152
+ case 39: //Event.KEY_RIGHT:
153
+ case 40: //Event.KEY_DOWN:
154
+ this.clearMoveTimeout();
155
+ break;
156
+ }
157
+ }
158
+
159
+ this.onkeydown = function(e) {
160
+ if (!this.navigationActive) return;
161
+ switch(e.keyCode) {
162
+ case 37: //Event.KEY_LEFT:
163
+ if (this.moveLeft()) e.preventDefault();
164
+ break;
165
+ case 38: //Event.KEY_UP:
166
+ if (e.keyCode == 38 || e.ctrlKey) {
167
+ if (this.moveUp()) e.preventDefault();
168
+ this.startMoveTimeout(false);
169
+ }
170
+ break;
171
+ case 39: //Event.KEY_RIGHT:
172
+ if (this.moveRight()) e.preventDefault();
173
+ break;
174
+ case 40: //Event.KEY_DOWN:
175
+ if (e.keyCode == 40 || e.ctrlKey) {
176
+ if (this.moveDown()) e.preventDefault();
177
+ this.startMoveTimeout(true);
178
+ }
179
+ break;
180
+ case 13: //Event.KEY_RETURN:
181
+ if (this.$current)
182
+ e.preventDefault();
183
+ this.select(this.$current);
184
+ break;
185
+ }
186
+ if (e.ctrlKey &amp;&amp; e.shiftKey) this.select(this.$current);
187
+ }
188
+
189
+ this.clearMoveTimeout = function() {
190
+ clearTimeout(this.moveTimeout);
191
+ this.moveTimeout = null;
192
+ }
193
+
194
+ this.startMoveTimeout = function(isDown) {
195
+ if (!$.browser.mozilla &amp;&amp; !$.browser.opera) return;
196
+ if (this.moveTimeout) this.clearMoveTimeout();
197
+ var _this = this;
198
+
199
+ var go = function() {
200
+ if (!_this.moveTimeout) return;
201
+ _this[isDown ? &#39;moveDown&#39; : &#39;moveUp&#39;]();
202
+ _this.moveTimout = setTimeout(go, 100);
203
+ }
204
+ this.moveTimeout = setTimeout(go, 200);
205
+ }
206
+
207
+ this.moveRight = function() {
208
+ }
209
+
210
+ this.moveLeft = function() {
211
+ }
212
+
213
+ this.move = function(isDown) {
214
+ }
215
+
216
+ this.moveUp = function() {
217
+ return this.move(false);
218
+ }
219
+
220
+ this.moveDown = function() {
221
+ return this.move(true);
222
+ }
223
+
224
+ /*
225
+ Scrolls to the given element in the scrollable element view.
226
+ /
227
+ this.scrollInElement = function(element, view) {
228
+ var offset, viewHeight, viewScroll, height;
229
+ offset = element.offsetTop;
230
+ height = element.offsetHeight;
231
+ viewHeight = view.offsetHeight;
232
+ viewScroll = view.scrollTop;
233
+
234
+ if (offset - viewScroll + height &gt; viewHeight) {
235
+ view.scrollTop = offset - viewHeight + height;
236
+ }
237
+ if (offset &lt; viewScroll) {
238
+ view.scrollTop = offset;
239
+ }
240
+ }
241
+
242
+ /*
243
+ Scrolls to the given element in the window. The second argument is
244
+ ignored
245
+ /
246
+ this.scrollInWindow = function(element, ignored) {
247
+ var offset, viewHeight, viewScroll, height;
248
+ offset = element.offsetTop;
249
+ height = element.offsetHeight;
250
+ viewHeight = window.innerHeight;
251
+ viewScroll = window.scrollY;
252
+
253
+ if (offset - viewScroll + height &gt; viewHeight) {
254
+ window.scrollTo(window.scrollX, offset - viewHeight + height);
255
+ }
256
+ if (offset &lt; viewScroll) {
257
+ window.scrollTo(window.scrollX, offset);
258
+ }
259
+ }</pre>
260
+
261
+ <p>}</p>
262
+ </main>
263
+
264
+
265
+
266
+ <footer id="validator-badges" role="contentinfo">
267
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
268
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
269
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
270
+ </footer>
271
+
@@ -0,0 +1,177 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>search_index.js - 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/js/search_index.js">
119
+
120
+ <p>var search_data = {“index”:{“<a
121
+ href=""exam1","examen","interfaz","list","nodo","object","seleccionsimple","verdadero_falso","<=>()”,“<=>()”,“==()”,“calificacion()”,“calificacion()”,“correcta()”,“correcta()”,“each()”,“insert_head()”,“insert_tail()”,“invert()”,“new()”,“new()”,“new()”,“new()”,“new()”,“print()”,“remove_head()”,“remove_tail()”,“respuesta_correcta()”,“respuesta_user()”,“to_s()”,“to_s()”,“to_s()”,“to_s()”,“vresp_user()”,“seleccionsimple.rb~”,“examen.rb~”,“linkedlist.rb~”“>searchIndex”:</a>,“<a
122
+ href=""exam1","examen","interfaz","list","nodo","object","seleccionsimple","verdadero_falso","nodo#<=>()”,“seleccionsimple#<=>()”,“seleccionsimple#==()”,“examen#calificacion()”,“interfaz#calificacion()”,“examen#correcta()”,“interfaz#correcta()”,“list#each()”,“list#insert_head()”,“list#insert_tail()”,“examen#invert()”,“examen::new()”,“interfaz::new()”,“list::new()”,“seleccionsimple::new()”,“verdadero_falso::new()”,“list#print()”,“list#remove_head()”,“list#remove_tail()”,“interfaz#respuesta_correcta()”,“examen#respuesta_user()”,“examen#to_s()”,“interfaz#to_s()”,“seleccionsimple#to_s()”,“verdadero_falso#to_s()”,“examen#vresp_user()”,“”,“”,“”“>longSearchIndex”:</a>,“<a
123
+ href=""Exam1","","Exam1.html","",""">info”:[</a>,[“<a
124
+ href=""Interfaz","","Interfaz.html","",""">Examen”,“”,“Examen.html”,“”,“”],</a>,[“<a
125
+ href=""Nodo","","Nodo.html","",""">List”,“”,“List.html”,“”,“”],</a>,[“<a
126
+ href=""SeleccionSimple","","SeleccionSimple.html","",""">Object”,“”,“Object.html”,“”,“”],</a>,[“<a
127
+ href=""<=>”,“Nodo”,“Nodo.html#method-i-3C-3D-3E”,“(other)”,“”“>Verdadero_Falso”,“”,“Verdadero_Falso.html”,“”,“”],</a>,[“&lt;=&gt;”,“<a
128
+ href=""==","SeleccionSimple","SeleccionSimple.html#method-i-3D-3D","(other)",""">SeleccionSimple”,“SeleccionSimple.html#method-i-3C-3D-3E”,“(other)”,“”],</a>,[“<a
129
+ href=""calificacion","Interfaz","Interfaz.html#method-i-calificacion","()",""">calificacion”,“Examen”,“Examen.html#method-i-calificacion”,“()”,“”],</a>,[“<a
130
+ href=""correcta","Interfaz","Interfaz.html#method-i-correcta","(ans_usuario,numero_preg)",""">correcta”,“Examen”,“Examen.html#method-i-correcta”,“(ans_usuario,numero_preg)”,“”],</a>,[“<a
131
+ href=""insert_head","List","List.html#method-i-insert_head","(nodo)",""">each”,“List”,“List.html#method-i-each”,“()”,“”],</a>,[“<a
132
+ href=""invert","Examen","Examen.html#method-i-invert","()",""">insert_tail”,“List”,“List.html#method-i-insert_tail”,“(nodo)”,“”],</a>,[“<a
133
+ href=""new","Interfaz","Interfaz.html#method-c-new","(examen)",""">new”,“Examen”,“Examen.html#method-c-new”,“(lista_preguntas)”,“”],</a>,[“<a
134
+ href=""new","SeleccionSimple","SeleccionSimple.html#method-c-new","(pregunta,respuesta,nivel,rescorr)",""">new”,“List”,“List.html#method-c-new”,“(head)”,“”],</a>,[“<a
135
+ href=""print","List","List.html#method-i-print","()",""">new”,“Verdadero_Falso”,“Verdadero_Falso.html#method-c-new”,“(pregunta,nivel,rescorr)”,“”],</a>,[“<a
136
+ href=""remove_tail","List","List.html#method-i-remove_tail","()",""">remove_head”,“List”,“List.html#method-i-remove_head”,“()”,“”],</a>,[“<a
137
+ href=""respuesta_user","Examen","Examen.html#method-i-respuesta_user","()",""">respuesta_correcta”,“Interfaz”,“Interfaz.html#method-i-respuesta_correcta”,“()”,“”],</a>,[“<a
138
+ href=""to_s","Interfaz","Interfaz.html#method-i-to_s","()",""">to_s”,“Examen”,“Examen.html#method-i-to_s”,“()”,“”],</a>,[“<a
139
+ href=""to_s","Verdadero_Falso","Verdadero_Falso.html#method-i-to_s","()",""">to_s”,“SeleccionSimple”,“SeleccionSimple.html#method-i-to_s”,“()”,“”],</a>,[“vresp_user”,“Examen”,“Examen.html#method-i-vresp_user”,“()”,“”],[“SeleccionSimple.rb~”,“”,“SeleccionSimple_rb~.html”,“”,“&lt;p&gt;class
140
+ SeleccionSimplenn&lt;pre class=&quot;ruby&quot;&gt;&lt;span
141
+ class=&quot;ruby-identifier&quot;&gt;attr_reader&lt;/span&gt; :&lt;span
142
+ class=&quot;ruby-identifier&quot;&gt;pregunta&lt;/span&gt;, :&lt;span
143
+ class=&quot;ruby-identifier&quot;&gt;respuesta&lt;/span&gt;, :&lt;span
144
+ class=&quot;ruby-identifier&quot;&gt;nivel&lt;/span&gt;, :&lt;span
145
+ class=&quot;ruby-identifier&quot;&gt;rescorr&lt;/span&gt;nn&lt;span
146
+ class=&quot;ruby-identifier&quot;&gt;include&lt;/span&gt; &lt;span
147
+ class=&quot;ruby-constant&quot;&gt;Comparable&lt;/span&gt;nn&lt;span
148
+ class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span
149
+ class=&quot;ruby-identifier&quot;&gt;initialize&lt;/span&gt;(&lt;span
150
+ class=&quot;ruby-identifier&quot;&gt;pregunta&lt;/span&gt;,&lt;span
151
+ class=&quot;ruby-identifier&quot;&gt;respuesta&lt;/span&gt;,&lt;span
152
+ class=&quot;ruby-identifier&quot;&gt;nivel&lt;/span&gt;,&lt;span
153
+ class=&quot;ruby-identifier&quot;&gt;rescorr&lt;/span&gt;) &lt;span
154
+ class=&quot;ruby-operator&quot;&gt;…&lt;/span&gt;n&lt;/pre&gt;n”],[“examen.rb~”,“”,“examen_rb~.html”,“”,“&lt;p&gt;require
155
+ &amp;#39;exam1/SeleccionSimple&amp;#39; require
156
+ &amp;#39;exam1/linkedlist&amp;#39;n&lt;p&gt;class
157
+ Examenn&lt;p&gt;attr_accessor
158
+ …n”],[“linkedlist.rb~”,“”,“linkedlist_rb~.html”,“”,“&lt;p&gt;Nodo =
159
+ Struct.new(:value, :siguiente, :previo) class Nodonn&lt;pre
160
+ class=&quot;ruby&quot;&gt;&lt;span
161
+ class=&quot;ruby-identifier&quot;&gt;include&lt;/span&gt; &lt;span
162
+ class=&quot;ruby-constant&quot;&gt;Comparable&lt;/span&gt;n&lt;span
163
+ class=&quot;ruby-keyword&quot;&gt;def&lt;/span&gt; &lt;span
164
+ class=&quot;ruby-operator&quot;&gt;&amp;lt;=&amp;gt;&lt;/span&gt;(&lt;span
165
+ class=&quot;ruby-identifier&quot;&gt;other&lt;/span&gt;)n &lt;span
166
+ class=&quot;ruby-identifier&quot;&gt;value&lt;/span&gt; &lt;span
167
+ class=&quot;ruby-operator&quot;&gt;…&lt;/span&gt;n&lt;/pre&gt;n”]]}}</p>
168
+ </main>
169
+
170
+
171
+
172
+ <footer id="validator-badges" role="contentinfo">
173
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
174
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
175
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
176
+ </footer>
177
+
@@ -0,0 +1,240 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>search.js - 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/js/search.js">
119
+
120
+ <p>Search = function(data, input, result) {</p>
121
+
122
+ <pre>this.data = data;
123
+ this.$input = $(input);
124
+ this.$result = $(result);
125
+
126
+ this.$current = null;
127
+ this.$view = this.$result.parent();
128
+ this.searcher = new Searcher(data.index);
129
+ this.init();</pre>
130
+
131
+ <p>}</p>
132
+
133
+ <p>Search.prototype = $.extend({}, Navigation, new function() {</p>
134
+
135
+ <pre>var suid = 1;
136
+
137
+ this.init = function() {
138
+ var _this = this;
139
+ var observer = function(e) {
140
+ switch(e.originalEvent.keyCode) {
141
+ case 38: // Event.KEY_UP
142
+ case 40: // Event.KEY_DOWN
143
+ return;
144
+ }
145
+ _this.search(_this.$input[0].value);
146
+ };
147
+ this.$input.keyup(observer);
148
+ this.$input.click(observer); // mac&#39;s clear field
149
+
150
+ this.searcher.ready(function(results, isLast) {
151
+ _this.addResults(results, isLast);
152
+ })
153
+
154
+ this.initNavigation();
155
+ this.setNavigationActive(false);
156
+ }
157
+
158
+ this.search = function(value, selectFirstMatch) {
159
+ value = jQuery.trim(value).toLowerCase();
160
+ if (value) {
161
+ this.setNavigationActive(true);
162
+ } else {
163
+ this.setNavigationActive(false);
164
+ }
165
+
166
+ if (value == &#39;&#39;) {
167
+ this.lastQuery = value;
168
+ this.$result.empty();
169
+ this.$result.attr(&#39;aria-expanded&#39;, &#39;false&#39;);
170
+ this.setNavigationActive(false);
171
+ } else if (value != this.lastQuery) {
172
+ this.lastQuery = value;
173
+ this.$result.attr(&#39;aria-busy&#39;, &#39;true&#39;);
174
+ this.$result.attr(&#39;aria-expanded&#39;, &#39;true&#39;);
175
+ this.firstRun = true;
176
+ this.searcher.find(value);
177
+ }
178
+ }
179
+
180
+ this.addResults = function(results, isLast) {
181
+ var target = this.$result.get(0);
182
+ if (this.firstRun &amp;&amp; (results.length &gt; 0 || isLast)) {
183
+ this.$current = null;
184
+ this.$result.empty();
185
+ }
186
+
187
+ for (var i=0, l = results.length; i &lt; l; i++) {
188
+ var item = this.renderItem.call(this, results[i]);
189
+ item.setAttribute(&#39;id&#39;, &#39;search-result-&#39; + target.childElementCount);
190
+ target.appendChild(item);
191
+ };
192
+
193
+ if (this.firstRun &amp;&amp; results.length &gt; 0) {
194
+ this.firstRun = false;
195
+ this.$current = $(target.firstChild);
196
+ this.$current.addClass(&#39;search-selected&#39;);
197
+ }
198
+ if (jQuery.browser.msie) this.$element[0].className += &#39;&#39;;
199
+
200
+ if (isLast) this.$result.attr(&#39;aria-busy&#39;, &#39;false&#39;);
201
+ }
202
+
203
+ this.move = function(isDown) {
204
+ if (!this.$current) return;
205
+ var $next = this.$current[isDown ? &#39;next&#39; : &#39;prev&#39;]();
206
+ if ($next.length) {
207
+ this.$current.removeClass(&#39;search-selected&#39;);
208
+ $next.addClass(&#39;search-selected&#39;);
209
+ this.$input.attr(&#39;aria-activedescendant&#39;, $next.attr(&#39;id&#39;));
210
+ this.scrollIntoView($next[0], this.$view[0]);
211
+ this.$current = $next;
212
+ this.$input.val($next[0].firstChild.firstChild.text);
213
+ this.$input.select();
214
+ }
215
+ return true;
216
+ }
217
+
218
+ this.hlt = function(html) {
219
+ return this.escapeHTML(html).
220
+ replace(/\u0001/g, &#39;&lt;em&gt;&#39;).
221
+ replace(/\u0002/g, &#39;&lt;/em&gt;&#39;);
222
+ }
223
+
224
+ this.escapeHTML = function(html) {
225
+ return html.replace(/[&amp;&lt;&gt;]/g, function(c) {
226
+ return &#39;&amp;#&#39; + c.charCodeAt(0) + &#39;;&#39;;
227
+ });
228
+ }</pre>
229
+
230
+ <p>});</p>
231
+ </main>
232
+
233
+
234
+
235
+ <footer id="validator-badges" role="contentinfo">
236
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
237
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
238
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
239
+ </footer>
240
+