exam_LPP_T_5 0.1.2
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/.gitignore +20 -0
- data/.rspec +2 -0
- data/.travis.yml +7 -0
- data/Gemfile +4 -0
- data/Guardfile +38 -0
- data/LICENSE.txt +22 -0
- data/README.md +7 -0
- data/README.rdoc +3 -0
- data/Rakefile +13 -0
- data/exam.gemspec +32 -0
- data/html/Exam.html +112 -0
- data/html/Exam/DList.html +569 -0
- data/html/Exam/Examen.html +335 -0
- data/html/Exam/Interfaz.html +333 -0
- data/html/Exam/List.html +323 -0
- data/html/Exam/Test.html +384 -0
- data/html/Exam/ToF.html +164 -0
- data/html/Inversor.html +112 -0
- data/html/Inverter.html +164 -0
- data/html/Object.html +119 -0
- data/html/README_rdoc.html +86 -0
- data/html/created.rid +13 -0
- data/html/fonts.css +167 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +108 -0
- data/html/js/darkfish.js +140 -0
- data/html/js/jquery.js +4 -0
- data/html/js/navigation.js +142 -0
- data/html/js/search.js +109 -0
- data/html/js/search_index.js +1 -0
- data/html/js/searcher.js +228 -0
- data/html/rdoc.css +580 -0
- data/html/table_of_contents.html +222 -0
- data/lib/exam.rb +8 -0
- data/lib/exam/d_list.rb +124 -0
- data/lib/exam/examen.rb +38 -0
- data/lib/exam/interfaz.rb +34 -0
- data/lib/exam/list.rb +57 -0
- data/lib/exam/quiz.rb +39 -0
- data/lib/exam/test.rb +37 -0
- data/lib/exam/tof.rb +9 -0
- data/lib/exam/version.rb +3 -0
- data/lib/inverter.rb +1 -0
- data/lib/inverter/reverse.rb +10 -0
- data/lib/inverter/version.rb +3 -0
- data/rspec_results.html +339 -0
- data/spec/exam_spec.rb +346 -0
- data/spec/spec_helper.rb +19 -0
- metadata +225 -0
@@ -0,0 +1,335 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Exam::Examen - 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
|
+
|
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 ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-check_exam">#check_exam</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-invertir">#invertir</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-size">#size</a>
|
83
|
+
|
84
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
85
|
+
|
86
|
+
</ul>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
</nav>
|
91
|
+
|
92
|
+
<main role="main" aria-labelledby="class-Exam::Examen">
|
93
|
+
<h1 id="class-Exam::Examen" class="class">
|
94
|
+
class Exam::Examen
|
95
|
+
</h1>
|
96
|
+
|
97
|
+
<section class="description">
|
98
|
+
|
99
|
+
<p>create a Examen</p>
|
100
|
+
|
101
|
+
</section>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<section class="attribute-method-details" class="method-section">
|
115
|
+
<header>
|
116
|
+
<h3>Attributes</h3>
|
117
|
+
</header>
|
118
|
+
|
119
|
+
|
120
|
+
<div id="attribute-i-list" class="method-detail">
|
121
|
+
<div class="method-heading attribute-method-heading">
|
122
|
+
<span class="method-name">list</span><span
|
123
|
+
class="attribute-access-type">[RW]</span>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</section>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
138
|
+
<header>
|
139
|
+
<h3>Public Class Methods</h3>
|
140
|
+
</header>
|
141
|
+
|
142
|
+
|
143
|
+
<div id="method-c-new" class="method-detail ">
|
144
|
+
|
145
|
+
<div class="method-heading">
|
146
|
+
<span class="method-name">new</span><span
|
147
|
+
class="method-args">(a)</span>
|
148
|
+
|
149
|
+
<span class="method-click-advice">click to toggle source</span>
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<div class="method-description">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<div class="method-source-code" id="new-source">
|
162
|
+
<pre><span class="ruby-comment"># File lib/exam/examen.rb, line 7</span>
|
163
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">a</span>)
|
164
|
+
<span class="ruby-ivar">@list</span> = <span class="ruby-identifier">a</span>
|
165
|
+
<span class="ruby-keyword">end</span></pre>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
</div>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
</section>
|
177
|
+
|
178
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
179
|
+
<header>
|
180
|
+
<h3>Public Instance Methods</h3>
|
181
|
+
</header>
|
182
|
+
|
183
|
+
|
184
|
+
<div id="method-i-check_exam" class="method-detail ">
|
185
|
+
|
186
|
+
<div class="method-heading">
|
187
|
+
<span class="method-name">check_exam</span><span
|
188
|
+
class="method-args">(a)</span>
|
189
|
+
|
190
|
+
<span class="method-click-advice">click to toggle source</span>
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-source-code" id="check_exam-source">
|
203
|
+
<pre><span class="ruby-comment"># File lib/exam/examen.rb, line 11</span>
|
204
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">check_exam</span>(<span class="ruby-identifier">a</span>)
|
205
|
+
<span class="ruby-identifier">list</span> = <span class="ruby-ivar">@list</span>.<span class="ruby-identifier">clone</span>
|
206
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-value">0</span>
|
207
|
+
<span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">a</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>
|
208
|
+
<span class="ruby-identifier">p</span> = <span class="ruby-identifier">list</span>.<span class="ruby-identifier">popHead</span>
|
209
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-identifier">p</span>.<span class="ruby-identifier">check_ans</span>(<span class="ruby-identifier">a</span>[<span class="ruby-identifier">i</span>]))
|
210
|
+
<span class="ruby-identifier">n</span> = <span class="ruby-identifier">n</span><span class="ruby-operator">+</span><span class="ruby-value">1</span>
|
211
|
+
<span class="ruby-keyword">end</span>
|
212
|
+
<span class="ruby-keyword">end</span>
|
213
|
+
<span class="ruby-keyword">return</span> <span class="ruby-node">"#{n}/#{a.size}"</span>;
|
214
|
+
<span class="ruby-keyword">end</span></pre>
|
215
|
+
</div>
|
216
|
+
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
<div id="method-i-invertir" class="method-detail ">
|
226
|
+
|
227
|
+
<div class="method-heading">
|
228
|
+
<span class="method-name">invertir</span><span
|
229
|
+
class="method-args">()</span>
|
230
|
+
|
231
|
+
<span class="method-click-advice">click to toggle source</span>
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
<div class="method-description">
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
<div class="method-source-code" id="invertir-source">
|
244
|
+
<pre><span class="ruby-comment"># File lib/exam/examen.rb, line 23</span>
|
245
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">invertir</span>
|
246
|
+
<span class="ruby-ivar">@list</span>=<span class="ruby-identifier">reverse</span>(<span class="ruby-ivar">@list</span>)
|
247
|
+
<span class="ruby-keyword">end</span></pre>
|
248
|
+
</div>
|
249
|
+
|
250
|
+
</div>
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</div>
|
256
|
+
|
257
|
+
|
258
|
+
<div id="method-i-size" class="method-detail ">
|
259
|
+
|
260
|
+
<div class="method-heading">
|
261
|
+
<span class="method-name">size</span><span
|
262
|
+
class="method-args">()</span>
|
263
|
+
|
264
|
+
<span class="method-click-advice">click to toggle source</span>
|
265
|
+
|
266
|
+
</div>
|
267
|
+
|
268
|
+
|
269
|
+
<div class="method-description">
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
<div class="method-source-code" id="size-source">
|
277
|
+
<pre><span class="ruby-comment"># File lib/exam/examen.rb, line 27</span>
|
278
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">size</span>
|
279
|
+
<span class="ruby-ivar">@list</span>.<span class="ruby-identifier">size</span>
|
280
|
+
<span class="ruby-keyword">end</span></pre>
|
281
|
+
</div>
|
282
|
+
|
283
|
+
</div>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
</div>
|
289
|
+
|
290
|
+
|
291
|
+
<div id="method-i-to_s" class="method-detail ">
|
292
|
+
|
293
|
+
<div class="method-heading">
|
294
|
+
<span class="method-name">to_s</span><span
|
295
|
+
class="method-args">()</span>
|
296
|
+
|
297
|
+
<span class="method-click-advice">click to toggle source</span>
|
298
|
+
|
299
|
+
</div>
|
300
|
+
|
301
|
+
|
302
|
+
<div class="method-description">
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
<div class="method-source-code" id="to_s-source">
|
310
|
+
<pre><span class="ruby-comment"># File lib/exam/examen.rb, line 31</span>
|
311
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
312
|
+
<span class="ruby-ivar">@list</span>.<span class="ruby-identifier">to_s</span>
|
313
|
+
<span class="ruby-keyword">end</span></pre>
|
314
|
+
</div>
|
315
|
+
|
316
|
+
</div>
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
|
324
|
+
</section>
|
325
|
+
|
326
|
+
</section>
|
327
|
+
</main>
|
328
|
+
|
329
|
+
|
330
|
+
<footer id="validator-badges" role="contentinfo">
|
331
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
332
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
|
333
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
334
|
+
</footer>
|
335
|
+
|
@@ -0,0 +1,333 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class Exam::Interfaz - 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
|
+
|
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 ><a href="#method-c-new">::new</a>
|
77
|
+
|
78
|
+
<li ><a href="#method-i-examinar">#examinar</a>
|
79
|
+
|
80
|
+
<li ><a href="#method-i-invertir_examen">#invertir_examen</a>
|
81
|
+
|
82
|
+
<li ><a href="#method-i-mostrar">#mostrar</a>
|
83
|
+
|
84
|
+
<li ><a href="#method-i-responder">#responder</a>
|
85
|
+
|
86
|
+
</ul>
|
87
|
+
</div>
|
88
|
+
|
89
|
+
</div>
|
90
|
+
</nav>
|
91
|
+
|
92
|
+
<main role="main" aria-labelledby="class-Exam::Interfaz">
|
93
|
+
<h1 id="class-Exam::Interfaz" class="class">
|
94
|
+
class Exam::Interfaz
|
95
|
+
</h1>
|
96
|
+
|
97
|
+
<section class="description">
|
98
|
+
|
99
|
+
<p>create a <a href="Interfaz.html">Interfaz</a></p>
|
100
|
+
|
101
|
+
</section>
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
<section class="attribute-method-details" class="method-section">
|
115
|
+
<header>
|
116
|
+
<h3>Attributes</h3>
|
117
|
+
</header>
|
118
|
+
|
119
|
+
|
120
|
+
<div id="attribute-i-examen" class="method-detail">
|
121
|
+
<div class="method-heading attribute-method-heading">
|
122
|
+
<span class="method-name">examen</span><span
|
123
|
+
class="attribute-access-type">[RW]</span>
|
124
|
+
</div>
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
</div>
|
131
|
+
</div>
|
132
|
+
|
133
|
+
</section>
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
138
|
+
<header>
|
139
|
+
<h3>Public Class Methods</h3>
|
140
|
+
</header>
|
141
|
+
|
142
|
+
|
143
|
+
<div id="method-c-new" class="method-detail ">
|
144
|
+
|
145
|
+
<div class="method-heading">
|
146
|
+
<span class="method-name">new</span><span
|
147
|
+
class="method-args">(e)</span>
|
148
|
+
|
149
|
+
<span class="method-click-advice">click to toggle source</span>
|
150
|
+
|
151
|
+
</div>
|
152
|
+
|
153
|
+
|
154
|
+
<div class="method-description">
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
<div class="method-source-code" id="new-source">
|
162
|
+
<pre><span class="ruby-comment"># File lib/exam/interfaz.rb, line 7</span>
|
163
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">e</span>)
|
164
|
+
<span class="ruby-ivar">@examen</span> = <span class="ruby-identifier">e</span>
|
165
|
+
<span class="ruby-keyword">end</span></pre>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
</div>
|
169
|
+
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
</section>
|
177
|
+
|
178
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
179
|
+
<header>
|
180
|
+
<h3>Public Instance Methods</h3>
|
181
|
+
</header>
|
182
|
+
|
183
|
+
|
184
|
+
<div id="method-i-examinar" class="method-detail ">
|
185
|
+
|
186
|
+
<div class="method-heading">
|
187
|
+
<span class="method-name">examinar</span><span
|
188
|
+
class="method-args">()</span>
|
189
|
+
|
190
|
+
<span class="method-click-advice">click to toggle source</span>
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
<div class="method-description">
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-source-code" id="examinar-source">
|
203
|
+
<pre><span class="ruby-comment"># File lib/exam/interfaz.rb, line 24</span>
|
204
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">examinar</span>
|
205
|
+
<span class="ruby-identifier">mostrar</span>
|
206
|
+
<span class="ruby-identifier">responder</span>
|
207
|
+
<span class="ruby-keyword">end</span></pre>
|
208
|
+
</div>
|
209
|
+
|
210
|
+
</div>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
</div>
|
216
|
+
|
217
|
+
|
218
|
+
<div id="method-i-invertir_examen" class="method-detail ">
|
219
|
+
|
220
|
+
<div class="method-heading">
|
221
|
+
<span class="method-name">invertir_examen</span><span
|
222
|
+
class="method-args">()</span>
|
223
|
+
|
224
|
+
<span class="method-click-advice">click to toggle source</span>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
<div class="method-description">
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
<div class="method-source-code" id="invertir_examen-source">
|
237
|
+
<pre><span class="ruby-comment"># File lib/exam/interfaz.rb, line 29</span>
|
238
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">invertir_examen</span>
|
239
|
+
<span class="ruby-ivar">@examen</span>.<span class="ruby-identifier">invertir</span>
|
240
|
+
<span class="ruby-keyword">end</span></pre>
|
241
|
+
</div>
|
242
|
+
|
243
|
+
</div>
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
</div>
|
249
|
+
|
250
|
+
|
251
|
+
<div id="method-i-mostrar" class="method-detail ">
|
252
|
+
|
253
|
+
<div class="method-heading">
|
254
|
+
<span class="method-name">mostrar</span><span
|
255
|
+
class="method-args">()</span>
|
256
|
+
|
257
|
+
<span class="method-click-advice">click to toggle source</span>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
<div class="method-description">
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
<div class="method-source-code" id="mostrar-source">
|
270
|
+
<pre><span class="ruby-comment"># File lib/exam/interfaz.rb, line 11</span>
|
271
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">mostrar</span>
|
272
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-ivar">@examen</span>.<span class="ruby-identifier">to_s</span>
|
273
|
+
<span class="ruby-keyword">end</span></pre>
|
274
|
+
</div>
|
275
|
+
|
276
|
+
</div>
|
277
|
+
|
278
|
+
|
279
|
+
|
280
|
+
|
281
|
+
</div>
|
282
|
+
|
283
|
+
|
284
|
+
<div id="method-i-responder" class="method-detail ">
|
285
|
+
|
286
|
+
<div class="method-heading">
|
287
|
+
<span class="method-name">responder</span><span
|
288
|
+
class="method-args">()</span>
|
289
|
+
|
290
|
+
<span class="method-click-advice">click to toggle source</span>
|
291
|
+
|
292
|
+
</div>
|
293
|
+
|
294
|
+
|
295
|
+
<div class="method-description">
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
|
300
|
+
|
301
|
+
|
302
|
+
<div class="method-source-code" id="responder-source">
|
303
|
+
<pre><span class="ruby-comment"># File lib/exam/interfaz.rb, line 15</span>
|
304
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">responder</span>
|
305
|
+
<span class="ruby-identifier">a</span>=[]
|
306
|
+
<span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> <span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-ivar">@examen</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>
|
307
|
+
<span class="ruby-identifier">puts</span> <span class="ruby-node">"Respuesta a la pregunta #{i+1}: "</span>
|
308
|
+
<span class="ruby-identifier">a</span>=<span class="ruby-identifier">a</span><span class="ruby-operator">+</span>[<span class="ruby-identifier">gets</span>.<span class="ruby-identifier">chomp</span>]
|
309
|
+
<span class="ruby-keyword">end</span>
|
310
|
+
<span class="ruby-ivar">@examen</span>.<span class="ruby-identifier">check_exam</span>(<span class="ruby-identifier">a</span>)
|
311
|
+
<span class="ruby-keyword">end</span></pre>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</div>
|
320
|
+
|
321
|
+
|
322
|
+
</section>
|
323
|
+
|
324
|
+
</section>
|
325
|
+
</main>
|
326
|
+
|
327
|
+
|
328
|
+
<footer id="validator-badges" role="contentinfo">
|
329
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
330
|
+
<p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
|
331
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
332
|
+
</footer>
|
333
|
+
|