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.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +20 -0
  4. data/.rspec +2 -0
  5. data/.travis.yml +7 -0
  6. data/Gemfile +4 -0
  7. data/Guardfile +38 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +7 -0
  10. data/README.rdoc +3 -0
  11. data/Rakefile +13 -0
  12. data/exam.gemspec +32 -0
  13. data/html/Exam.html +112 -0
  14. data/html/Exam/DList.html +569 -0
  15. data/html/Exam/Examen.html +335 -0
  16. data/html/Exam/Interfaz.html +333 -0
  17. data/html/Exam/List.html +323 -0
  18. data/html/Exam/Test.html +384 -0
  19. data/html/Exam/ToF.html +164 -0
  20. data/html/Inversor.html +112 -0
  21. data/html/Inverter.html +164 -0
  22. data/html/Object.html +119 -0
  23. data/html/README_rdoc.html +86 -0
  24. data/html/created.rid +13 -0
  25. data/html/fonts.css +167 -0
  26. data/html/fonts/Lato-Light.ttf +0 -0
  27. data/html/fonts/Lato-LightItalic.ttf +0 -0
  28. data/html/fonts/Lato-Regular.ttf +0 -0
  29. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  30. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  31. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  32. data/html/images/add.png +0 -0
  33. data/html/images/arrow_up.png +0 -0
  34. data/html/images/brick.png +0 -0
  35. data/html/images/brick_link.png +0 -0
  36. data/html/images/bug.png +0 -0
  37. data/html/images/bullet_black.png +0 -0
  38. data/html/images/bullet_toggle_minus.png +0 -0
  39. data/html/images/bullet_toggle_plus.png +0 -0
  40. data/html/images/date.png +0 -0
  41. data/html/images/delete.png +0 -0
  42. data/html/images/find.png +0 -0
  43. data/html/images/loadingAnimation.gif +0 -0
  44. data/html/images/macFFBgHack.png +0 -0
  45. data/html/images/package.png +0 -0
  46. data/html/images/page_green.png +0 -0
  47. data/html/images/page_white_text.png +0 -0
  48. data/html/images/page_white_width.png +0 -0
  49. data/html/images/plugin.png +0 -0
  50. data/html/images/ruby.png +0 -0
  51. data/html/images/tag_blue.png +0 -0
  52. data/html/images/tag_green.png +0 -0
  53. data/html/images/transparent.png +0 -0
  54. data/html/images/wrench.png +0 -0
  55. data/html/images/wrench_orange.png +0 -0
  56. data/html/images/zoom.png +0 -0
  57. data/html/index.html +108 -0
  58. data/html/js/darkfish.js +140 -0
  59. data/html/js/jquery.js +4 -0
  60. data/html/js/navigation.js +142 -0
  61. data/html/js/search.js +109 -0
  62. data/html/js/search_index.js +1 -0
  63. data/html/js/searcher.js +228 -0
  64. data/html/rdoc.css +580 -0
  65. data/html/table_of_contents.html +222 -0
  66. data/lib/exam.rb +8 -0
  67. data/lib/exam/d_list.rb +124 -0
  68. data/lib/exam/examen.rb +38 -0
  69. data/lib/exam/interfaz.rb +34 -0
  70. data/lib/exam/list.rb +57 -0
  71. data/lib/exam/quiz.rb +39 -0
  72. data/lib/exam/test.rb +37 -0
  73. data/lib/exam/tof.rb +9 -0
  74. data/lib/exam/version.rb +3 -0
  75. data/lib/inverter.rb +1 -0
  76. data/lib/inverter/reverse.rb +10 -0
  77. data/lib/inverter/version.rb +3 -0
  78. data/rspec_results.html +339 -0
  79. data/spec/exam_spec.rb +346 -0
  80. data/spec/spec_helper.rb +19 -0
  81. metadata +225 -0
