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.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.coveralls.yml~ +0 -0
- data/.gitignore +14 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/.travis.yml~ +0 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +38 -0
- data/Rakefile +18 -0
- data/exam1.gemspec +30 -0
- data/exam1.gemspec~ +23 -0
- data/lib/exam1.rb +9 -0
- data/lib/exam1/SeleccionSimple.rb +86 -0
- data/lib/exam1/SeleccionSimple.rb~ +86 -0
- data/lib/exam1/doc/Exam1.html +112 -0
- data/lib/exam1/doc/Examen.html +484 -0
- data/lib/exam1/doc/Interfaz.html +384 -0
- data/lib/exam1/doc/List.html +467 -0
- data/lib/exam1/doc/Nodo.html +167 -0
- data/lib/exam1/doc/Object.html +119 -0
- data/lib/exam1/doc/SeleccionSimple.html +361 -0
- data/lib/exam1/doc/SeleccionSimple_rb~.html +237 -0
- data/lib/exam1/doc/Verdadero_Falso.html +208 -0
- data/lib/exam1/doc/created.rid +60 -0
- data/lib/exam1/doc/doc/Exam1_html.html +230 -0
- data/lib/exam1/doc/doc/Examen_html.html +556 -0
- data/lib/exam1/doc/doc/Interfaz_html.html +468 -0
- data/lib/exam1/doc/doc/List_html.html +531 -0
- data/lib/exam1/doc/doc/Nodo_html.html +285 -0
- data/lib/exam1/doc/doc/Object_html.html +237 -0
- data/lib/exam1/doc/doc/SeleccionSimple_html.html +454 -0
- data/lib/exam1/doc/doc/SeleccionSimple_rb~_html.html +377 -0
- data/lib/exam1/doc/doc/Verdadero_Falso_html.html +318 -0
- data/lib/exam1/doc/doc/examen_rb~_html.html +425 -0
- data/lib/exam1/doc/doc/fonts_css.html +307 -0
- data/lib/exam1/doc/doc/index_html.html +241 -0
- data/lib/exam1/doc/doc/js/darkfish_js.html +286 -0
- data/lib/exam1/doc/doc/js/jquery_js.html +1450 -0
- data/lib/exam1/doc/doc/js/navigation_js.html +271 -0
- data/lib/exam1/doc/doc/js/search_index_js.html +177 -0
- data/lib/exam1/doc/doc/js/search_js.html +240 -0
- data/lib/exam1/doc/doc/js/searcher_js.html +358 -0
- data/lib/exam1/doc/doc/linkedlist_rb~_html.html +345 -0
- data/lib/exam1/doc/doc/rdoc_css.html +844 -0
- data/lib/exam1/doc/doc/table_of_contents_html.html +352 -0
- data/lib/exam1/doc/examen_rb~.html +300 -0
- data/lib/exam1/doc/fonts.css +167 -0
- data/lib/exam1/doc/fonts/Lato-Light.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-Regular.ttf +0 -0
- data/lib/exam1/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/lib/exam1/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/lib/exam1/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/lib/exam1/doc/images/add.png +0 -0
- data/lib/exam1/doc/images/arrow_up.png +0 -0
- data/lib/exam1/doc/images/brick.png +0 -0
- data/lib/exam1/doc/images/brick_link.png +0 -0
- data/lib/exam1/doc/images/bug.png +0 -0
- data/lib/exam1/doc/images/bullet_black.png +0 -0
- data/lib/exam1/doc/images/bullet_toggle_minus.png +0 -0
- data/lib/exam1/doc/images/bullet_toggle_plus.png +0 -0
- data/lib/exam1/doc/images/date.png +0 -0
- data/lib/exam1/doc/images/delete.png +0 -0
- data/lib/exam1/doc/images/find.png +0 -0
- data/lib/exam1/doc/images/loadingAnimation.gif +0 -0
- data/lib/exam1/doc/images/macFFBgHack.png +0 -0
- data/lib/exam1/doc/images/package.png +0 -0
- data/lib/exam1/doc/images/page_green.png +0 -0
- data/lib/exam1/doc/images/page_white_text.png +0 -0
- data/lib/exam1/doc/images/page_white_width.png +0 -0
- data/lib/exam1/doc/images/plugin.png +0 -0
- data/lib/exam1/doc/images/ruby.png +0 -0
- data/lib/exam1/doc/images/tag_blue.png +0 -0
- data/lib/exam1/doc/images/tag_green.png +0 -0
- data/lib/exam1/doc/images/transparent.png +0 -0
- data/lib/exam1/doc/images/wrench.png +0 -0
- data/lib/exam1/doc/images/wrench_orange.png +0 -0
- data/lib/exam1/doc/images/zoom.png +0 -0
- data/lib/exam1/doc/index.html +152 -0
- data/lib/exam1/doc/js/darkfish.js +140 -0
- data/lib/exam1/doc/js/jquery.js +18 -0
- data/lib/exam1/doc/js/navigation.js +142 -0
- data/lib/exam1/doc/js/search.js +109 -0
- data/lib/exam1/doc/js/search_index.js +1 -0
- data/lib/exam1/doc/js/searcher.js +228 -0
- data/lib/exam1/doc/linkedlist_rb~.html +238 -0
- data/lib/exam1/doc/rdoc.css +580 -0
- data/lib/exam1/doc/table_of_contents.html +288 -0
- data/lib/exam1/examen.rb +178 -0
- data/lib/exam1/examen.rb~ +178 -0
- data/lib/exam1/linkedlist.rb +129 -0
- data/lib/exam1/linkedlist.rb~ +134 -0
- data/lib/exam1/version.rb +3 -0
- data/spec/.yardoc/checksums +0 -0
- data/spec/.yardoc/object_types +0 -0
- data/spec/.yardoc/objects/root.dat +0 -0
- data/spec/.yardoc/proxy_types +0 -0
- data/spec/doc/_index.html +88 -0
- data/spec/doc/class_list.html +58 -0
- data/spec/doc/created.rid +3 -0
- data/spec/doc/css/common.css +1 -0
- data/spec/doc/css/full_list.css +57 -0
- data/spec/doc/css/style.css +339 -0
- data/spec/doc/file_list.html +57 -0
- data/spec/doc/frames.html +26 -0
- data/spec/doc/images/brick.png +0 -0
- data/spec/doc/images/brick_link.png +0 -0
- data/spec/doc/images/bug.png +0 -0
- data/spec/doc/images/bullet_black.png +0 -0
- data/spec/doc/images/bullet_toggle_minus.png +0 -0
- data/spec/doc/images/bullet_toggle_plus.png +0 -0
- data/spec/doc/images/date.png +0 -0
- data/spec/doc/images/find.png +0 -0
- data/spec/doc/images/loadingAnimation.gif +0 -0
- data/spec/doc/images/macFFBgHack.png +0 -0
- data/spec/doc/images/package.png +0 -0
- data/spec/doc/images/page_green.png +0 -0
- data/spec/doc/images/page_white_text.png +0 -0
- data/spec/doc/images/page_white_width.png +0 -0
- data/spec/doc/images/plugin.png +0 -0
- data/spec/doc/images/ruby.png +0 -0
- data/spec/doc/images/tag_green.png +0 -0
- data/spec/doc/images/wrench.png +0 -0
- data/spec/doc/images/wrench_orange.png +0 -0
- data/spec/doc/images/zoom.png +0 -0
- data/spec/doc/index.html +88 -0
- data/spec/doc/js/app.js +219 -0
- data/spec/doc/js/darkfish.js +118 -0
- data/spec/doc/js/full_list.js +181 -0
- data/spec/doc/js/jquery.js +4 -0
- data/spec/doc/js/quicksearch.js +114 -0
- data/spec/doc/js/thickbox-compressed.js +10 -0
- data/spec/doc/linkedlist_spec_rb.html +56 -0
- data/spec/doc/method_list.html +57 -0
- data/spec/doc/rdoc.css +763 -0
- data/spec/doc/spec_helper_rb.html +54 -0
- data/spec/doc/top-level-namespace.html +102 -0
- data/spec/linkedlist_spec.rb +449 -0
- data/spec/linkedlist_spec.rb~ +449 -0
- data/spec/spec_helper.rb +28 -0
- metadata +331 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 085015324b9d161fe154faeef1ebb012ea2efd8c
|
|
4
|
+
data.tar.gz: b61fd0339c32a8d8e0403908a9236f753e63a7ed
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: dacc580168f8cce0830e86438d7f22aa4f5fae617297d9a8c2d1f139e8f17be2ad8fa3dab9f3911de41fe23a6a745b61911e43fc84ae91f1a236021aaa1d5902
|
|
7
|
+
data.tar.gz: 11cd8b7b59e0cc7abae930533e0797993c2a077b631addbeccdf8a9e40c1c283f8811ca77cc4766367676028d3c30ce414550c858e445493f66bd5b6180164a0
|
data/.coveralls.yml
ADDED
data/.coveralls.yml~
ADDED
|
File without changes
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/.travis.yml~
ADDED
|
File without changes
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2014 Alejandro Delgado Martel
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Exam1
|
|
2
|
+
|
|
3
|
+
TODO: Write a gem description
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
Add this line to your application's Gemfile:
|
|
8
|
+
|
|
9
|
+
```ruby
|
|
10
|
+
gem 'exam1'
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
And then execute:
|
|
14
|
+
|
|
15
|
+
$ bundle
|
|
16
|
+
|
|
17
|
+
Or install it yourself as:
|
|
18
|
+
|
|
19
|
+
$ gem install exam1
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
TODO: Write usage instructions here
|
|
24
|
+
|
|
25
|
+
## Contributing
|
|
26
|
+
|
|
27
|
+
1. Fork it ( https://github.com/[my-github-username]/exam1/fork )
|
|
28
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
29
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
30
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
|
31
|
+
5. Create a new Pull Request
|
|
32
|
+
|
|
33
|
+
- Alejandro Delgado Martel
|
|
34
|
+
- Alexander Cole Mora
|
|
35
|
+
- Grupo L6 Mañana
|
|
36
|
+
[](https://coveralls.io/r/alu0100767452/Practica9)
|
|
37
|
+
[](https://travis-ci.org/alu0100767452/Practica9)
|
|
38
|
+
|
data/Rakefile
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
require "bundler/gem_tasks"
|
|
2
|
+
|
|
3
|
+
task :default => :spec
|
|
4
|
+
|
|
5
|
+
desc "Ejecutar las espectativas de la clase Exam"
|
|
6
|
+
task :spec do
|
|
7
|
+
sh "rspec -I. spec/linkedlist_spec.rb"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
desc "Ejecutar con documentacion"
|
|
11
|
+
task :doc do
|
|
12
|
+
sh "rspec -I. spec/linkedlist_spec.rb --format documentation"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
desc "Ejecutar en formato html"
|
|
16
|
+
task :html do
|
|
17
|
+
sh "rspec -I. spec/linkedlist_spec.rb --format html -o salida.html"
|
|
18
|
+
end
|
data/exam1.gemspec
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'exam1/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "exam1"
|
|
8
|
+
spec.version = Exam1::VERSION
|
|
9
|
+
spec.authors = ["Alejandro Delgado Martel"]
|
|
10
|
+
spec.email = ["alu0100767452@ull.edu.es"]
|
|
11
|
+
spec.summary = %q{Gema elaborada en clase LPP. Tratamiento de Cuestinarios}
|
|
12
|
+
spec.description = %q{En esta Gema se lleva a cabo el tratamiento de preguntas de seleccion simple a traves de listas.}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
|
+
spec.add_development_dependency "rspec", "~> 2.11"
|
|
24
|
+
|
|
25
|
+
spec.add_development_dependency "guard"
|
|
26
|
+
spec.add_development_dependency "guard-rspec"
|
|
27
|
+
spec.add_development_dependency "guard-bundler"
|
|
28
|
+
|
|
29
|
+
spec.add_development_dependency "coveralls"
|
|
30
|
+
end
|
data/exam1.gemspec~
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
|
+
require 'exam1/version'
|
|
5
|
+
|
|
6
|
+
Gem::Specification.new do |spec|
|
|
7
|
+
spec.name = "exam1"
|
|
8
|
+
spec.version = Exam1::VERSION
|
|
9
|
+
spec.authors = ["Alejandro Delgado Martel"]
|
|
10
|
+
spec.email = ["alu0100767452@ull.edu.es"]
|
|
11
|
+
spec.summary = %q{TODO: Write a short summary. Required.}
|
|
12
|
+
spec.description = %q{TODO: Write a longer description. Optional.}
|
|
13
|
+
spec.homepage = ""
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
|
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
|
19
|
+
spec.require_paths = ["lib"]
|
|
20
|
+
|
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
|
23
|
+
end
|
data/lib/exam1.rb
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
class SeleccionSimple
|
|
2
|
+
attr_reader :pregunta, :respuesta, :nivel, :rescorr
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
include Comparable
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def initialize(pregunta,respuesta,nivel,rescorr)
|
|
9
|
+
@pregunta=pregunta
|
|
10
|
+
@respuesta=respuesta
|
|
11
|
+
@nivel=nivel
|
|
12
|
+
@rescorr=rescorr
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def to_s #para respuestas de 4 opciones
|
|
17
|
+
|
|
18
|
+
"#{@pregunta}\n a) #{@respuesta[0]}\n b) #{@respuesta[1]}\n c) #{@respuesta[2]}\n d) #{@respuesta[3]}\n"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def <=>(other)
|
|
22
|
+
=begin
|
|
23
|
+
for i in (0..3)
|
|
24
|
+
respuesta_size += @respuesta[i].size
|
|
25
|
+
respuesta_other_size += other.respuesta[i].size
|
|
26
|
+
end
|
|
27
|
+
=end
|
|
28
|
+
|
|
29
|
+
return nil unless other.is_a?SeleccionSimple
|
|
30
|
+
@nivel <=> other.nivel
|
|
31
|
+
#@pregunta.size + respuesta_size <=> other.pregunta.size + respuesta_other_size
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def ==(other)
|
|
37
|
+
|
|
38
|
+
return nil unless other.is_a?SeleccionSimple
|
|
39
|
+
if @nivel == other.nivel
|
|
40
|
+
@respuesta == other.respuesta
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#return nil unless other.is_a?SeleccionSimple
|
|
44
|
+
@pregunta == other.pregunta
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
=begin
|
|
48
|
+
def <=(other)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@pregunta.size <
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
=end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class Verdadero_Falso < SeleccionSimple
|
|
59
|
+
|
|
60
|
+
def initialize(pregunta,nivel,rescorr)
|
|
61
|
+
|
|
62
|
+
super(pregunta, ['Cierto','Falso'],nivel,rescorr)
|
|
63
|
+
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def to_s
|
|
67
|
+
|
|
68
|
+
"#{@pregunta}\n a) Cierto\n b) Falso\n"
|
|
69
|
+
|
|
70
|
+
end
|
|
71
|
+
=begin
|
|
72
|
+
def <=>(other)
|
|
73
|
+
return nil unless other.instance_of?Verdadero_Falso
|
|
74
|
+
@pregunta.size + @respuesta.size <=> other.pregunta.size + other.respuesta.size
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def ==(other)
|
|
79
|
+
return nil unless other.instance_of?Verdadero_Falso
|
|
80
|
+
@pregunta == other.pregunta
|
|
81
|
+
@respuesta == other.respuesta
|
|
82
|
+
end
|
|
83
|
+
=end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
class SeleccionSimple
|
|
2
|
+
attr_reader :pregunta, :respuesta, :nivel, :rescorr
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
include Comparable
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def initialize(pregunta,respuesta,nivel,rescorr)
|
|
9
|
+
@pregunta=pregunta
|
|
10
|
+
@respuesta=respuesta
|
|
11
|
+
@nivel=nivel
|
|
12
|
+
@rescorr=rescorr
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def to_s #para respuestas de 4 opciones
|
|
17
|
+
|
|
18
|
+
"#{@pregunta}\n a) #{@respuesta[0]}\n b) #{@respuesta[1]}\n c) #{@respuesta[2]}\n d) #{@respuesta[3]}\n"
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def <=>(other)
|
|
22
|
+
=begin
|
|
23
|
+
for i in (0..3)
|
|
24
|
+
respuesta_size += @respuesta[i].size
|
|
25
|
+
respuesta_other_size += other.respuesta[i].size
|
|
26
|
+
end
|
|
27
|
+
=end
|
|
28
|
+
|
|
29
|
+
return nil unless other.is_a?SeleccionSimple
|
|
30
|
+
@nivel <=> other.nivel
|
|
31
|
+
#@pregunta.size + respuesta_size <=> other.pregunta.size + respuesta_other_size
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def ==(other)
|
|
37
|
+
|
|
38
|
+
return nil unless other.is_a?SeleccionSimple
|
|
39
|
+
if @nivel == other.nivel
|
|
40
|
+
@respuesta == other.respuesta
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
#return nil unless other.is_a?SeleccionSimple
|
|
44
|
+
@pregunta == other.pregunta
|
|
45
|
+
|
|
46
|
+
end
|
|
47
|
+
=begin
|
|
48
|
+
def <=(other)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
@pregunta.size <
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
=end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
class Verdadero_Falso < SeleccionSimple
|
|
59
|
+
|
|
60
|
+
def initialize(pregunta,nivel,rescorr)
|
|
61
|
+
|
|
62
|
+
super(pregunta, ['Cierto','Falso'],nivel,rescorr)
|
|
63
|
+
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
def to_s
|
|
67
|
+
|
|
68
|
+
"#{@pregunta}\n a) Cierto\n b) Falso\n"
|
|
69
|
+
|
|
70
|
+
end
|
|
71
|
+
=begin
|
|
72
|
+
def <=>(other)
|
|
73
|
+
return nil unless other.instance_of?Verdadero_Falso
|
|
74
|
+
@pregunta.size + @respuesta.size <=> other.pregunta.size + other.respuesta.size
|
|
75
|
+
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
def ==(other)
|
|
79
|
+
return nil unless other.instance_of?Verdadero_Falso
|
|
80
|
+
@pregunta == other.pregunta
|
|
81
|
+
@respuesta == other.respuesta
|
|
82
|
+
end
|
|
83
|
+
=end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
|
|
3
|
+
<html>
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
|
|
7
|
+
<title>module Exam1 - 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-Exam1">
|
|
68
|
+
<h1 id="module-Exam1" class="module">
|
|
69
|
+
module Exam1
|
|
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.0.
|
|
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
|
+
|