examen 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +14 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +6 -0
  6. data/Gemfile +8 -0
  7. data/Gemfile.lock +91 -0
  8. data/Guardfile +40 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +65 -0
  11. data/README.rdoc +65 -0
  12. data/Rakefile +25 -0
  13. data/doc/prct10.pdf +0 -0
  14. data/doc/prct5.pdf +0 -0
  15. data/doc/prct6.pdf +0 -0
  16. data/doc/prct7.pdf +0 -0
  17. data/doc/prct8.pdf +0 -0
  18. data/doc/prct9.pdf +0 -0
  19. data/doc/pruebas/index.html +430 -0
  20. data/examen.gemspec +29 -0
  21. data/html/Exam.html +296 -0
  22. data/html/Examen.html +119 -0
  23. data/html/ExamenIu.html +278 -0
  24. data/html/Lista.html +536 -0
  25. data/html/Object.html +119 -0
  26. data/html/Pregunta.html +361 -0
  27. data/html/PreguntaVerdaderoFalso.html +169 -0
  28. data/html/Quiz.html +363 -0
  29. data/html/README_rdoc.html +154 -0
  30. data/html/created.rid +11 -0
  31. data/html/fonts.css +167 -0
  32. data/html/fonts/Lato-Light.ttf +0 -0
  33. data/html/fonts/Lato-LightItalic.ttf +0 -0
  34. data/html/fonts/Lato-Regular.ttf +0 -0
  35. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  36. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  37. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  38. data/html/images/add.png +0 -0
  39. data/html/images/arrow_up.png +0 -0
  40. data/html/images/brick.png +0 -0
  41. data/html/images/brick_link.png +0 -0
  42. data/html/images/bug.png +0 -0
  43. data/html/images/bullet_black.png +0 -0
  44. data/html/images/bullet_toggle_minus.png +0 -0
  45. data/html/images/bullet_toggle_plus.png +0 -0
  46. data/html/images/date.png +0 -0
  47. data/html/images/delete.png +0 -0
  48. data/html/images/find.png +0 -0
  49. data/html/images/loadingAnimation.gif +0 -0
  50. data/html/images/macFFBgHack.png +0 -0
  51. data/html/images/package.png +0 -0
  52. data/html/images/page_green.png +0 -0
  53. data/html/images/page_white_text.png +0 -0
  54. data/html/images/page_white_width.png +0 -0
  55. data/html/images/plugin.png +0 -0
  56. data/html/images/ruby.png +0 -0
  57. data/html/images/tag_blue.png +0 -0
  58. data/html/images/tag_green.png +0 -0
  59. data/html/images/transparent.png +0 -0
  60. data/html/images/wrench.png +0 -0
  61. data/html/images/wrench_orange.png +0 -0
  62. data/html/images/zoom.png +0 -0
  63. data/html/index.html +178 -0
  64. data/html/js/darkfish.js +140 -0
  65. data/html/js/jquery.js +4 -0
  66. data/html/js/navigation.js +142 -0
  67. data/html/js/search.js +109 -0
  68. data/html/js/search_index.js +1 -0
  69. data/html/js/searcher.js +228 -0
  70. data/html/rdoc.css +580 -0
  71. data/html/table_of_contents.html +204 -0
  72. data/lib/examen.rb +3 -0
  73. data/lib/examen/base.rb +3 -0
  74. data/lib/examen/exam.rb +24 -0
  75. data/lib/examen/examen_iu.rb +38 -0
  76. data/lib/examen/lista.rb +108 -0
  77. data/lib/examen/pregunta.rb +38 -0
  78. data/lib/examen/pregunta_verdadero_falso.rb +16 -0
  79. data/lib/examen/quiz.rb +35 -0
  80. data/lib/examen/version.rb +4 -0
  81. data/spec/examen_spec.rb +334 -0
  82. data/spec/spec_helper.rb +99 -0
  83. metadata +229 -0
