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,237 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>SeleccionSimple.rb~ - 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
|
+
<div class="nav-section">
|
|
58
|
+
<h3>Table of Contents</h3>
|
|
59
|
+
|
|
60
|
+
<ul class="link-list" role="directory">
|
|
61
|
+
<li><a href="#label-begin++">begin </a>
|
|
62
|
+
<li><a href="#label-end">end</a>
|
|
63
|
+
<li><a href="#label-begin++">begin </a>
|
|
64
|
+
<li><a href="#label-end">end</a>
|
|
65
|
+
<li><a href="#label-begin++">begin </a>
|
|
66
|
+
<li><a href="#label-end">end</a>
|
|
67
|
+
</ul>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
<div id="project-metadata">
|
|
72
|
+
<div id="fileindex-section" class="nav-section">
|
|
73
|
+
<h3>Pages</h3>
|
|
74
|
+
|
|
75
|
+
<ul class="link-list">
|
|
76
|
+
|
|
77
|
+
<li><a href="./SeleccionSimple_rb~.html">SeleccionSimple.rb~</a>
|
|
78
|
+
|
|
79
|
+
<li><a href="./doc/Exam1_html.html">Exam1.html</a>
|
|
80
|
+
|
|
81
|
+
<li><a href="./doc/Examen_html.html">Examen.html</a>
|
|
82
|
+
|
|
83
|
+
<li><a href="./doc/Interfaz_html.html">Interfaz.html</a>
|
|
84
|
+
|
|
85
|
+
<li><a href="./doc/List_html.html">List.html</a>
|
|
86
|
+
|
|
87
|
+
<li><a href="./doc/Nodo_html.html">Nodo.html</a>
|
|
88
|
+
|
|
89
|
+
<li><a href="./doc/Object_html.html">Object.html</a>
|
|
90
|
+
|
|
91
|
+
<li><a href="./doc/SeleccionSimple_html.html">SeleccionSimple.html</a>
|
|
92
|
+
|
|
93
|
+
<li><a href="./doc/SeleccionSimple_rb~_html.html">SeleccionSimple_rb~.html</a>
|
|
94
|
+
|
|
95
|
+
<li><a href="./doc/Verdadero_Falso_html.html">Verdadero_Falso.html</a>
|
|
96
|
+
|
|
97
|
+
<li><a href="./doc/examen_rb~_html.html">examen_rb~.html</a>
|
|
98
|
+
|
|
99
|
+
<li><a href="./doc/fonts_css.html">fonts.css</a>
|
|
100
|
+
|
|
101
|
+
<li><a href="./doc/index_html.html">index.html</a>
|
|
102
|
+
|
|
103
|
+
<li><a href="./doc/js/darkfish_js.html">darkfish.js</a>
|
|
104
|
+
|
|
105
|
+
<li><a href="./doc/js/jquery_js.html">jquery.js</a>
|
|
106
|
+
|
|
107
|
+
<li><a href="./doc/js/navigation_js.html">navigation.js</a>
|
|
108
|
+
|
|
109
|
+
<li><a href="./doc/js/search_js.html">search.js</a>
|
|
110
|
+
|
|
111
|
+
<li><a href="./doc/js/search_index_js.html">search_index.js</a>
|
|
112
|
+
|
|
113
|
+
<li><a href="./doc/js/searcher_js.html">searcher.js</a>
|
|
114
|
+
|
|
115
|
+
<li><a href="./doc/linkedlist_rb~_html.html">linkedlist_rb~.html</a>
|
|
116
|
+
|
|
117
|
+
<li><a href="./doc/rdoc_css.html">rdoc.css</a>
|
|
118
|
+
|
|
119
|
+
<li><a href="./doc/table_of_contents_html.html">table_of_contents.html</a>
|
|
120
|
+
|
|
121
|
+
<li><a href="./examen_rb~.html">examen.rb~</a>
|
|
122
|
+
|
|
123
|
+
<li><a href="./linkedlist_rb~.html">linkedlist.rb~</a>
|
|
124
|
+
|
|
125
|
+
</ul>
|
|
126
|
+
</div>
|
|
127
|
+
|
|
128
|
+
</div>
|
|
129
|
+
</nav>
|
|
130
|
+
|
|
131
|
+
<main role="main" aria-label="Page SeleccionSimple.rb~">
|
|
132
|
+
|
|
133
|
+
<p>class <a href="SeleccionSimple.html">SeleccionSimple</a></p>
|
|
134
|
+
|
|
135
|
+
<pre class="ruby"><span class="ruby-identifier">attr_reader</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>
|
|
136
|
+
|
|
137
|
+
<span class="ruby-identifier">include</span> <span class="ruby-constant">Comparable</span>
|
|
138
|
+
|
|
139
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</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>)
|
|
140
|
+
<span class="ruby-ivar">@pregunta</span>=<span class="ruby-identifier">pregunta</span>
|
|
141
|
+
<span class="ruby-ivar">@respuesta</span>=<span class="ruby-identifier">respuesta</span>
|
|
142
|
+
<span class="ruby-ivar">@nivel</span>=<span class="ruby-identifier">nivel</span>
|
|
143
|
+
<span class="ruby-ivar">@rescorr</span>=<span class="ruby-identifier">rescorr</span>
|
|
144
|
+
<span class="ruby-keyword">end</span>
|
|
145
|
+
|
|
146
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span> <span class="ruby-comment">#para respuestas de 4 opciones</span>
|
|
147
|
+
|
|
148
|
+
<span class="ruby-node">"#{@pregunta}\n a) #{@respuesta[0]}\n b) #{@respuesta[1]}\n c) #{@respuesta[2]}\n d) #{@respuesta[3]}\n"</span>
|
|
149
|
+
<span class="ruby-keyword">end</span>
|
|
150
|
+
|
|
151
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">other</span>)
|
|
152
|
+
</pre>
|
|
153
|
+
|
|
154
|
+
<h1 id="label-begin++">begin <span><a href="#label-begin++">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
155
|
+
|
|
156
|
+
<pre>for i in (0..3)
|
|
157
|
+
respuesta_size += @respuesta[i].size
|
|
158
|
+
respuesta_other_size += other.respuesta[i].size
|
|
159
|
+
end</pre>
|
|
160
|
+
|
|
161
|
+
<h1 id="label-end">end<span><a href="#label-end">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
162
|
+
|
|
163
|
+
<pre class="ruby"> <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>
|
|
164
|
+
<span class="ruby-ivar">@nivel</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">nivel</span>
|
|
165
|
+
<span class="ruby-comment">#@pregunta.size + respuesta_size <=> other.pregunta.size + respuesta_other_size</span>
|
|
166
|
+
|
|
167
|
+
<span class="ruby-keyword">end</span>
|
|
168
|
+
|
|
169
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
|
170
|
+
|
|
171
|
+
<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>
|
|
172
|
+
<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>
|
|
173
|
+
<span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
|
|
174
|
+
<span class="ruby-keyword">end</span>
|
|
175
|
+
|
|
176
|
+
<span class="ruby-comment">#return nil unless other.is_a?SeleccionSimple</span>
|
|
177
|
+
<span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>
|
|
178
|
+
|
|
179
|
+
<span class="ruby-keyword">end</span>
|
|
180
|
+
</pre>
|
|
181
|
+
|
|
182
|
+
<h1 id="label-begin++">begin <span><a href="#label-begin++">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
183
|
+
|
|
184
|
+
<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-operator"><=</span>(<span class="ruby-identifier">other</span>)
|
|
185
|
+
|
|
186
|
+
<span class="ruby-ivar">@pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator"><</span>
|
|
187
|
+
<span class="ruby-keyword">end</span>
|
|
188
|
+
</pre>
|
|
189
|
+
|
|
190
|
+
<h1 id="label-end">end<span><a href="#label-end">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
191
|
+
|
|
192
|
+
<p>end</p>
|
|
193
|
+
|
|
194
|
+
<p>class <a href="Verdadero_Falso.html">Verdadero_Falso</a> < <a
|
|
195
|
+
href="SeleccionSimple.html">SeleccionSimple</a></p>
|
|
196
|
+
|
|
197
|
+
<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">pregunta</span>,<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)
|
|
198
|
+
|
|
199
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">pregunta</span>, [<span class="ruby-string">'Cierto'</span>,<span class="ruby-string">'Falso'</span>],<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)
|
|
200
|
+
|
|
201
|
+
<span class="ruby-keyword">end</span>
|
|
202
|
+
|
|
203
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
|
204
|
+
|
|
205
|
+
<span class="ruby-node">"#{@pregunta}\n a) Cierto\n b) Falso\n"</span>
|
|
206
|
+
|
|
207
|
+
<span class="ruby-keyword">end</span>
|
|
208
|
+
</pre>
|
|
209
|
+
|
|
210
|
+
<h1 id="label-begin++">begin <span><a href="#label-begin++">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
211
|
+
|
|
212
|
+
<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">other</span>)
|
|
213
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">instance_of?</span><span class="ruby-constant">Verdadero_Falso</span>
|
|
214
|
+
<span class="ruby-ivar">@pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@respuesta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator"><=></span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>.<span class="ruby-identifier">size</span>
|
|
215
|
+
|
|
216
|
+
<span class="ruby-keyword">end</span>
|
|
217
|
+
|
|
218
|
+
<span class="ruby-keyword">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
|
|
219
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">instance_of?</span><span class="ruby-constant">Verdadero_Falso</span>
|
|
220
|
+
<span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>
|
|
221
|
+
<span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
|
|
222
|
+
<span class="ruby-keyword">end</span>
|
|
223
|
+
</pre>
|
|
224
|
+
|
|
225
|
+
<h1 id="label-end">end<span><a href="#label-end">¶</a> <a href="#documentation">↑</a></span></h1>
|
|
226
|
+
|
|
227
|
+
<p>end</p>
|
|
228
|
+
</main>
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
<footer id="validator-badges" role="contentinfo">
|
|
233
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
234
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
235
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
236
|
+
</footer>
|
|
237
|
+
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>class Verdadero_Falso - 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="class">
|
|
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="class-metadata">
|
|
59
|
+
|
|
60
|
+
<div id="parent-class-section" class="nav-section">
|
|
61
|
+
<h3>Parent</h3>
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
<p class="link"><a href="SeleccionSimple.html">SeleccionSimple</a>
|
|
65
|
+
|
|
66
|
+
</div>
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<!-- Method Quickref -->
|
|
71
|
+
<div id="method-list-section" class="nav-section">
|
|
72
|
+
<h3>Methods</h3>
|
|
73
|
+
|
|
74
|
+
<ul class="link-list" role="directory">
|
|
75
|
+
|
|
76
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
|
77
|
+
|
|
78
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
|
79
|
+
|
|
80
|
+
</ul>
|
|
81
|
+
</div>
|
|
82
|
+
|
|
83
|
+
</div>
|
|
84
|
+
</nav>
|
|
85
|
+
|
|
86
|
+
<main role="main" aria-labelledby="class-Verdadero_Falso">
|
|
87
|
+
<h1 id="class-Verdadero_Falso" class="class">
|
|
88
|
+
class Verdadero_Falso
|
|
89
|
+
</h1>
|
|
90
|
+
|
|
91
|
+
<section class="description">
|
|
92
|
+
|
|
93
|
+
</section>
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
|
109
|
+
<header>
|
|
110
|
+
<h3>Public Class Methods</h3>
|
|
111
|
+
</header>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
<div id="method-c-new" class="method-detail ">
|
|
115
|
+
|
|
116
|
+
<div class="method-heading">
|
|
117
|
+
<span class="method-name">new</span><span
|
|
118
|
+
class="method-args">(pregunta,nivel,rescorr)</span>
|
|
119
|
+
|
|
120
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
121
|
+
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
<div class="method-description">
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
<div class="method-calls-super">
|
|
131
|
+
Calls superclass method
|
|
132
|
+
<a href="SeleccionSimple.html#method-c-new">SeleccionSimple.new</a>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
<div class="method-source-code" id="new-source">
|
|
138
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 60</span>
|
|
139
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">pregunta</span>,<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)
|
|
140
|
+
|
|
141
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">pregunta</span>, [<span class="ruby-string">'Cierto'</span>,<span class="ruby-string">'Falso'</span>],<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)
|
|
142
|
+
|
|
143
|
+
<span class="ruby-keyword">end</span></pre>
|
|
144
|
+
</div>
|
|
145
|
+
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
</div>
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
</section>
|
|
155
|
+
|
|
156
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
|
157
|
+
<header>
|
|
158
|
+
<h3>Public Instance Methods</h3>
|
|
159
|
+
</header>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<div id="method-i-to_s" class="method-detail ">
|
|
163
|
+
|
|
164
|
+
<div class="method-heading">
|
|
165
|
+
<span class="method-name">to_s</span><span
|
|
166
|
+
class="method-args">()</span>
|
|
167
|
+
|
|
168
|
+
<span class="method-click-advice">click to toggle source</span>
|
|
169
|
+
|
|
170
|
+
</div>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
<div class="method-description">
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
<div class="method-source-code" id="to_s-source">
|
|
181
|
+
<pre><span class="ruby-comment"># File SeleccionSimple.rb, line 66</span>
|
|
182
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
|
183
|
+
|
|
184
|
+
<span class="ruby-node">"#{@pregunta}\n a) Cierto\n b) Falso\n"</span>
|
|
185
|
+
|
|
186
|
+
<span class="ruby-keyword">end</span></pre>
|
|
187
|
+
</div>
|
|
188
|
+
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
</div>
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
</section>
|
|
198
|
+
|
|
199
|
+
</section>
|
|
200
|
+
</main>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
<footer id="validator-badges" role="contentinfo">
|
|
204
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
|
205
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
|
|
206
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
|
207
|
+
</footer>
|
|
208
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
Tue, 25 Nov 2014 13:00:59 +0000
|
|
2
|
+
./linkedlist.rb~ Tue, 25 Nov 2014 10:50:57 +0000
|
|
3
|
+
./examen.rb~ Tue, 25 Nov 2014 12:58:17 +0000
|
|
4
|
+
./SeleccionSimple.rb~ Tue, 18 Nov 2014 18:30:22 +0000
|
|
5
|
+
./SeleccionSimple.rb Sat, 22 Nov 2014 11:59:18 +0000
|
|
6
|
+
./linkedlist.rb Tue, 25 Nov 2014 11:30:11 +0000
|
|
7
|
+
./doc/Verdadero_Falso.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
8
|
+
./doc/Nodo.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
9
|
+
./doc/rdoc.css Tue, 25 Nov 2014 12:59:22 +0000
|
|
10
|
+
./doc/SeleccionSimple_rb~.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
11
|
+
./doc/images/find.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
12
|
+
./doc/images/arrow_up.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
13
|
+
./doc/images/bullet_toggle_plus.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
14
|
+
./doc/images/bullet_toggle_minus.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
15
|
+
./doc/images/wrench.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
16
|
+
./doc/images/brick.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
17
|
+
./doc/images/bullet_black.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
18
|
+
./doc/images/page_white_width.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
19
|
+
./doc/images/package.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
20
|
+
./doc/images/tag_blue.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
21
|
+
./doc/images/plugin.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
22
|
+
./doc/images/delete.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
23
|
+
./doc/images/wrench_orange.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
24
|
+
./doc/images/transparent.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
25
|
+
./doc/images/page_white_text.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
26
|
+
./doc/images/brick_link.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
27
|
+
./doc/images/tag_green.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
28
|
+
./doc/images/page_green.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
29
|
+
./doc/images/bug.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
30
|
+
./doc/images/add.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
31
|
+
./doc/images/date.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
32
|
+
./doc/images/loadingAnimation.gif Tue, 25 Nov 2014 12:59:22 +0000
|
|
33
|
+
./doc/images/ruby.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
34
|
+
./doc/images/macFFBgHack.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
35
|
+
./doc/images/zoom.png Tue, 25 Nov 2014 12:59:22 +0000
|
|
36
|
+
./doc/js/search.js Tue, 25 Nov 2014 12:59:22 +0000
|
|
37
|
+
./doc/js/searcher.js Tue, 25 Nov 2014 12:59:23 +0000
|
|
38
|
+
./doc/js/jquery.js Tue, 25 Nov 2014 12:59:22 +0000
|
|
39
|
+
./doc/js/search_index.js Tue, 25 Nov 2014 12:59:23 +0000
|
|
40
|
+
./doc/js/darkfish.js Tue, 25 Nov 2014 12:59:22 +0000
|
|
41
|
+
./doc/js/navigation.js Tue, 25 Nov 2014 12:59:23 +0000
|
|
42
|
+
./doc/examen_rb~.html Tue, 25 Nov 2014 12:59:23 +0000
|
|
43
|
+
./doc/SeleccionSimple.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
44
|
+
./doc/Object.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
45
|
+
./doc/Interfaz.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
46
|
+
./doc/Exam1.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
47
|
+
./doc/fonts.css Tue, 25 Nov 2014 12:59:22 +0000
|
|
48
|
+
./doc/fonts/Lato-Light.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
49
|
+
./doc/fonts/Lato-Regular.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
50
|
+
./doc/fonts/SourceCodePro-Regular.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
51
|
+
./doc/fonts/Lato-LightItalic.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
52
|
+
./doc/fonts/Lato-RegularItalic.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
53
|
+
./doc/fonts/SourceCodePro-Bold.ttf Tue, 25 Nov 2014 12:59:22 +0000
|
|
54
|
+
./doc/index.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
55
|
+
./doc/Examen.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
56
|
+
./doc/List.html Tue, 25 Nov 2014 12:59:22 +0000
|
|
57
|
+
./doc/linkedlist_rb~.html Tue, 25 Nov 2014 12:59:23 +0000
|
|
58
|
+
./doc/table_of_contents.html Tue, 25 Nov 2014 12:59:23 +0000
|
|
59
|
+
./examen.rb Tue, 25 Nov 2014 12:58:22 +0000
|
|
60
|
+
./version.rb Mon, 10 Nov 2014 20:16:37 +0000
|