examenJoaquinAngelica 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +13 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +16 -0
  6. data/Gemfile +5 -0
  7. data/Guardfile +30 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +20 -0
  10. data/Rakefile +5 -0
  11. data/doc/Examen.html +129 -0
  12. data/doc/Examen/EleccionSimple.html +163 -0
  13. data/doc/Examen/Exam.html +363 -0
  14. data/doc/Examen/Examen.html +163 -0
  15. data/doc/Examen/Interfaz.html +359 -0
  16. data/doc/Examen/Pregunta.html +385 -0
  17. data/doc/Examen/Verdaderofalso.html +161 -0
  18. data/doc/Gemfile.html +100 -0
  19. data/doc/Gemfile_lock.html +190 -0
  20. data/doc/Guardfile.html +121 -0
  21. data/doc/LICENSE_txt.html +116 -0
  22. data/doc/Lista.html +527 -0
  23. data/doc/Object.html +130 -0
  24. data/doc/README_md.html +112 -0
  25. data/doc/Rakefile.html +99 -0
  26. data/doc/created.rid +19 -0
  27. data/doc/examen_gemspec.html +134 -0
  28. data/doc/fonts.css +167 -0
  29. data/doc/fonts/Lato-Light.ttf +0 -0
  30. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  31. data/doc/fonts/Lato-Regular.ttf +0 -0
  32. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  34. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  35. data/doc/images/add.png +0 -0
  36. data/doc/images/arrow_up.png +0 -0
  37. data/doc/images/brick.png +0 -0
  38. data/doc/images/brick_link.png +0 -0
  39. data/doc/images/bug.png +0 -0
  40. data/doc/images/bullet_black.png +0 -0
  41. data/doc/images/bullet_toggle_minus.png +0 -0
  42. data/doc/images/bullet_toggle_plus.png +0 -0
  43. data/doc/images/date.png +0 -0
  44. data/doc/images/delete.png +0 -0
  45. data/doc/images/find.png +0 -0
  46. data/doc/images/loadingAnimation.gif +0 -0
  47. data/doc/images/macFFBgHack.png +0 -0
  48. data/doc/images/package.png +0 -0
  49. data/doc/images/page_green.png +0 -0
  50. data/doc/images/page_white_text.png +0 -0
  51. data/doc/images/page_white_width.png +0 -0
  52. data/doc/images/plugin.png +0 -0
  53. data/doc/images/ruby.png +0 -0
  54. data/doc/images/tag_blue.png +0 -0
  55. data/doc/images/tag_green.png +0 -0
  56. data/doc/images/transparent.png +0 -0
  57. data/doc/images/wrench.png +0 -0
  58. data/doc/images/wrench_orange.png +0 -0
  59. data/doc/images/zoom.png +0 -0
  60. data/doc/index.html +118 -0
  61. data/doc/js/darkfish.js +140 -0
  62. data/doc/js/jquery.js +4 -0
  63. data/doc/js/navigation.js +142 -0
  64. data/doc/js/search.js +109 -0
  65. data/doc/js/search_index.js +1 -0
  66. data/doc/js/searcher.js +228 -0
  67. data/doc/rdoc.css +580 -0
  68. data/doc/table_of_contents.html +238 -0
  69. data/examen.gemspec +40 -0
  70. data/lib/examen.rb +13 -0
  71. data/lib/examen/eleccionsimple.rb +16 -0
  72. data/lib/examen/exam.rb +109 -0
  73. data/lib/examen/examen.rb +17 -0
  74. data/lib/examen/interfaz.rb +45 -0
  75. data/lib/examen/lista.rb +92 -0
  76. data/lib/examen/pregunta.rb +53 -0
  77. data/lib/examen/verdaderofalso.rb +13 -0
  78. data/lib/examen/version.rb +3 -0
  79. data/spec/examen_spec.rb +624 -0
  80. data/spec/spec_helper.rb +32 -0
  81. metadata +280 -0
