prct07 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) 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 +11 -0
  6. data/Gemfile +10 -0
  7. data/Guardfile +39 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +44 -0
  10. data/Rakefile +6 -0
  11. data/doc/Gemfile.html +102 -0
  12. data/doc/Gemfile_lock.html +176 -0
  13. data/doc/Guardfile.html +137 -0
  14. data/doc/LICENSE_txt.html +116 -0
  15. data/doc/Prct07.html +151 -0
  16. data/doc/Prct07/Exam.html +193 -0
  17. data/doc/Prct07/Inter_user.html +319 -0
  18. data/doc/Prct07/Lista_doble.html +418 -0
  19. data/doc/Prct07/Preg.html +231 -0
  20. data/doc/Prct07/SimpleExpec.html +356 -0
  21. data/doc/Prct07/VerdFals.html +312 -0
  22. data/doc/README_md.html +163 -0
  23. data/doc/Rakefile.html +103 -0
  24. data/doc/created.rid +18 -0
  25. data/doc/fonts.css +167 -0
  26. data/doc/fonts/Lato-Light.ttf +0 -0
  27. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  28. data/doc/fonts/Lato-Regular.ttf +0 -0
  29. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  30. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  31. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  32. data/doc/images/add.png +0 -0
  33. data/doc/images/arrow_up.png +0 -0
  34. data/doc/images/brick.png +0 -0
  35. data/doc/images/brick_link.png +0 -0
  36. data/doc/images/bug.png +0 -0
  37. data/doc/images/bullet_black.png +0 -0
  38. data/doc/images/bullet_toggle_minus.png +0 -0
  39. data/doc/images/bullet_toggle_plus.png +0 -0
  40. data/doc/images/date.png +0 -0
  41. data/doc/images/delete.png +0 -0
  42. data/doc/images/find.png +0 -0
  43. data/doc/images/loadingAnimation.gif +0 -0
  44. data/doc/images/macFFBgHack.png +0 -0
  45. data/doc/images/package.png +0 -0
  46. data/doc/images/page_green.png +0 -0
  47. data/doc/images/page_white_text.png +0 -0
  48. data/doc/images/page_white_width.png +0 -0
  49. data/doc/images/plugin.png +0 -0
  50. data/doc/images/ruby.png +0 -0
  51. data/doc/images/tag_blue.png +0 -0
  52. data/doc/images/tag_green.png +0 -0
  53. data/doc/images/transparent.png +0 -0
  54. data/doc/images/wrench.png +0 -0
  55. data/doc/images/wrench_orange.png +0 -0
  56. data/doc/images/zoom.png +0 -0
  57. data/doc/index.html +116 -0
  58. data/doc/js/darkfish.js +140 -0
  59. data/doc/js/jquery.js +4 -0
  60. data/doc/js/navigation.js +142 -0
  61. data/doc/js/search.js +109 -0
  62. data/doc/js/search_index.js +1 -0
  63. data/doc/js/searcher.js +228 -0
  64. data/doc/prct07_gemspec.html +123 -0
  65. data/doc/rdoc.css +580 -0
  66. data/doc/table_of_contents.html +205 -0
  67. data/lib/prct07.rb +8 -0
  68. data/lib/prct07/exam.rb +80 -0
  69. data/lib/prct07/inter_user.rb +93 -0
  70. data/lib/prct07/lista_doble.rb +181 -0
  71. data/lib/prct07/preg.rb +17 -0
  72. data/lib/prct07/quiz.rb +80 -0
  73. data/lib/prct07/simple_expec.rb +40 -0
  74. data/lib/prct07/verd_fals.rb +27 -0
  75. data/lib/prct07/version.rb +3 -0
  76. data/prct07.gemspec +30 -0
  77. data/spec/prct07_spec.rb +400 -0
  78. data/spec/spec_helper.rb +20 -0
  79. metadata +221 -0
