exam1 0.0.1

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 (143) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.coveralls.yml~ +0 -0
  4. data/.gitignore +14 -0
  5. data/.rspec +2 -0
  6. data/.travis.yml +4 -0
  7. data/.travis.yml~ +0 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE.txt +22 -0
  10. data/README.md +38 -0
  11. data/Rakefile +18 -0
  12. data/exam1.gemspec +30 -0
  13. data/exam1.gemspec~ +23 -0
  14. data/lib/exam1.rb +9 -0
  15. data/lib/exam1/SeleccionSimple.rb +86 -0
  16. data/lib/exam1/SeleccionSimple.rb~ +86 -0
  17. data/lib/exam1/doc/Exam1.html +112 -0
  18. data/lib/exam1/doc/Examen.html +484 -0
  19. data/lib/exam1/doc/Interfaz.html +384 -0
  20. data/lib/exam1/doc/List.html +467 -0
  21. data/lib/exam1/doc/Nodo.html +167 -0
  22. data/lib/exam1/doc/Object.html +119 -0
  23. data/lib/exam1/doc/SeleccionSimple.html +361 -0
  24. data/lib/exam1/doc/SeleccionSimple_rb~.html +237 -0
  25. data/lib/exam1/doc/Verdadero_Falso.html +208 -0
  26. data/lib/exam1/doc/created.rid +60 -0
  27. data/lib/exam1/doc/doc/Exam1_html.html +230 -0
  28. data/lib/exam1/doc/doc/Examen_html.html +556 -0
  29. data/lib/exam1/doc/doc/Interfaz_html.html +468 -0
  30. data/lib/exam1/doc/doc/List_html.html +531 -0
  31. data/lib/exam1/doc/doc/Nodo_html.html +285 -0
  32. data/lib/exam1/doc/doc/Object_html.html +237 -0
  33. data/lib/exam1/doc/doc/SeleccionSimple_html.html +454 -0
  34. data/lib/exam1/doc/doc/SeleccionSimple_rb~_html.html +377 -0
  35. data/lib/exam1/doc/doc/Verdadero_Falso_html.html +318 -0
  36. data/lib/exam1/doc/doc/examen_rb~_html.html +425 -0
  37. data/lib/exam1/doc/doc/fonts_css.html +307 -0
  38. data/lib/exam1/doc/doc/index_html.html +241 -0
  39. data/lib/exam1/doc/doc/js/darkfish_js.html +286 -0
  40. data/lib/exam1/doc/doc/js/jquery_js.html +1450 -0
  41. data/lib/exam1/doc/doc/js/navigation_js.html +271 -0
  42. data/lib/exam1/doc/doc/js/search_index_js.html +177 -0
  43. data/lib/exam1/doc/doc/js/search_js.html +240 -0
  44. data/lib/exam1/doc/doc/js/searcher_js.html +358 -0
  45. data/lib/exam1/doc/doc/linkedlist_rb~_html.html +345 -0
  46. data/lib/exam1/doc/doc/rdoc_css.html +844 -0
  47. data/lib/exam1/doc/doc/table_of_contents_html.html +352 -0
  48. data/lib/exam1/doc/examen_rb~.html +300 -0
  49. data/lib/exam1/doc/fonts.css +167 -0
  50. data/lib/exam1/doc/fonts/Lato-Light.ttf +0 -0
  51. data/lib/exam1/doc/fonts/Lato-LightItalic.ttf +0 -0
  52. data/lib/exam1/doc/fonts/Lato-Regular.ttf +0 -0
  53. data/lib/exam1/doc/fonts/Lato-RegularItalic.ttf +0 -0
  54. data/lib/exam1/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  55. data/lib/exam1/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  56. data/lib/exam1/doc/images/add.png +0 -0
  57. data/lib/exam1/doc/images/arrow_up.png +0 -0
  58. data/lib/exam1/doc/images/brick.png +0 -0
  59. data/lib/exam1/doc/images/brick_link.png +0 -0
  60. data/lib/exam1/doc/images/bug.png +0 -0
  61. data/lib/exam1/doc/images/bullet_black.png +0 -0
  62. data/lib/exam1/doc/images/bullet_toggle_minus.png +0 -0
  63. data/lib/exam1/doc/images/bullet_toggle_plus.png +0 -0
  64. data/lib/exam1/doc/images/date.png +0 -0
  65. data/lib/exam1/doc/images/delete.png +0 -0
  66. data/lib/exam1/doc/images/find.png +0 -0
  67. data/lib/exam1/doc/images/loadingAnimation.gif +0 -0
  68. data/lib/exam1/doc/images/macFFBgHack.png +0 -0
  69. data/lib/exam1/doc/images/package.png +0 -0
  70. data/lib/exam1/doc/images/page_green.png +0 -0
  71. data/lib/exam1/doc/images/page_white_text.png +0 -0
  72. data/lib/exam1/doc/images/page_white_width.png +0 -0
  73. data/lib/exam1/doc/images/plugin.png +0 -0
  74. data/lib/exam1/doc/images/ruby.png +0 -0
  75. data/lib/exam1/doc/images/tag_blue.png +0 -0
  76. data/lib/exam1/doc/images/tag_green.png +0 -0
  77. data/lib/exam1/doc/images/transparent.png +0 -0
  78. data/lib/exam1/doc/images/wrench.png +0 -0
  79. data/lib/exam1/doc/images/wrench_orange.png +0 -0
  80. data/lib/exam1/doc/images/zoom.png +0 -0
  81. data/lib/exam1/doc/index.html +152 -0
  82. data/lib/exam1/doc/js/darkfish.js +140 -0
  83. data/lib/exam1/doc/js/jquery.js +18 -0
  84. data/lib/exam1/doc/js/navigation.js +142 -0
  85. data/lib/exam1/doc/js/search.js +109 -0
  86. data/lib/exam1/doc/js/search_index.js +1 -0
  87. data/lib/exam1/doc/js/searcher.js +228 -0
  88. data/lib/exam1/doc/linkedlist_rb~.html +238 -0
  89. data/lib/exam1/doc/rdoc.css +580 -0
  90. data/lib/exam1/doc/table_of_contents.html +288 -0
  91. data/lib/exam1/examen.rb +178 -0
  92. data/lib/exam1/examen.rb~ +178 -0
  93. data/lib/exam1/linkedlist.rb +129 -0
  94. data/lib/exam1/linkedlist.rb~ +134 -0
  95. data/lib/exam1/version.rb +3 -0
  96. data/spec/.yardoc/checksums +0 -0
  97. data/spec/.yardoc/object_types +0 -0
  98. data/spec/.yardoc/objects/root.dat +0 -0
  99. data/spec/.yardoc/proxy_types +0 -0
  100. data/spec/doc/_index.html +88 -0
  101. data/spec/doc/class_list.html +58 -0
  102. data/spec/doc/created.rid +3 -0
  103. data/spec/doc/css/common.css +1 -0
  104. data/spec/doc/css/full_list.css +57 -0
  105. data/spec/doc/css/style.css +339 -0
  106. data/spec/doc/file_list.html +57 -0
  107. data/spec/doc/frames.html +26 -0
  108. data/spec/doc/images/brick.png +0 -0
  109. data/spec/doc/images/brick_link.png +0 -0
  110. data/spec/doc/images/bug.png +0 -0
  111. data/spec/doc/images/bullet_black.png +0 -0
  112. data/spec/doc/images/bullet_toggle_minus.png +0 -0
  113. data/spec/doc/images/bullet_toggle_plus.png +0 -0
  114. data/spec/doc/images/date.png +0 -0
  115. data/spec/doc/images/find.png +0 -0
  116. data/spec/doc/images/loadingAnimation.gif +0 -0
  117. data/spec/doc/images/macFFBgHack.png +0 -0
  118. data/spec/doc/images/package.png +0 -0
  119. data/spec/doc/images/page_green.png +0 -0
  120. data/spec/doc/images/page_white_text.png +0 -0
  121. data/spec/doc/images/page_white_width.png +0 -0
  122. data/spec/doc/images/plugin.png +0 -0
  123. data/spec/doc/images/ruby.png +0 -0
  124. data/spec/doc/images/tag_green.png +0 -0
  125. data/spec/doc/images/wrench.png +0 -0
  126. data/spec/doc/images/wrench_orange.png +0 -0
  127. data/spec/doc/images/zoom.png +0 -0
  128. data/spec/doc/index.html +88 -0
  129. data/spec/doc/js/app.js +219 -0
  130. data/spec/doc/js/darkfish.js +118 -0
  131. data/spec/doc/js/full_list.js +181 -0
  132. data/spec/doc/js/jquery.js +4 -0
  133. data/spec/doc/js/quicksearch.js +114 -0
  134. data/spec/doc/js/thickbox-compressed.js +10 -0
  135. data/spec/doc/linkedlist_spec_rb.html +56 -0
  136. data/spec/doc/method_list.html +57 -0
  137. data/spec/doc/rdoc.css +763 -0
  138. data/spec/doc/spec_helper_rb.html +54 -0
  139. data/spec/doc/top-level-namespace.html +102 -0
  140. data/spec/linkedlist_spec.rb +449 -0
  141. data/spec/linkedlist_spec.rb~ +449 -0
  142. data/spec/spec_helper.rb +28 -0
  143. metadata +331 -0
