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,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 && 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 && !$.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 ? 'moveDown' : 'moveUp']();
|
|
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 > viewHeight) {
|
|
235
|
+
view.scrollTop = offset - viewHeight + height;
|
|
236
|
+
}
|
|
237
|
+
if (offset < 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 > viewHeight) {
|
|
254
|
+
window.scrollTo(window.scrollX, offset - viewHeight + height);
|
|
255
|
+
}
|
|
256
|
+
if (offset < 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>,[“<=>”,“<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”,“”,“<p>class
|
|
140
|
+
SeleccionSimplenn<pre class="ruby"><span
|
|
141
|
+
class="ruby-identifier">attr_reader</span> :<span
|
|
142
|
+
class="ruby-identifier">pregunta</span>, :<span
|
|
143
|
+
class="ruby-identifier">respuesta</span>, :<span
|
|
144
|
+
class="ruby-identifier">nivel</span>, :<span
|
|
145
|
+
class="ruby-identifier">rescorr</span>nn<span
|
|
146
|
+
class="ruby-identifier">include</span> <span
|
|
147
|
+
class="ruby-constant">Comparable</span>nn<span
|
|
148
|
+
class="ruby-keyword">def</span> <span
|
|
149
|
+
class="ruby-identifier">initialize</span>(<span
|
|
150
|
+
class="ruby-identifier">pregunta</span>,<span
|
|
151
|
+
class="ruby-identifier">respuesta</span>,<span
|
|
152
|
+
class="ruby-identifier">nivel</span>,<span
|
|
153
|
+
class="ruby-identifier">rescorr</span>) <span
|
|
154
|
+
class="ruby-operator">…</span>n</pre>n”],[“examen.rb~”,“”,“examen_rb~.html”,“”,“<p>require
|
|
155
|
+
&#39;exam1/SeleccionSimple&#39; require
|
|
156
|
+
&#39;exam1/linkedlist&#39;n<p>class
|
|
157
|
+
Examenn<p>attr_accessor
|
|
158
|
+
…n”],[“linkedlist.rb~”,“”,“linkedlist_rb~.html”,“”,“<p>Nodo =
|
|
159
|
+
Struct.new(:value, :siguiente, :previo) class Nodonn<pre
|
|
160
|
+
class="ruby"><span
|
|
161
|
+
class="ruby-identifier">include</span> <span
|
|
162
|
+
class="ruby-constant">Comparable</span>n<span
|
|
163
|
+
class="ruby-keyword">def</span> <span
|
|
164
|
+
class="ruby-operator">&lt;=&gt;</span>(<span
|
|
165
|
+
class="ruby-identifier">other</span>)n <span
|
|
166
|
+
class="ruby-identifier">value</span> <span
|
|
167
|
+
class="ruby-operator">…</span>n</pre>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'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 == '') {
|
|
167
|
+
this.lastQuery = value;
|
|
168
|
+
this.$result.empty();
|
|
169
|
+
this.$result.attr('aria-expanded', 'false');
|
|
170
|
+
this.setNavigationActive(false);
|
|
171
|
+
} else if (value != this.lastQuery) {
|
|
172
|
+
this.lastQuery = value;
|
|
173
|
+
this.$result.attr('aria-busy', 'true');
|
|
174
|
+
this.$result.attr('aria-expanded', 'true');
|
|
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 && (results.length > 0 || isLast)) {
|
|
183
|
+
this.$current = null;
|
|
184
|
+
this.$result.empty();
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
for (var i=0, l = results.length; i < l; i++) {
|
|
188
|
+
var item = this.renderItem.call(this, results[i]);
|
|
189
|
+
item.setAttribute('id', 'search-result-' + target.childElementCount);
|
|
190
|
+
target.appendChild(item);
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
if (this.firstRun && results.length > 0) {
|
|
194
|
+
this.firstRun = false;
|
|
195
|
+
this.$current = $(target.firstChild);
|
|
196
|
+
this.$current.addClass('search-selected');
|
|
197
|
+
}
|
|
198
|
+
if (jQuery.browser.msie) this.$element[0].className += '';
|
|
199
|
+
|
|
200
|
+
if (isLast) this.$result.attr('aria-busy', 'false');
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
this.move = function(isDown) {
|
|
204
|
+
if (!this.$current) return;
|
|
205
|
+
var $next = this.$current[isDown ? 'next' : 'prev']();
|
|
206
|
+
if ($next.length) {
|
|
207
|
+
this.$current.removeClass('search-selected');
|
|
208
|
+
$next.addClass('search-selected');
|
|
209
|
+
this.$input.attr('aria-activedescendant', $next.attr('id'));
|
|
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, '<em>').
|
|
221
|
+
replace(/\u0002/g, '</em>');
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
this.escapeHTML = function(html) {
|
|
225
|
+
return html.replace(/[&<>]/g, function(c) {
|
|
226
|
+
return '&#' + c.charCodeAt(0) + ';';
|
|
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
|
+
|