@@ -0,0 +1,231 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Prct07::Preg - 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">Object
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
+ </ul>
92
+ </div>
93
+
94
+ </div>
95
+ </nav>
96
+
97
+ <main role="main" aria-labelledby="class-Prct07::Preg">
98
+ <h1 id="class-Prct07::Preg" class="class">
99
+ class Prct07::Preg
100
+ </h1>
101
+
102
+ <section class="description">
103
+
104
+ </section>
105
+
106
+
107
+
108
+
109
+ <section id="5Buntitled-5D" class="documentation-section">
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <section class="attribute-method-details" class="method-section">
118
+ <header>
119
+ <h3>Attributes</h3>
120
+ </header>
121
+
122
+
123
+ <div id="attribute-i-text" class="method-detail">
124
+ <div class="method-heading attribute-method-heading">
125
+ <span class="method-name">text</span><span
126
+ class="attribute-access-type">[RW]</span>
127
+ </div>
128
+
129
+ <div class="method-description">
130
+
131
+
132
+
133
+ </div>
134
+ </div>
135
+
136
+ </section>
137
+
138
+
139
+
140
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
141
+ <header>
142
+ <h3>Public Class Methods</h3>
143
+ </header>
144
+
145
+
146
+ <div id="method-c-new" class="method-detail ">
147
+
148
+ <div class="method-heading">
149
+ <span class="method-name">new</span><span
150
+ class="method-args">(args)</span>
151
+
152
+ <span class="method-click-advice">click to toggle source</span>
153
+
154
+ </div>
155
+
156
+
157
+ <div class="method-description">
158
+
159
+
160
+
161
+
162
+
163
+
164
+ <div class="method-source-code" id="new-source">
165
+ <pre><span class="ruby-comment"># File lib/prct07/preg.rb, line 10</span>
166
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
167
+ <span class="ruby-ivar">@text</span>= <span class="ruby-identifier">args</span>
168
+ <span class="ruby-keyword">end</span></pre>
169
+ </div>
170
+
171
+ </div>
172
+
173
+
174
+
175
+
176
+ </div>
177
+
178
+
179
+ </section>
180
+
181
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
182
+ <header>
183
+ <h3>Public Instance Methods</h3>
184
+ </header>
185
+
186
+
187
+ <div id="method-i-3C-3D-3E" class="method-detail ">
188
+
189
+ <div class="method-heading">
190
+ <span class="method-name">&lt;=&gt;</span><span
191
+ class="method-args">(other)</span>
192
+
193
+ <span class="method-click-advice">click to toggle source</span>
194
+
195
+ </div>
196
+
197
+
198
+ <div class="method-description">
199
+
200
+
201
+
202
+
203
+
204
+
205
+ <div class="method-source-code" id="3C-3D-3E-source">
206
+ <pre><span class="ruby-comment"># File lib/prct07/preg.rb, line 13</span>
207
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
208
+
209
+ <span class="ruby-keyword">end</span></pre>
210
+ </div>
211
+
212
+ </div>
213
+
214
+
215
+
216
+
217
+ </div>
218
+
219
+
220
+ </section>
221
+
222
+ </section>
223
+ </main>
224
+
225
+
226
+ <footer id="validator-badges" role="contentinfo">
227
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
228
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
229
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
230
+ </footer>
231
+
@@ -0,0 +1,356 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Prct07::SimpleExpec - 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="Preg.html">Prct07::Preg</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-3C-3D">#&lt;=</a>
79
+
80
+ <li ><a href="#method-i-3E-3D">#&gt;=</a>
81
+
82
+ <li ><a href="#method-i-to_html">#to_html</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-Prct07::SimpleExpec">
93
+ <h1 id="class-Prct07::SimpleExpec" class="class">
94
+ class Prct07::SimpleExpec
95
+ </h1>
96
+
97
+ <section class="description">
98
+
99
+ </section>
100
+
101
+
102
+
103
+
104
+ <section id="5Buntitled-5D" class="documentation-section">
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <section class="attribute-method-details" class="method-section">
113
+ <header>
114
+ <h3>Attributes</h3>
115
+ </header>
116
+
117
+
118
+ <div id="attribute-i-distractor" class="method-detail">
119
+ <div class="method-heading attribute-method-heading">
120
+ <span class="method-name">distractor</span><span
121
+ class="attribute-access-type">[RW]</span>
122
+ </div>
123
+
124
+ <div class="method-description">
125
+
126
+
127
+
128
+ </div>
129
+ </div>
130
+
131
+ <div id="attribute-i-verd" class="method-detail">
132
+ <div class="method-heading attribute-method-heading">
133
+ <span class="method-name">verd</span><span
134
+ class="attribute-access-type">[RW]</span>
135
+ </div>
136
+
137
+ <div class="method-description">
138
+
139
+
140
+
141
+ </div>
142
+ </div>
143
+
144
+ </section>
145
+
146
+
147
+
148
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
149
+ <header>
150
+ <h3>Public Class Methods</h3>
151
+ </header>
152
+
153
+
154
+ <div id="method-c-new" class="method-detail ">
155
+
156
+ <div class="method-heading">
157
+ <span class="method-name">new</span><span
158
+ class="method-args">(args)</span>
159
+
160
+ <span class="method-click-advice">click to toggle source</span>
161
+
162
+ </div>
163
+
164
+
165
+ <div class="method-description">
166
+
167
+
168
+
169
+
170
+ <div class="method-calls-super">
171
+ Calls superclass method
172
+ <a href="Preg.html#method-c-new">Prct07::Preg.new</a>
173
+ </div>
174
+
175
+
176
+
177
+ <div class="method-source-code" id="new-source">
178
+ <pre><span class="ruby-comment"># File lib/prct07/simple_expec.rb, line 9</span>
179
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
180
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value">:text</span>])
181
+ <span class="ruby-ivar">@verd</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:verd</span>]
182
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&#39;Specify :right&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@verd</span>
183
+ <span class="ruby-ivar">@distractor</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:distractor</span>]
184
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&#39;Specify :distractor&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@distractor</span>
185
+ <span class="ruby-keyword">end</span></pre>
186
+ </div>
187
+
188
+ </div>
189
+
190
+
191
+
192
+
193
+ </div>
194
+
195
+
196
+ </section>
197
+
198
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
199
+ <header>
200
+ <h3>Public Instance Methods</h3>
201
+ </header>
202
+
203
+
204
+ <div id="method-i-3C-3D" class="method-detail ">
205
+
206
+ <div class="method-heading">
207
+ <span class="method-name">&lt;=</span><span
208
+ class="method-args">(other)</span>
209
+
210
+ <span class="method-click-advice">click to toggle source</span>
211
+
212
+ </div>
213
+
214
+
215
+ <div class="method-description">
216
+
217
+
218
+
219
+
220
+
221
+
222
+ <div class="method-source-code" id="3C-3D-source">
223
+ <pre><span class="ruby-comment"># File lib/prct07/simple_expec.rb, line 32</span>
224
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=</span> (<span class="ruby-identifier">other</span>)
225
+ <span class="ruby-identifier">distractor</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">distractor</span>.<span class="ruby-identifier">size</span>
226
+ <span class="ruby-keyword">end</span></pre>
227
+ </div>
228
+
229
+ </div>
230
+
231
+
232
+
233
+
234
+ </div>
235
+
236
+
237
+ <div id="method-i-3E-3D" class="method-detail ">
238
+
239
+ <div class="method-heading">
240
+ <span class="method-name">&gt;=</span><span
241
+ class="method-args">(other)</span>
242
+
243
+ <span class="method-click-advice">click to toggle source</span>
244
+
245
+ </div>
246
+
247
+
248
+ <div class="method-description">
249
+
250
+
251
+
252
+
253
+
254
+
255
+ <div class="method-source-code" id="3E-3D-source">
256
+ <pre><span class="ruby-comment"># File lib/prct07/simple_expec.rb, line 36</span>
257
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&gt;=</span> (<span class="ruby-identifier">other</span>)
258
+ <span class="ruby-identifier">distractor</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">distractor</span>.<span class="ruby-identifier">size</span>
259
+ <span class="ruby-keyword">end</span></pre>
260
+ </div>
261
+
262
+ </div>
263
+
264
+
265
+
266
+
267
+ </div>
268
+
269
+
270
+ <div id="method-i-to_html" class="method-detail ">
271
+
272
+ <div class="method-heading">
273
+ <span class="method-name">to_html</span><span
274
+ class="method-args">()</span>
275
+
276
+ <span class="method-click-advice">click to toggle source</span>
277
+
278
+ </div>
279
+
280
+
281
+ <div class="method-description">
282
+
283
+
284
+
285
+
286
+
287
+
288
+ <div class="method-source-code" id="to_html-source">
289
+ <pre><span class="ruby-comment"># File lib/prct07/simple_expec.rb, line 16</span>
290
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_html</span>
291
+ <span class="ruby-identifier">options</span> = <span class="ruby-ivar">@distractor</span><span class="ruby-operator">+</span>[<span class="ruby-ivar">@verd</span>]
292
+ <span class="ruby-identifier">options</span> = <span class="ruby-identifier">options</span>.<span class="ruby-identifier">sample</span> <span class="ruby-comment"># Metodo que baraja un array</span>
293
+ <span class="ruby-identifier">options</span> = <span class="ruby-string">&#39;&#39;</span>
294
+ <span class="ruby-identifier">options</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">options</span><span class="ruby-operator">|</span>
295
+ <span class="ruby-identifier">options</span> <span class="ruby-operator">+=</span> <span class="ruby-node">%Q{&lt;input type = &quot;radio&quot; value= &quot;#{options}&quot; name = 0 &gt; #{options}\n}</span>
296
+ <span class="ruby-identifier">html</span> = <span class="ruby-node">%Q{
297
+ {#{@text}}&lt;br/&gt;
298
+ {#{options}}
299
+ }</span>
300
+ <span class="ruby-keyword">end</span>
301
+ <span class="ruby-keyword">end</span></pre>
302
+ </div>
303
+
304
+ </div>
305
+
306
+
307
+
308
+
309
+ </div>
310
+
311
+
312
+ <div id="method-i-to_s" class="method-detail ">
313
+
314
+ <div class="method-heading">
315
+ <span class="method-name">to_s</span><span
316
+ class="method-args">()</span>
317
+
318
+ <span class="method-click-advice">click to toggle source</span>
319
+
320
+ </div>
321
+
322
+
323
+ <div class="method-description">
324
+
325
+
326
+
327
+
328
+
329
+
330
+ <div class="method-source-code" id="to_s-source">
331
+ <pre><span class="ruby-comment"># File lib/prct07/simple_expec.rb, line 28</span>
332
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
333
+ <span class="ruby-node">&quot;#{@text}#{@verd}#{@distractor}&quot;</span>
334
+ <span class="ruby-keyword">end</span></pre>
335
+ </div>
336
+
337
+ </div>
338
+
339
+
340
+
341
+
342
+ </div>
343
+
344
+
345
+ </section>
346
+
347
+ </section>
348
+ </main>
349
+
350
+
351
+ <footer id="validator-badges" role="contentinfo">
352
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
353
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
354
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
355
+ </footer>
356
+