@@ -0,0 +1,164 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Exam::ToF - 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="Test.html">Exam::Test</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-Exam::ToF">
85
+ <h1 id="class-Exam::ToF" class="class">
86
+ class Exam::ToF
87
+ </h1>
88
+
89
+ <section class="description">
90
+
91
+ <p>create <a href="ToF.html">ToF</a> that inherits <a
92
+ href="Test.html">Test</a></p>
93
+
94
+ </section>
95
+
96
+
97
+
98
+
99
+ <section id="5Buntitled-5D" class="documentation-section">
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
110
+ <header>
111
+ <h3>Public Class Methods</h3>
112
+ </header>
113
+
114
+
115
+ <div id="method-c-new" class="method-detail ">
116
+
117
+ <div class="method-heading">
118
+ <span class="method-name">new</span><span
119
+ class="method-args">(preguntas, correcta, nivel=nil)</span>
120
+
121
+ <span class="method-click-advice">click to toggle source</span>
122
+
123
+ </div>
124
+
125
+
126
+ <div class="method-description">
127
+
128
+
129
+
130
+
131
+ <div class="method-calls-super">
132
+ Calls superclass method
133
+ <a href="Test.html#method-c-new">Exam::Test.new</a>
134
+ </div>
135
+
136
+
137
+
138
+ <div class="method-source-code" id="new-source">
139
+ <pre><span class="ruby-comment"># File lib/exam/tof.rb, line 5</span>
140
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">preguntas</span>, <span class="ruby-identifier">correcta</span>, <span class="ruby-identifier">nivel</span>=<span class="ruby-keyword">nil</span>)
141
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">preguntas</span>,<span class="ruby-identifier">correcta</span>, [<span class="ruby-string">&quot;V&quot;</span>,<span class="ruby-string">&quot;F&quot;</span>], <span class="ruby-identifier">nivel</span>)
142
+ <span class="ruby-keyword">end</span></pre>
143
+ </div>
144
+
145
+ </div>
146
+
147
+
148
+
149
+
150
+ </div>
151
+
152
+
153
+ </section>
154
+
155
+ </section>
156
+ </main>
157
+
158
+
159
+ <footer id="validator-badges" role="contentinfo">
160
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
161
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
162
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
163
+ </footer>
164
+
@@ -0,0 +1,112 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Inversor - 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="module">
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
+
61
+
62
+
63
+
64
+ </div>
65
+ </nav>
66
+
67
+ <main role="main" aria-labelledby="module-Inversor">
68
+ <h1 id="module-Inversor" class="module">
69
+ module Inversor
70
+ </h1>
71
+
72
+ <section class="description">
73
+
74
+ </section>
75
+
76
+
77
+
78
+
79
+ <section id="5Buntitled-5D" class="documentation-section">
80
+
81
+
82
+
83
+
84
+
85
+ <section class="constants-list">
86
+ <header>
87
+ <h3>Constants</h3>
88
+ </header>
89
+ <dl>
90
+
91
+ <dt id="VERSION">VERSION
92
+
93
+ <dd>
94
+
95
+
96
+ </dl>
97
+ </section>
98
+
99
+
100
+
101
+
102
+
103
+ </section>
104
+ </main>
105
+
106
+
107
+ <footer id="validator-badges" role="contentinfo">
108
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
109
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
110
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
111
+ </footer>
112
+
@@ -0,0 +1,164 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Inverter - 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="module">
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
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="nav-section">
65
+ <h3>Methods</h3>
66
+
67
+ <ul class="link-list" role="directory">
68
+
69
+ <li ><a href="#method-i-reverse">#reverse</a>
70
+
71
+ </ul>
72
+ </div>
73
+
74
+ </div>
75
+ </nav>
76
+
77
+ <main role="main" aria-labelledby="module-Inverter">
78
+ <h1 id="module-Inverter" class="module">
79
+ module Inverter
80
+ </h1>
81
+
82
+ <section class="description">
83
+
84
+ </section>
85
+
86
+
87
+
88
+
89
+ <section id="5Buntitled-5D" class="documentation-section">
90
+
91
+
92
+
93
+
94
+
95
+ <section class="constants-list">
96
+ <header>
97
+ <h3>Constants</h3>
98
+ </header>
99
+ <dl>
100
+
101
+ <dt id="VERSION">VERSION
102
+
103
+ <dd>
104
+
105
+
106
+ </dl>
107
+ </section>
108
+
109
+
110
+
111
+
112
+
113
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
114
+ <header>
115
+ <h3>Public Instance Methods</h3>
116
+ </header>
117
+
118
+
119
+ <div id="method-i-reverse" class="method-detail ">
120
+
121
+ <div class="method-heading">
122
+ <span class="method-name">reverse</span><span
123
+ class="method-args">(lista)</span>
124
+
125
+ <span class="method-click-advice">click to toggle source</span>
126
+
127
+ </div>
128
+
129
+
130
+ <div class="method-description">
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <div class="method-source-code" id="reverse-source">
138
+ <pre><span class="ruby-comment"># File lib/inverter/reverse.rb, line 3</span>
139
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">reverse</span>(<span class="ruby-identifier">lista</span>)
140
+ <span class="ruby-identifier">aux</span> = <span class="ruby-identifier">lista</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">x</span><span class="ruby-operator">|</span> <span class="ruby-identifier">x</span>}
141
+ <span class="ruby-identifier">lista_invertida</span> = <span class="ruby-constant">Exam</span><span class="ruby-operator">::</span><span class="ruby-constant">DList</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">aux</span>)
142
+ <span class="ruby-keyword">end</span></pre>
143
+ </div>
144
+
145
+ </div>
146
+
147
+
148
+
149
+
150
+ </div>
151
+
152
+
153
+ </section>
154
+
155
+ </section>
156
+ </main>
157
+
158
+
159
+ <footer id="validator-badges" role="contentinfo">
160
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
161
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
162
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
163
+ </footer>
164
+
data/html/Object.html ADDED
@@ -0,0 +1,119 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Object - 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">BasicObject
65
+
66
+ </div>
67
+
68
+
69
+
70
+
71
+ </div>
72
+ </nav>
73
+
74
+ <main role="main" aria-labelledby="class-Object">
75
+ <h1 id="class-Object" class="class">
76
+ class Object
77
+ </h1>
78
+
79
+ <section class="description">
80
+
81
+ </section>
82
+
83
+
84
+
85
+
86
+ <section id="5Buntitled-5D" class="documentation-section">
87
+
88
+
89
+
90
+
91
+
92
+ <section class="constants-list">
93
+ <header>
94
+ <h3>Constants</h3>
95
+ </header>
96
+ <dl>
97
+
98
+ <dt id="Node">Node
99
+
100
+ <dd><p>create a Struct with :value, :next and :prev (for DList)</p>
101
+
102
+
103
+ </dl>
104
+ </section>
105
+
106
+
107
+
108
+
109
+
110
+ </section>
111
+ </main>
112
+
113
+
114
+ <footer id="validator-badges" role="contentinfo">
115
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
116
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.2.
117
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
118
+ </footer>
119
+