@@ -0,0 +1,154 @@
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
+
58
+ <div id="project-metadata">
59
+ <div id="fileindex-section" class="nav-section">
60
+ <h3>Pages</h3>
61
+
62
+ <ul class="link-list">
63
+
64
+ <li><a href="./README_rdoc.html">README</a>
65
+
66
+ </ul>
67
+ </div>
68
+
69
+ </div>
70
+ </nav>
71
+
72
+ <main role="main" aria-label="Page README.rdoc">
73
+
74
+ <p>Desarrollo de gema Ruby: Gestión de Exámenes</p>
75
+
76
+ <h6 id="label-"><span><a href="#label-">&para;</a> <a href="#documentation">&uarr;</a></span></h6>
77
+
78
+ <p>[![Coverage Status](<a
79
+ href="https://coveralls.io/repos/alu0100600810/LPP_T_03/badge.png?branch=desarrollo)](https://coveralls.io/r/alu0100600810/LPP_T_03?branch=master">coveralls.io/repos/alu0100600810/LPP_T_03/badge.png?branch=desarrollo)](https://coveralls.io/r/alu0100600810/LPP_T_03?branch=master</a>)</p>
80
+
81
+ <p>## Descripción del equipo</p>
82
+
83
+ <pre>* Nombre del equipo: **LPP_T_3**
84
+ * Miembros del equipo:
85
+ * Ayose Jesús Castillo Barroso
86
+ * César Ravelo Martínez</pre>
87
+
88
+ <p>## Descripción de la práctica</p>
89
+
90
+ <pre>La práctica propone implementar una gema Ruby para representar exámenes de preguntas simples con pruebas RSpec para seguir el modelo TDD y su correcto funcionamiento. La estructura del repositorio es la siguiente:
91
+
92
+ * [Documentación](doc/)
93
+ * [Documentación de la Práctica](doc/)
94
+ * [Resultados de las Pruebas](doc/pruebas/index.html)
95
+ * [Librerías](lib/)
96
+ * [Gema Ruby](lib/examen/base.rb)
97
+ * [Código fuente de la clase Examen](lib/examen/examen.rb)
98
+ * [Código fuente de la clase Pregunta](lib/examen/pregunta.rb)
99
+ * [Códido fuente de la clase Pregunta Verdadero y Falso](lib/examen/pregunta_verdadero_falso.rb)
100
+ * [RSpec](spec/)
101
+ * [Fichero Rake con las tareas necesarias definidas](Rakefile)
102
+ * Fichero readme con esta documentación</pre>
103
+
104
+ <p># <a href="Examen.html">Examen</a></p>
105
+
106
+ <p>Gema Ruby para representar exámenes formados por preguntas de selección
107
+ simple. La secuencia de preguntas que pueda formar un examen viene definida
108
+ como una lista enlazada simple definida en la misma clase <a
109
+ href="Examen.html">Examen</a> donde cada nodo representa una instancia de
110
+ la clase <a href="Pregunta.html">Pregunta</a>.</p>
111
+
112
+ <p>## Instalación</p>
113
+
114
+ <p>Añadir esta linea al Gemfile de su aplicación</p>
115
+
116
+ <p>“`ruby gem &#39;examen&#39; “`</p>
117
+
118
+ <p>y ejecutar:</p>
119
+
120
+ <pre>$ bundle</pre>
121
+
122
+ <p>O instálelo usted mismo:</p>
123
+
124
+ <pre>$ gem install examen</pre>
125
+
126
+ <p>## Uso</p>
127
+
128
+ <p>Para instanciar un objeto <a href="Pregunta.html">Pregunta</a> basta con
129
+ indicarle:</p>
130
+ <ul><li>
131
+ <p>Una pregunta</p>
132
+ </li><li>
133
+ <p>Una respuesta correcta</p>
134
+ </li><li>
135
+ <p>Un conjunto de respuestas erróneas</p>
136
+ </li></ul>
137
+
138
+ <p>Puede mostrar por pantalla la pregunta invocando el método
139
+ [:to_s](lib/examen/pregunta.rb).</p>
140
+
141
+ <p>Para instanciar un objeto <a href="Examen.html">Examen</a> basta con
142
+ indicarle una instancia de la clase <a href="Pregunta.html">Pregunta</a>.
143
+ Puede mostrar por pantalla la pregunta invocando el método
144
+ [:to_s](lib/examen/examen.rb).</p>
145
+ </main>
146
+
147
+
148
+
149
+ <footer id="validator-badges" role="contentinfo">
150
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
151
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
152
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
153
+ </footer>
154
+
data/html/created.rid ADDED
@@ -0,0 +1,11 @@
1
+ Thu, 11 Dec 2014 13:40:38 +0000
2
+ README.rdoc Thu, 11 Dec 2014 12:48:17 +0000
3
+ lib/examen.rb Thu, 20 Nov 2014 11:34:07 +0000
4
+ lib/examen/base.rb Thu, 11 Dec 2014 13:35:59 +0000
5
+ lib/examen/exam.rb Thu, 11 Dec 2014 12:48:17 +0000
6
+ lib/examen/examen_iu.rb Thu, 11 Dec 2014 12:48:17 +0000
7
+ lib/examen/lista.rb Thu, 11 Dec 2014 13:35:59 +0000
8
+ lib/examen/pregunta.rb Thu, 11 Dec 2014 12:48:17 +0000
9
+ lib/examen/pregunta_verdadero_falso.rb Thu, 11 Dec 2014 12:48:17 +0000
10
+ lib/examen/quiz.rb Thu, 11 Dec 2014 13:40:19 +0000
11
+ lib/examen/version.rb Thu, 20 Nov 2014 11:34:07 +0000
data/html/fonts.css ADDED
@@ -0,0 +1,167 @@
1
+ /*
2
+ * Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
3
+ * with Reserved Font Name "Source". All Rights Reserved. Source is a
4
+ * trademark of Adobe Systems Incorporated in the United States and/or other
5
+ * countries.
6
+ *
7
+ * This Font Software is licensed under the SIL Open Font License, Version
8
+ * 1.1.
9
+ *
10
+ * This license is copied below, and is also available with a FAQ at:
11
+ * http://scripts.sil.org/OFL
12
+ */
13
+
14
+ @font-face {
15
+ font-family: "Source Code Pro";
16
+ font-style: normal;
17
+ font-weight: 400;
18
+ src: local("Source Code Pro"),
19
+ local("SourceCodePro-Regular"),
20
+ url("fonts/SourceCodePro-Regular.ttf") format("truetype");
21
+ }
22
+
23
+ @font-face {
24
+ font-family: "Source Code Pro";
25
+ font-style: normal;
26
+ font-weight: 700;
27
+ src: local("Source Code Pro Bold"),
28
+ local("SourceCodePro-Bold"),
29
+ url("fonts/SourceCodePro-Bold.ttf") format("truetype");
30
+ }
31
+
32
+ /*
33
+ * Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
34
+ * with Reserved Font Name Lato.
35
+ *
36
+ * This Font Software is licensed under the SIL Open Font License, Version
37
+ * 1.1.
38
+ *
39
+ * This license is copied below, and is also available with a FAQ at:
40
+ * http://scripts.sil.org/OFL
41
+ */
42
+
43
+ @font-face {
44
+ font-family: "Lato";
45
+ font-style: normal;
46
+ font-weight: 300;
47
+ src: local("Lato Light"),
48
+ local("Lato-Light"),
49
+ url("fonts/Lato-Light.ttf") format("truetype");
50
+ }
51
+
52
+ @font-face {
53
+ font-family: "Lato";
54
+ font-style: italic;
55
+ font-weight: 300;
56
+ src: local("Lato Light Italic"),
57
+ local("Lato-LightItalic"),
58
+ url("fonts/Lato-LightItalic.ttf") format("truetype");
59
+ }
60
+
61
+ @font-face {
62
+ font-family: "Lato";
63
+ font-style: normal;
64
+ font-weight: 700;
65
+ src: local("Lato Regular"),
66
+ local("Lato-Regular"),
67
+ url("fonts/Lato-Regular.ttf") format("truetype");
68
+ }
69
+
70
+ @font-face {
71
+ font-family: "Lato";
72
+ font-style: italic;
73
+ font-weight: 700;
74
+ src: local("Lato Italic"),
75
+ local("Lato-Italic"),
76
+ url("fonts/Lato-RegularItalic.ttf") format("truetype");
77
+ }
78
+
79
+ /*
80
+ * -----------------------------------------------------------
81
+ * SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
82
+ * -----------------------------------------------------------
83
+ *
84
+ * PREAMBLE
85
+ * The goals of the Open Font License (OFL) are to stimulate worldwide
86
+ * development of collaborative font projects, to support the font creation
87
+ * efforts of academic and linguistic communities, and to provide a free and
88
+ * open framework in which fonts may be shared and improved in partnership
89
+ * with others.
90
+ *
91
+ * The OFL allows the licensed fonts to be used, studied, modified and
92
+ * redistributed freely as long as they are not sold by themselves. The
93
+ * fonts, including any derivative works, can be bundled, embedded,
94
+ * redistributed and/or sold with any software provided that any reserved
95
+ * names are not used by derivative works. The fonts and derivatives,
96
+ * however, cannot be released under any other type of license. The
97
+ * requirement for fonts to remain under this license does not apply
98
+ * to any document created using the fonts or their derivatives.
99
+ *
100
+ * DEFINITIONS
101
+ * "Font Software" refers to the set of files released by the Copyright
102
+ * Holder(s) under this license and clearly marked as such. This may
103
+ * include source files, build scripts and documentation.
104
+ *
105
+ * "Reserved Font Name" refers to any names specified as such after the
106
+ * copyright statement(s).
107
+ *
108
+ * "Original Version" refers to the collection of Font Software components as
109
+ * distributed by the Copyright Holder(s).
110
+ *
111
+ * "Modified Version" refers to any derivative made by adding to, deleting,
112
+ * or substituting -- in part or in whole -- any of the components of the
113
+ * Original Version, by changing formats or by porting the Font Software to a
114
+ * new environment.
115
+ *
116
+ * "Author" refers to any designer, engineer, programmer, technical
117
+ * writer or other person who contributed to the Font Software.
118
+ *
119
+ * PERMISSION & CONDITIONS
120
+ * Permission is hereby granted, free of charge, to any person obtaining
121
+ * a copy of the Font Software, to use, study, copy, merge, embed, modify,
122
+ * redistribute, and sell modified and unmodified copies of the Font
123
+ * Software, subject to the following conditions:
124
+ *
125
+ * 1) Neither the Font Software nor any of its individual components,
126
+ * in Original or Modified Versions, may be sold by itself.
127
+ *
128
+ * 2) Original or Modified Versions of the Font Software may be bundled,
129
+ * redistributed and/or sold with any software, provided that each copy
130
+ * contains the above copyright notice and this license. These can be
131
+ * included either as stand-alone text files, human-readable headers or
132
+ * in the appropriate machine-readable metadata fields within text or
133
+ * binary files as long as those fields can be easily viewed by the user.
134
+ *
135
+ * 3) No Modified Version of the Font Software may use the Reserved Font
136
+ * Name(s) unless explicit written permission is granted by the corresponding
137
+ * Copyright Holder. This restriction only applies to the primary font name as
138
+ * presented to the users.
139
+ *
140
+ * 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
141
+ * Software shall not be used to promote, endorse or advertise any
142
+ * Modified Version, except to acknowledge the contribution(s) of the
143
+ * Copyright Holder(s) and the Author(s) or with their explicit written
144
+ * permission.
145
+ *
146
+ * 5) The Font Software, modified or unmodified, in part or in whole,
147
+ * must be distributed entirely under this license, and must not be
148
+ * distributed under any other license. The requirement for fonts to
149
+ * remain under this license does not apply to any document created
150
+ * using the Font Software.
151
+ *
152
+ * TERMINATION
153
+ * This license becomes null and void if any of the above conditions are
154
+ * not met.
155
+ *
156
+ * DISCLAIMER
157
+ * THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
158
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
159
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
160
+ * OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
161
+ * COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
162
+ * INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
163
+ * DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
164
+ * FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
165
+ * OTHER DEALINGS IN THE FONT SOFTWARE.
166
+ */
167
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/html/index.html ADDED
@@ -0,0 +1,178 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>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
+
40
+ <div id="search-section" role="search" class="project-section initially-hidden">
41
+ <form action="#" method="get" accept-charset="utf-8">
42
+ <div id="search-field-wrapper">
43
+ <input id="search-field" role="combobox" aria-label="Search"
44
+ aria-autocomplete="list" aria-controls="search-results"
45
+ type="text" name="search" placeholder="Search" spellcheck="false"
46
+ title="Type to search, Up and Down to navigate, Enter to load">
47
+ </div>
48
+
49
+ <ul id="search-results" aria-label="Search Results"
50
+ aria-busy="false" aria-expanded="false"
51
+ aria-atomic="false" class="initially-hidden"></ul>
52
+ </form>
53
+ </div>
54
+
55
+ </div>
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./README_rdoc.html">README</a>
64
+
65
+ </ul>
66
+ </div>
67
+
68
+ <div id="classindex-section" class="nav-section">
69
+ <h3>Class and Module Index</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="./Exam.html">Exam</a>
74
+
75
+ <li><a href="./Examen.html">Examen</a>
76
+
77
+ <li><a href="./ExamenIu.html">ExamenIu</a>
78
+
79
+ <li><a href="./Lista.html">Lista</a>
80
+
81
+ <li><a href="./Object.html">Object</a>
82
+
83
+ <li><a href="./Pregunta.html">Pregunta</a>
84
+
85
+ <li><a href="./PreguntaVerdaderoFalso.html">PreguntaVerdaderoFalso</a>
86
+
87
+ <li><a href="./Quiz.html">Quiz</a>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+ </div>
93
+ </nav>
94
+
95
+ <main role="main">
96
+
97
+
98
+ <p>Desarrollo de gema Ruby: Gestión de Exámenes</p>
99
+
100
+ <h6 id="label-"><span><a href="#label-">&para;</a> <a href="#documentation">&uarr;</a></span></h6>
101
+
102
+ <p>[![Coverage Status](<a
103
+ href="https://coveralls.io/repos/alu0100600810/LPP_T_03/badge.png?branch=desarrollo)](https://coveralls.io/r/alu0100600810/LPP_T_03?branch=master">coveralls.io/repos/alu0100600810/LPP_T_03/badge.png?branch=desarrollo)](https://coveralls.io/r/alu0100600810/LPP_T_03?branch=master</a>)</p>
104
+
105
+ <p>## Descripción del equipo</p>
106
+
107
+ <pre>* Nombre del equipo: **LPP_T_3**
108
+ * Miembros del equipo:
109
+ * Ayose Jesús Castillo Barroso
110
+ * César Ravelo Martínez</pre>
111
+
112
+ <p>## Descripción de la práctica</p>
113
+
114
+ <pre>La práctica propone implementar una gema Ruby para representar exámenes de preguntas simples con pruebas RSpec para seguir el modelo TDD y su correcto funcionamiento. La estructura del repositorio es la siguiente:
115
+
116
+ * [Documentación](doc/)
117
+ * [Documentación de la Práctica](doc/)
118
+ * [Resultados de las Pruebas](doc/pruebas/index.html)
119
+ * [Librerías](lib/)
120
+ * [Gema Ruby](lib/examen/base.rb)
121
+ * [Código fuente de la clase Examen](lib/examen/examen.rb)
122
+ * [Código fuente de la clase Pregunta](lib/examen/pregunta.rb)
123
+ * [Códido fuente de la clase Pregunta Verdadero y Falso](lib/examen/pregunta_verdadero_falso.rb)
124
+ * [RSpec](spec/)
125
+ * [Fichero Rake con las tareas necesarias definidas](Rakefile)
126
+ * Fichero readme con esta documentación</pre>
127
+
128
+ <p># <a href="Examen.html">Examen</a></p>
129
+
130
+ <p>Gema Ruby para representar exámenes formados por preguntas de selección
131
+ simple. La secuencia de preguntas que pueda formar un examen viene definida
132
+ como una lista enlazada simple definida en la misma clase <a
133
+ href="Examen.html">Examen</a> donde cada nodo representa una instancia de
134
+ la clase <a href="Pregunta.html">Pregunta</a>.</p>
135
+
136
+ <p>## Instalación</p>
137
+
138
+ <p>Añadir esta linea al Gemfile de su aplicación</p>
139
+
140
+ <p>“`ruby gem &#39;examen&#39; “`</p>
141
+
142
+ <p>y ejecutar:</p>
143
+
144
+ <pre>$ bundle</pre>
145
+
146
+ <p>O instálelo usted mismo:</p>
147
+
148
+ <pre>$ gem install examen</pre>
149
+
150
+ <p>## Uso</p>
151
+
152
+ <p>Para instanciar un objeto <a href="Pregunta.html">Pregunta</a> basta con
153
+ indicarle:</p>
154
+ <ul><li>
155
+ <p>Una pregunta</p>
156
+ </li><li>
157
+ <p>Una respuesta correcta</p>
158
+ </li><li>
159
+ <p>Un conjunto de respuestas erróneas</p>
160
+ </li></ul>
161
+
162
+ <p>Puede mostrar por pantalla la pregunta invocando el método
163
+ [:to_s](lib/examen/pregunta.rb).</p>
164
+
165
+ <p>Para instanciar un objeto <a href="Examen.html">Examen</a> basta con
166
+ indicarle una instancia de la clase <a href="Pregunta.html">Pregunta</a>.
167
+ Puede mostrar por pantalla la pregunta invocando el método
168
+ [:to_s](lib/examen/examen.rb).</p>
169
+ </main>
170
+
171
+
172
+
173
+ <footer id="validator-badges" role="contentinfo">
174
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
175
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
176
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
177
+ </footer>
178
+