@@ -0,0 +1,385 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Examen::Pregunta - 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="../Object.html">Object</a>
65
+
66
+ </div>
67
+
68
+ <div id="includes-section" class="nav-section">
69
+ <h3>Included Modules</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+
74
+ <li><span class="include">Comparable</span>
75
+
76
+
77
+ </ul>
78
+ </div>
79
+
80
+
81
+ <!-- Method Quickref -->
82
+ <div id="method-list-section" class="nav-section">
83
+ <h3>Methods</h3>
84
+
85
+ <ul class="link-list" role="directory">
86
+
87
+ <li ><a href="#method-c-new">::new</a>
88
+
89
+ <li ><a href="#method-i-3C-3D-3E">#&lt;=&gt;</a>
90
+
91
+ <li ><a href="#method-i-extresp">#extresp</a>
92
+
93
+ <li ><a href="#method-i-preg">#preg</a>
94
+
95
+ <li ><a href="#method-i-to_s">#to_s</a>
96
+
97
+ </ul>
98
+ </div>
99
+
100
+ </div>
101
+ </nav>
102
+
103
+ <main role="main" aria-labelledby="class-Examen::Pregunta">
104
+ <h1 id="class-Examen::Pregunta" class="class">
105
+ class Examen::Pregunta
106
+ </h1>
107
+
108
+ <section class="description">
109
+
110
+ </section>
111
+
112
+
113
+
114
+
115
+ <section id="5Buntitled-5D" class="documentation-section">
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+ <section class="attribute-method-details" class="method-section">
124
+ <header>
125
+ <h3>Attributes</h3>
126
+ </header>
127
+
128
+
129
+ <div id="attribute-i-enunciado" class="method-detail">
130
+ <div class="method-heading attribute-method-heading">
131
+ <span class="method-name">enunciado</span><span
132
+ class="attribute-access-type">[R]</span>
133
+ </div>
134
+
135
+ <div class="method-description">
136
+
137
+ <p>use a class to define behavior, together with a Struct that defines the
138
+ data to which the class should be initialized.</p>
139
+
140
+ </div>
141
+ </div>
142
+
143
+ <div id="attribute-i-falsas" class="method-detail">
144
+ <div class="method-heading attribute-method-heading">
145
+ <span class="method-name">falsas</span><span
146
+ class="attribute-access-type">[R]</span>
147
+ </div>
148
+
149
+ <div class="method-description">
150
+
151
+ <p>use a class to define behavior, together with a Struct that defines the
152
+ data to which the class should be initialized.</p>
153
+
154
+ </div>
155
+ </div>
156
+
157
+ <div id="attribute-i-respuesta" class="method-detail">
158
+ <div class="method-heading attribute-method-heading">
159
+ <span class="method-name">respuesta</span><span
160
+ class="attribute-access-type">[R]</span>
161
+ </div>
162
+
163
+ <div class="method-description">
164
+
165
+ <p>use a class to define behavior, together with a Struct that defines the
166
+ data to which the class should be initialized.</p>
167
+
168
+ </div>
169
+ </div>
170
+
171
+ <div id="attribute-i-valor" class="method-detail">
172
+ <div class="method-heading attribute-method-heading">
173
+ <span class="method-name">valor</span><span
174
+ class="attribute-access-type">[R]</span>
175
+ </div>
176
+
177
+ <div class="method-description">
178
+
179
+ <p>use a class to define behavior, together with a Struct that defines the
180
+ data to which the class should be initialized.</p>
181
+
182
+ </div>
183
+ </div>
184
+
185
+ </section>
186
+
187
+
188
+
189
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
190
+ <header>
191
+ <h3>Public Class Methods</h3>
192
+ </header>
193
+
194
+
195
+ <div id="method-c-new" class="method-detail ">
196
+
197
+ <div class="method-heading">
198
+ <span class="method-name">new</span><span
199
+ class="method-args">(arg)</span>
200
+
201
+ <span class="method-click-advice">click to toggle source</span>
202
+
203
+ </div>
204
+
205
+
206
+ <div class="method-description">
207
+
208
+
209
+
210
+
211
+
212
+
213
+ <div class="method-source-code" id="new-source">
214
+ <pre><span class="ruby-comment"># File lib/examen/pregunta.rb, line 21</span>
215
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">arg</span>)
216
+ <span class="ruby-ivar">@valor</span>=<span class="ruby-identifier">arg</span>[<span class="ruby-value">:valor</span>]
217
+ <span class="ruby-ivar">@enunciado</span>=<span class="ruby-identifier">arg</span>[<span class="ruby-value">:enunciado</span>]
218
+ <span class="ruby-ivar">@respuesta</span>=<span class="ruby-identifier">arg</span>[<span class="ruby-value">:respuesta</span>]
219
+ <span class="ruby-ivar">@falsas</span>=<span class="ruby-identifier">arg</span>[<span class="ruby-value">:falsas</span>]
220
+ <span class="ruby-keyword">end</span></pre>
221
+ </div>
222
+
223
+ </div>
224
+
225
+
226
+
227
+
228
+ </div>
229
+
230
+
231
+ </section>
232
+
233
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
234
+ <header>
235
+ <h3>Public Instance Methods</h3>
236
+ </header>
237
+
238
+
239
+ <div id="method-i-3C-3D-3E" class="method-detail ">
240
+
241
+ <div class="method-heading">
242
+ <span class="method-name">&lt;=&gt;</span><span
243
+ class="method-args">(other)</span>
244
+
245
+ <span class="method-click-advice">click to toggle source</span>
246
+
247
+ </div>
248
+
249
+
250
+ <div class="method-description">
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <div class="method-source-code" id="3C-3D-3E-source">
258
+ <pre><span class="ruby-comment"># File lib/examen/pregunta.rb, line 44</span>
259
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>
260
+ <span class="ruby-comment">#return nil unless other.is_a? Examen</span>
261
+ <span class="ruby-keyword">self</span>.<span class="ruby-identifier">valor</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">valor</span>
262
+ <span class="ruby-keyword">end</span></pre>
263
+ </div>
264
+
265
+ </div>
266
+
267
+
268
+
269
+
270
+ </div>
271
+
272
+
273
+ <div id="method-i-extresp" class="method-detail ">
274
+
275
+ <div class="method-heading">
276
+ <span class="method-name">extresp</span><span
277
+ class="method-args">()</span>
278
+
279
+ <span class="method-click-advice">click to toggle source</span>
280
+
281
+ </div>
282
+
283
+
284
+ <div class="method-description">
285
+
286
+
287
+
288
+
289
+
290
+
291
+ <div class="method-source-code" id="extresp-source">
292
+ <pre><span class="ruby-comment"># File lib/examen/pregunta.rb, line 29</span>
293
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">extresp</span>
294
+
295
+ <span class="ruby-node">&quot;RESPUESTAS : #{@respuesta}, #{@falsas}&quot;</span>
296
+
297
+ <span class="ruby-keyword">end</span></pre>
298
+ </div>
299
+
300
+ </div>
301
+
302
+
303
+
304
+
305
+ </div>
306
+
307
+
308
+ <div id="method-i-preg" class="method-detail ">
309
+
310
+ <div class="method-heading">
311
+ <span class="method-name">preg</span><span
312
+ class="method-args">()</span>
313
+
314
+ <span class="method-click-advice">click to toggle source</span>
315
+
316
+ </div>
317
+
318
+
319
+ <div class="method-description">
320
+
321
+
322
+
323
+
324
+
325
+
326
+ <div class="method-source-code" id="preg-source">
327
+ <pre><span class="ruby-comment"># File lib/examen/pregunta.rb, line 40</span>
328
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">preg</span>
329
+ <span class="ruby-node">&quot;PREGUNTA : #{@enunciado}&quot;</span>
330
+ <span class="ruby-keyword">end</span></pre>
331
+ </div>
332
+
333
+ </div>
334
+
335
+
336
+
337
+
338
+ </div>
339
+
340
+
341
+ <div id="method-i-to_s" class="method-detail ">
342
+
343
+ <div class="method-heading">
344
+ <span class="method-name">to_s</span><span
345
+ class="method-args">()</span>
346
+
347
+ <span class="method-click-advice">click to toggle source</span>
348
+
349
+ </div>
350
+
351
+
352
+ <div class="method-description">
353
+
354
+
355
+
356
+
357
+
358
+
359
+ <div class="method-source-code" id="to_s-source">
360
+ <pre><span class="ruby-comment"># File lib/examen/pregunta.rb, line 35</span>
361
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
362
+ <span class="ruby-identifier">preg</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">extresp</span>
363
+ <span class="ruby-keyword">end</span></pre>
364
+ </div>
365
+
366
+ </div>
367
+
368
+
369
+
370
+
371
+ </div>
372
+
373
+
374
+ </section>
375
+
376
+ </section>
377
+ </main>
378
+
379
+
380
+ <footer id="validator-badges" role="contentinfo">
381
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
382
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
383
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
384
+ </footer>
385
+
@@ -0,0 +1,161 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Examen::Verdaderofalso - 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="Pregunta.html">Examen::Pregunta</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
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-labelledby="class-Examen::Verdaderofalso">
85
+ <h1 id="class-Examen::Verdaderofalso" class="class">
86
+ class Examen::Verdaderofalso
87
+ </h1>
88
+
89
+ <section class="description">
90
+
91
+ </section>
92
+
93
+
94
+
95
+
96
+ <section id="5Buntitled-5D" class="documentation-section">
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
107
+ <header>
108
+ <h3>Public Class Methods</h3>
109
+ </header>
110
+
111
+
112
+ <div id="method-c-new" class="method-detail ">
113
+
114
+ <div class="method-heading">
115
+ <span class="method-name">new</span><span
116
+ class="method-args">(arg)</span>
117
+
118
+ <span class="method-click-advice">click to toggle source</span>
119
+
120
+ </div>
121
+
122
+
123
+ <div class="method-description">
124
+
125
+
126
+
127
+
128
+ <div class="method-calls-super">
129
+ Calls superclass method
130
+ <a href="Pregunta.html#method-c-new">Examen::Pregunta.new</a>
131
+ </div>
132
+
133
+
134
+
135
+ <div class="method-source-code" id="new-source">
136
+ <pre><span class="ruby-comment"># File lib/examen/verdaderofalso.rb, line 6</span>
137
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> <span class="ruby-identifier">arg</span>
138
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">arg</span>)
139
+ <span class="ruby-keyword">end</span></pre>
140
+ </div>
141
+
142
+ </div>
143
+
144
+
145
+
146
+
147
+ </div>
148
+
149
+
150
+ </section>
151
+
152
+ </section>
153
+ </main>
154
+
155
+
156
+ <footer id="validator-badges" role="contentinfo">
157
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
158
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
159
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
160
+ </footer>
161
+