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,312 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Prct07::VerdFals - 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_s">#to_s</a>
83
+
84
+ </ul>
85
+ </div>
86
+
87
+ </div>
88
+ </nav>
89
+
90
+ <main role="main" aria-labelledby="class-Prct07::VerdFals">
91
+ <h1 id="class-Prct07::VerdFals" class="class">
92
+ class Prct07::VerdFals
93
+ </h1>
94
+
95
+ <section class="description">
96
+
97
+ </section>
98
+
99
+
100
+
101
+
102
+ <section id="5Buntitled-5D" class="documentation-section">
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+ <section class="attribute-method-details" class="method-section">
111
+ <header>
112
+ <h3>Attributes</h3>
113
+ </header>
114
+
115
+
116
+ <div id="attribute-i-fals" class="method-detail">
117
+ <div class="method-heading attribute-method-heading">
118
+ <span class="method-name">fals</span><span
119
+ class="attribute-access-type">[RW]</span>
120
+ </div>
121
+
122
+ <div class="method-description">
123
+
124
+
125
+
126
+ </div>
127
+ </div>
128
+
129
+ <div id="attribute-i-verd" class="method-detail">
130
+ <div class="method-heading attribute-method-heading">
131
+ <span class="method-name">verd</span><span
132
+ class="attribute-access-type">[RW]</span>
133
+ </div>
134
+
135
+ <div class="method-description">
136
+
137
+
138
+
139
+ </div>
140
+ </div>
141
+
142
+ </section>
143
+
144
+
145
+
146
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
147
+ <header>
148
+ <h3>Public Class Methods</h3>
149
+ </header>
150
+
151
+
152
+ <div id="method-c-new" class="method-detail ">
153
+
154
+ <div class="method-heading">
155
+ <span class="method-name">new</span><span
156
+ class="method-args">(args)</span>
157
+
158
+ <span class="method-click-advice">click to toggle source</span>
159
+
160
+ </div>
161
+
162
+
163
+ <div class="method-description">
164
+
165
+
166
+
167
+
168
+ <div class="method-calls-super">
169
+ Calls superclass method
170
+ <a href="Preg.html#method-c-new">Prct07::Preg.new</a>
171
+ </div>
172
+
173
+
174
+
175
+ <div class="method-source-code" id="new-source">
176
+ <pre><span class="ruby-comment"># File lib/prct07/verd_fals.rb, line 7</span>
177
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
178
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">args</span>[<span class="ruby-value">:text</span>])
179
+ <span class="ruby-ivar">@verd</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:verd</span>]
180
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&#39;Specify :verd&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@verd</span>
181
+ <span class="ruby-ivar">@fals</span> = <span class="ruby-identifier">args</span>[<span class="ruby-value">:fals</span>]
182
+ <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">&#39;Specify :fals&#39;</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@fals</span>
183
+ <span class="ruby-keyword">end</span></pre>
184
+ </div>
185
+
186
+ </div>
187
+
188
+
189
+
190
+
191
+ </div>
192
+
193
+
194
+ </section>
195
+
196
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
197
+ <header>
198
+ <h3>Public Instance Methods</h3>
199
+ </header>
200
+
201
+
202
+ <div id="method-i-3C-3D" class="method-detail ">
203
+
204
+ <div class="method-heading">
205
+ <span class="method-name">&lt;=</span><span
206
+ class="method-args">(other)</span>
207
+
208
+ <span class="method-click-advice">click to toggle source</span>
209
+
210
+ </div>
211
+
212
+
213
+ <div class="method-description">
214
+
215
+
216
+
217
+
218
+
219
+
220
+ <div class="method-source-code" id="3C-3D-source">
221
+ <pre><span class="ruby-comment"># File lib/prct07/verd_fals.rb, line 17</span>
222
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=</span>(<span class="ruby-identifier">other</span>)
223
+ <span class="ruby-identifier">verd</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">verd</span>.<span class="ruby-identifier">size</span>
224
+ <span class="ruby-keyword">end</span></pre>
225
+ </div>
226
+
227
+ </div>
228
+
229
+
230
+
231
+
232
+ </div>
233
+
234
+
235
+ <div id="method-i-3E-3D" class="method-detail ">
236
+
237
+ <div class="method-heading">
238
+ <span class="method-name">&gt;=</span><span
239
+ class="method-args">(other)</span>
240
+
241
+ <span class="method-click-advice">click to toggle source</span>
242
+
243
+ </div>
244
+
245
+
246
+ <div class="method-description">
247
+
248
+
249
+
250
+
251
+
252
+
253
+ <div class="method-source-code" id="3E-3D-source">
254
+ <pre><span class="ruby-comment"># File lib/prct07/verd_fals.rb, line 21</span>
255
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&gt;=</span> (<span class="ruby-identifier">other</span>)
256
+ <span class="ruby-identifier">verd</span>.<span class="ruby-identifier">size</span> <span class="ruby-operator">&gt;=</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">verd</span>.<span class="ruby-identifier">size</span>
257
+ <span class="ruby-keyword">end</span></pre>
258
+ </div>
259
+
260
+ </div>
261
+
262
+
263
+
264
+
265
+ </div>
266
+
267
+
268
+ <div id="method-i-to_s" class="method-detail ">
269
+
270
+ <div class="method-heading">
271
+ <span class="method-name">to_s</span><span
272
+ class="method-args">()</span>
273
+
274
+ <span class="method-click-advice">click to toggle source</span>
275
+
276
+ </div>
277
+
278
+
279
+ <div class="method-description">
280
+
281
+
282
+
283
+
284
+
285
+
286
+ <div class="method-source-code" id="to_s-source">
287
+ <pre><span class="ruby-comment"># File lib/prct07/verd_fals.rb, line 14</span>
288
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
289
+ <span class="ruby-node">&quot;#{@text}#{@verd}#{@fals}&quot;</span>
290
+ <span class="ruby-keyword">end</span></pre>
291
+ </div>
292
+
293
+ </div>
294
+
295
+
296
+
297
+
298
+ </div>
299
+
300
+
301
+ </section>
302
+
303
+ </section>
304
+ </main>
305
+
306
+
307
+ <footer id="validator-badges" role="contentinfo">
308
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
309
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
310
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
311
+ </footer>
312
+
@@ -0,0 +1,163 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>README - 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-Prct07">Prct07</a>
62
+ <li><a href="#label-Installation">Installation</a>
63
+ <li><a href="#label-Usage">Usage</a>
64
+ <li><a href="#label-Contributing">Contributing</a>
65
+ </ul>
66
+ </div>
67
+
68
+
69
+ <div id="project-metadata">
70
+ <div id="fileindex-section" class="nav-section">
71
+ <h3>Pages</h3>
72
+
73
+ <ul class="link-list">
74
+
75
+ <li><a href="./Gemfile.html">Gemfile</a>
76
+
77
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
78
+
79
+ <li><a href="./Guardfile.html">Guardfile</a>
80
+
81
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
82
+
83
+ <li><a href="./README_md.html">README</a>
84
+
85
+ <li><a href="./Rakefile.html">Rakefile</a>
86
+
87
+ <li><a href="./prct07_gemspec.html">prct07.gemspec</a>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+ </div>
93
+ </nav>
94
+
95
+ <main role="main" aria-label="Page README.md">
96
+
97
+ <h1 id="label-Prct07"><a href="Prct07.html">Prct07</a><span><a href="#label-Prct07">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
98
+
99
+ <p>TODO: Write a gem description</p>
100
+
101
+ <h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
102
+
103
+ <p>Add this line to your application&#39;s Gemfile:</p>
104
+
105
+ <pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-string">&#39;prct07&#39;</span>
106
+ </pre>
107
+
108
+ <p>And then execute:</p>
109
+
110
+ <pre>$ bundle</pre>
111
+
112
+ <p>Or install it yourself as:</p>
113
+
114
+ <pre>$ gem install prct07</pre>
115
+
116
+ <h2 id="label-Usage">Usage<span><a href="#label-Usage">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
117
+ <ol><li>
118
+ <p>Considere la jerarqu ́ıa de clases Ruby para representar preguntas de
119
+ Seleccio ́n Simple y de Ver- dadero y Falso de pr ́acticas anteriores.
120
+ Modif ́ıquela de manera que las instancias sean comparables. Utilizar la
121
+ metodolog ́ıa de desarrollo dirigido por pruebas (Test Driven Development -
122
+ TDD) y la herramienta RSpec.</p>
123
+ </li><li>
124
+ <p>Considere la clase Ruby para representar y gestionar listas enlazadas
125
+ (Linked List) de pr ́acticas anteriores. Modif ́ıquela de manera que las
126
+ instancias sean enumerables. Utilizar la metodolog ́ıa de desarrollo
127
+ dirigido por pruebas (Test Driven Development - TDD) y la herramienta
128
+ RSpec.</p>
129
+ </li><li>
130
+ <p>Repartir las tareas entre los miembros del Equipo de Trabajo. Utilizar la
131
+ estructura del ‘directorio de trabajo del equipo’ generada con Bundler en
132
+ pr ́acticas anteriores. Todos los miembros del equipo, han de realizar al
133
+ menos una confirmacio ́n e incorporarla al repositorio compartido.</p>
134
+ </li></ol>
135
+
136
+ <p>TODO: Write usage instructions here adonai hernández sánchez noé campos
137
+ diaz</p>
138
+
139
+ <h2 id="label-Contributing">Contributing<span><a href="#label-Contributing">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
140
+ <ol><li>
141
+ <p>Fork it ( <a
142
+ href="https://github.com/[my-github-username]/prct07/fork">github.com/[my-github-username]/prct07/fork</a>
143
+ )</p>
144
+ </li><li>
145
+ <p>Create your feature branch (<code>git checkout -b my-new-feature</code>)</p>
146
+ </li><li>
147
+ <p>Commit your changes (<code>git commit -am &#39;Add some
148
+ feature&#39;</code>)</p>
149
+ </li><li>
150
+ <p>Push to the branch (<code>git push origin my-new-feature</code>)</p>
151
+ </li><li>
152
+ <p>Create a new Pull Request</p>
153
+ </li></ol>
154
+ </main>
155
+
156
+
157
+
158
+ <footer id="validator-badges" role="contentinfo">
159
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
160
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
161
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
162
+ </footer>
163
+