@@ -0,0 +1,167 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Nodo - 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
+ <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-i-3C-3D-3E">#&lt;=&gt;</a>
88
+
89
+ </ul>
90
+ </div>
91
+
92
+ </div>
93
+ </nav>
94
+
95
+ <main role="main" aria-labelledby="class-Nodo">
96
+ <h1 id="class-Nodo" class="class">
97
+ class Nodo
98
+ </h1>
99
+
100
+ <section class="description">
101
+
102
+ </section>
103
+
104
+
105
+
106
+
107
+ <section id="5Buntitled-5D" class="documentation-section">
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
118
+ <header>
119
+ <h3>Public Instance Methods</h3>
120
+ </header>
121
+
122
+
123
+ <div id="method-i-3C-3D-3E" class="method-detail ">
124
+
125
+ <div class="method-heading">
126
+ <span class="method-name">&lt;=&gt;</span><span
127
+ class="method-args">(other)</span>
128
+
129
+ <span class="method-click-advice">click to toggle source</span>
130
+
131
+ </div>
132
+
133
+
134
+ <div class="method-description">
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <div class="method-source-code" id="3C-3D-3E-source">
142
+ <pre><span class="ruby-comment"># File linkedlist.rb, line 5</span>
143
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
144
+ <span class="ruby-identifier">value</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">value</span>
145
+ <span class="ruby-keyword">end</span></pre>
146
+ </div>
147
+
148
+ </div>
149
+
150
+
151
+
152
+
153
+ </div>
154
+
155
+
156
+ </section>
157
+
158
+ </section>
159
+ </main>
160
+
161
+
162
+ <footer id="validator-badges" role="contentinfo">
163
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
164
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
165
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
166
+ </footer>
167
+
@@ -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="Nodo">Nodo
99
+
100
+ <dd>
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.0.
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
+
@@ -0,0 +1,361 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class SeleccionSimple - 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
+ <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
+ <li ><a href="#method-i-3D-3D">#==</a>
92
+
93
+ <li ><a href="#method-i-to_s">#to_s</a>
94
+
95
+ </ul>
96
+ </div>
97
+
98
+ </div>
99
+ </nav>
100
+
101
+ <main role="main" aria-labelledby="class-SeleccionSimple">
102
+ <h1 id="class-SeleccionSimple" class="class">
103
+ class SeleccionSimple
104
+ </h1>
105
+
106
+ <section class="description">
107
+
108
+ </section>
109
+
110
+
111
+
112
+
113
+ <section id="5Buntitled-5D" class="documentation-section">
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+ <section class="attribute-method-details" class="method-section">
122
+ <header>
123
+ <h3>Attributes</h3>
124
+ </header>
125
+
126
+
127
+ <div id="attribute-i-nivel" class="method-detail">
128
+ <div class="method-heading attribute-method-heading">
129
+ <span class="method-name">nivel</span><span
130
+ class="attribute-access-type">[R]</span>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+
135
+
136
+
137
+ </div>
138
+ </div>
139
+
140
+ <div id="attribute-i-pregunta" class="method-detail">
141
+ <div class="method-heading attribute-method-heading">
142
+ <span class="method-name">pregunta</span><span
143
+ class="attribute-access-type">[R]</span>
144
+ </div>
145
+
146
+ <div class="method-description">
147
+
148
+
149
+
150
+ </div>
151
+ </div>
152
+
153
+ <div id="attribute-i-rescorr" class="method-detail">
154
+ <div class="method-heading attribute-method-heading">
155
+ <span class="method-name">rescorr</span><span
156
+ class="attribute-access-type">[R]</span>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+
161
+
162
+
163
+ </div>
164
+ </div>
165
+
166
+ <div id="attribute-i-respuesta" class="method-detail">
167
+ <div class="method-heading attribute-method-heading">
168
+ <span class="method-name">respuesta</span><span
169
+ class="attribute-access-type">[R]</span>
170
+ </div>
171
+
172
+ <div class="method-description">
173
+
174
+
175
+
176
+ </div>
177
+ </div>
178
+
179
+ </section>
180
+
181
+
182
+
183
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
184
+ <header>
185
+ <h3>Public Class Methods</h3>
186
+ </header>
187
+
188
+
189
+ <div id="method-c-new" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">new</span><span
193
+ class="method-args">(pregunta,respuesta,nivel,rescorr)</span>
194
+
195
+ <span class="method-click-advice">click to toggle source</span>
196
+
197
+ </div>
198
+
199
+
200
+ <div class="method-description">
201
+
202
+
203
+
204
+
205
+
206
+
207
+ <div class="method-source-code" id="new-source">
208
+ <pre><span class="ruby-comment"># File SeleccionSimple.rb, line 8</span>
209
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">pregunta</span>,<span class="ruby-identifier">respuesta</span>,<span class="ruby-identifier">nivel</span>,<span class="ruby-identifier">rescorr</span>)
210
+ <span class="ruby-ivar">@pregunta</span>=<span class="ruby-identifier">pregunta</span>
211
+ <span class="ruby-ivar">@respuesta</span>=<span class="ruby-identifier">respuesta</span>
212
+ <span class="ruby-ivar">@nivel</span>=<span class="ruby-identifier">nivel</span>
213
+ <span class="ruby-ivar">@rescorr</span>=<span class="ruby-identifier">rescorr</span>
214
+ <span class="ruby-keyword">end</span></pre>
215
+ </div>
216
+
217
+ </div>
218
+
219
+
220
+
221
+
222
+ </div>
223
+
224
+
225
+ </section>
226
+
227
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
228
+ <header>
229
+ <h3>Public Instance Methods</h3>
230
+ </header>
231
+
232
+
233
+ <div id="method-i-3C-3D-3E" class="method-detail ">
234
+
235
+ <div class="method-heading">
236
+ <span class="method-name">&lt;=&gt;</span><span
237
+ class="method-args">(other)</span>
238
+
239
+ <span class="method-click-advice">click to toggle source</span>
240
+
241
+ </div>
242
+
243
+
244
+ <div class="method-description">
245
+
246
+
247
+
248
+
249
+
250
+
251
+ <div class="method-source-code" id="3C-3D-3E-source">
252
+ <pre><span class="ruby-comment"># File SeleccionSimple.rb, line 21</span>
253
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">&lt;=&gt;</span>(<span class="ruby-identifier">other</span>)
254
+ <span class="ruby-comment"> for i in (0..3)
255
+ respuesta_size += @respuesta[i].size
256
+ respuesta_other_size += other.respuesta[i].size
257
+ end
258
+ </span>
259
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span><span class="ruby-constant">SeleccionSimple</span>
260
+ <span class="ruby-ivar">@nivel</span> <span class="ruby-operator">&lt;=&gt;</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">nivel</span>
261
+ <span class="ruby-comment">#@pregunta.size + respuesta_size &lt;=&gt; other.pregunta.size + respuesta_other_size</span>
262
+
263
+
264
+ <span class="ruby-keyword">end</span></pre>
265
+ </div>
266
+
267
+ </div>
268
+
269
+
270
+
271
+
272
+ </div>
273
+
274
+
275
+ <div id="method-i-3D-3D" class="method-detail ">
276
+
277
+ <div class="method-heading">
278
+ <span class="method-name">==</span><span
279
+ class="method-args">(other)</span>
280
+
281
+ <span class="method-click-advice">click to toggle source</span>
282
+
283
+ </div>
284
+
285
+
286
+ <div class="method-description">
287
+
288
+
289
+
290
+
291
+
292
+
293
+ <div class="method-source-code" id="3D-3D-source">
294
+ <pre><span class="ruby-comment"># File SeleccionSimple.rb, line 36</span>
295
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">==</span>(<span class="ruby-identifier">other</span>)
296
+
297
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span><span class="ruby-constant">SeleccionSimple</span>
298
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@nivel</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">nivel</span>
299
+ <span class="ruby-ivar">@respuesta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">respuesta</span>
300
+ <span class="ruby-keyword">end</span>
301
+
302
+ <span class="ruby-comment">#return nil unless other.is_a?SeleccionSimple</span>
303
+ <span class="ruby-ivar">@pregunta</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pregunta</span>
304
+
305
+ <span class="ruby-keyword">end</span></pre>
306
+ </div>
307
+
308
+ </div>
309
+
310
+
311
+
312
+
313
+ </div>
314
+
315
+
316
+ <div id="method-i-to_s" class="method-detail ">
317
+
318
+ <div class="method-heading">
319
+ <span class="method-name">to_s</span><span
320
+ class="method-args">()</span>
321
+
322
+ <span class="method-click-advice">click to toggle source</span>
323
+
324
+ </div>
325
+
326
+
327
+ <div class="method-description">
328
+
329
+
330
+
331
+
332
+
333
+
334
+ <div class="method-source-code" id="to_s-source">
335
+ <pre><span class="ruby-comment"># File SeleccionSimple.rb, line 16</span>
336
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span> <span class="ruby-comment">#para respuestas de 4 opciones</span>
337
+
338
+ <span class="ruby-node">&quot;#{@pregunta}\n a) #{@respuesta[0]}\n b) #{@respuesta[1]}\n c) #{@respuesta[2]}\n d) #{@respuesta[3]}\n&quot;</span>
339
+ <span class="ruby-keyword">end</span></pre>
340
+ </div>
341
+
342
+ </div>
343
+
344
+
345
+
346
+
347
+ </div>
348
+
349
+
350
+ </section>
351
+
352
+ </section>
353
+ </main>
354
+
355
+
356
+ <footer id="validator-badges" role="contentinfo">
357
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
358
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
359
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
360
+ </footer>
361
+