ull-etsii-alu0100315462-quiz 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (65) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +34 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +91 -0
  7. data/Guardfile +39 -0
  8. data/Rakefile +18 -0
  9. data/Readme.md +21 -0
  10. data/html/Quiz.html +114 -0
  11. data/html/Quiz/Answer.html +242 -0
  12. data/html/Quiz/Question.html +249 -0
  13. data/html/Quiz/Quiz.html +382 -0
  14. data/html/Readme_md.html +112 -0
  15. data/html/created.rid +7 -0
  16. data/html/fonts.css +167 -0
  17. data/html/fonts/Lato-Light.ttf +0 -0
  18. data/html/fonts/Lato-LightItalic.ttf +0 -0
  19. data/html/fonts/Lato-Regular.ttf +0 -0
  20. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  21. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  22. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  23. data/html/images/add.png +0 -0
  24. data/html/images/arrow_up.png +0 -0
  25. data/html/images/brick.png +0 -0
  26. data/html/images/brick_link.png +0 -0
  27. data/html/images/bug.png +0 -0
  28. data/html/images/bullet_black.png +0 -0
  29. data/html/images/bullet_toggle_minus.png +0 -0
  30. data/html/images/bullet_toggle_plus.png +0 -0
  31. data/html/images/date.png +0 -0
  32. data/html/images/delete.png +0 -0
  33. data/html/images/find.png +0 -0
  34. data/html/images/loadingAnimation.gif +0 -0
  35. data/html/images/macFFBgHack.png +0 -0
  36. data/html/images/package.png +0 -0
  37. data/html/images/page_green.png +0 -0
  38. data/html/images/page_white_text.png +0 -0
  39. data/html/images/page_white_width.png +0 -0
  40. data/html/images/plugin.png +0 -0
  41. data/html/images/ruby.png +0 -0
  42. data/html/images/tag_blue.png +0 -0
  43. data/html/images/tag_green.png +0 -0
  44. data/html/images/transparent.png +0 -0
  45. data/html/images/wrench.png +0 -0
  46. data/html/images/wrench_orange.png +0 -0
  47. data/html/images/zoom.png +0 -0
  48. data/html/index.html +98 -0
  49. data/html/js/darkfish.js +140 -0
  50. data/html/js/jquery.js +18 -0
  51. data/html/js/navigation.js +142 -0
  52. data/html/js/search.js +109 -0
  53. data/html/js/search_index.js +1 -0
  54. data/html/js/searcher.js +228 -0
  55. data/html/rdoc.css +580 -0
  56. data/html/table_of_contents.html +127 -0
  57. data/lib/quiz.rb +3 -0
  58. data/lib/quiz/answer.rb +35 -0
  59. data/lib/quiz/question.rb +44 -0
  60. data/lib/quiz/quiz.rb +70 -0
  61. data/lib/quiz/version.rb +3 -0
  62. data/quiz.gemspec +29 -0
  63. data/spec/quiz_spec.rb +46 -0
  64. data/spec/spec_helper.rb +21 -0
  65. metadata +208 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1ad50c8acf9c6449a44a0b3c021d7281528f05c4
4
+ data.tar.gz: 3e8fc0171bf6cf255ec045cfc5752f1571948bfa
5
+ SHA512:
6
+ metadata.gz: 0caefa2ea72cd44a441be2ebd9fd3883e2a5a9646e8835f409668da9bfee68a26e9c52f7fc1ae25ace9edeb9e02cfff82670bbd52948a27a807cb0b5eab7f94c
7
+ data.tar.gz: 715b976e7e6466658fb830fb47e04fed2f3b50989a29b437a1ae14fdd67d3d1454c27ff40f0425891ebebd85434cd9764a149d45b3d3e6458d2adaad9e29dc00
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+ repo_token: YIgfYldsw3H4J6txTUENiRzmg0Pf2ty41
data/.gitignore ADDED
@@ -0,0 +1,34 @@
1
+ *.gem
2
+ *.rbc
3
+ /.config
4
+ /coverage/
5
+ /InstalledFiles
6
+ /pkg/
7
+ /spec/reports/
8
+ /test/tmp/
9
+ /test/version_tmp/
10
+ /tmp/
11
+
12
+ ## Specific to RubyMotion:
13
+ .dat*
14
+ .repl_history
15
+ build/
16
+
17
+ ## Documentation cache and generated files:
18
+ /.yardoc/
19
+ /_yardoc/
20
+ /doc/
21
+ /rdoc/
22
+
23
+ ## Environment normalisation:
24
+ /.bundle/
25
+ /lib/bundler/man/
26
+
27
+ # for a library or gem, you might want to ignore these files since the code is
28
+ # intended to run in multiple environments; otherwise, check them in:
29
+ # Gemfile.lock
30
+ # .ruby-version
31
+ # .ruby-gemset
32
+
33
+ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
34
+ .rvmrc
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - jruby-19mode # JRuby in 1.9 mode
5
+ after_success:
6
+ - coveralls
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in exam.gemspec
4
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,91 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ ull-etsii-alu0100315462-quiz (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ celluloid (0.16.0)
10
+ timers (~> 4.0.0)
11
+ coderay (1.1.0)
12
+ coveralls (0.7.1)
13
+ multi_json (~> 1.3)
14
+ rest-client
15
+ simplecov (>= 0.7)
16
+ term-ansicolor
17
+ thor
18
+ diff-lcs (1.2.5)
19
+ docile (1.1.5)
20
+ ffi (1.9.6)
21
+ formatador (0.2.5)
22
+ guard (2.8.2)
23
+ formatador (>= 0.2.4)
24
+ listen (~> 2.7)
25
+ lumberjack (~> 1.0)
26
+ pry (>= 0.9.12)
27
+ thor (>= 0.18.1)
28
+ guard-bundler (2.0.0)
29
+ bundler (~> 1.0)
30
+ guard (~> 2.2)
31
+ guard-rspec (4.3.1)
32
+ guard (~> 2.1)
33
+ rspec (>= 2.14, < 4.0)
34
+ hitimes (1.2.2)
35
+ listen (2.8.0)
36
+ celluloid (>= 0.15.2)
37
+ rb-fsevent (>= 0.9.3)
38
+ rb-inotify (>= 0.9)
39
+ lumberjack (1.0.9)
40
+ method_source (0.8.2)
41
+ mime-types (2.4.3)
42
+ multi_json (1.10.1)
43
+ netrc (0.8.0)
44
+ pry (0.10.1)
45
+ coderay (~> 1.1.0)
46
+ method_source (~> 0.8.1)
47
+ slop (~> 3.4)
48
+ rake (10.3.2)
49
+ rb-fsevent (0.9.4)
50
+ rb-inotify (0.9.5)
51
+ ffi (>= 0.5.0)
52
+ rest-client (1.7.2)
53
+ mime-types (>= 1.16, < 3.0)
54
+ netrc (~> 0.7)
55
+ rspec (3.1.0)
56
+ rspec-core (~> 3.1.0)
57
+ rspec-expectations (~> 3.1.0)
58
+ rspec-mocks (~> 3.1.0)
59
+ rspec-core (3.1.7)
60
+ rspec-support (~> 3.1.0)
61
+ rspec-expectations (3.1.2)
62
+ diff-lcs (>= 1.2.0, < 2.0)
63
+ rspec-support (~> 3.1.0)
64
+ rspec-mocks (3.1.3)
65
+ rspec-support (~> 3.1.0)
66
+ rspec-support (3.1.2)
67
+ simplecov (0.9.1)
68
+ docile (~> 1.1.0)
69
+ multi_json (~> 1.0)
70
+ simplecov-html (~> 0.8.0)
71
+ simplecov-html (0.8.0)
72
+ slop (3.6.0)
73
+ term-ansicolor (1.3.0)
74
+ tins (~> 1.0)
75
+ thor (0.19.1)
76
+ timers (4.0.1)
77
+ hitimes
78
+ tins (1.3.3)
79
+
80
+ PLATFORMS
81
+ ruby
82
+
83
+ DEPENDENCIES
84
+ bundler (~> 1.7)
85
+ coveralls
86
+ guard
87
+ guard-bundler
88
+ guard-rspec
89
+ rake (~> 10.0)
90
+ rspec
91
+ ull-etsii-alu0100315462-quiz!
data/Guardfile ADDED
@@ -0,0 +1,39 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ guard :bundler do
5
+ watch('Gemfile')
6
+ # Uncomment next line if your Gemfile contains the `gemspec' command.
7
+ # watch(/^.+\.gemspec/)
8
+ end
9
+
10
+ # Note: The cmd option is now required due to the increasing number of ways
11
+ # rspec may be run, below are examples of the most common uses.
12
+ # * bundler: 'bundle exec rspec'
13
+ # * bundler binstubs: 'bin/rspec'
14
+ # * spring: 'bin/rsspec' (This will use spring if running and you have
15
+ # installed the spring binstubs per the docs)
16
+ # * zeus: 'zeus rspec' (requires the server to be started separetly)
17
+ # * 'just' rspec: 'rspec'
18
+ guard :rspec, cmd: 'bundle exec rspec' do
19
+ watch(%r{^spec/.+_spec\.rb$})
20
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
21
+ watch('spec/spec_helper.rb') { "spec" }
22
+
23
+ # Rails example
24
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
25
+ watch(%r{^app/(.*)(\.erb|\.haml|\.slim)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
26
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
27
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
28
+ watch('config/routes.rb') { "spec/routing" }
29
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
30
+ watch('spec/rails_helper.rb') { "spec" }
31
+
32
+ # Capybara features specs
33
+ watch(%r{^app/views/(.+)/.*\.(erb|haml|slim)$}) { |m| "spec/features/#{m[1]}_spec.rb" }
34
+
35
+ # Turnip features and steps
36
+ watch(%r{^spec/acceptance/(.+)\.feature$})
37
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'spec/acceptance' }
38
+ end
39
+
data/Rakefile ADDED
@@ -0,0 +1,18 @@
1
+ require "bundler/gem_tasks"
2
+ require 'rdoc/task'
3
+
4
+ desc "Run RSpec code examples"
5
+ task :spec do
6
+ sh "bundle exec rspec spec/quiz_spec.rb"
7
+ end
8
+
9
+ task :guard do
10
+ sh "bundle exec guard"
11
+ end
12
+
13
+ Rake::RDocTask.new do |rd|
14
+ rd.main = "README.rdoc"
15
+ rd.rdoc_files.include("Readme.md", "lib/**/*.rb")
16
+ end
17
+
18
+ task :default => :spec
data/Readme.md ADDED
@@ -0,0 +1,21 @@
1
+ DSL Examen
2
+ ================
3
+
4
+ Programa para la definición de un examen utilizando:
5
+
6
+ * Programación Funcional
7
+ * Diseño mediante Lenguaje de Dominio Específico (Domain Specific Language - DSL)
8
+ * Desarrollo Dirigido por Pruebas
9
+ * Publicar la gema en rubygems.org
10
+
11
+ Practica Realizada por:
12
+
13
+ Alexis Hugh Lopez Waugh
14
+ Alvaro Suarez Chausson
15
+
16
+
17
+ <a href='https://travis-ci.org/alu0100315462/LPP_T_10_P11'>
18
+ <img src='https://travis-ci.org/alu0100315462/LPP_T_10_P11.svg?branch=master' alt='Build Status' /></a>
19
+
20
+ <a href='https://coveralls.io/r/alu0100315462/LPP_T_10_P11?branch=master'>
21
+ <img src='https://coveralls.io/repos/alu0100315462/LPP_T_10_P11/badge.png?branch=master' alt='Coverage Status' /></a>
data/html/Quiz.html ADDED
@@ -0,0 +1,114 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Quiz - 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-Quiz">
68
+ <h1 id="module-Quiz" class="module">
69
+ module Quiz
70
+ </h1>
71
+
72
+ <section class="description">
73
+
74
+ <p>Modulo para contener las clases con las que se crea un examen</p>
75
+
76
+ </section>
77
+
78
+
79
+
80
+
81
+ <section id="5Buntitled-5D" class="documentation-section">
82
+
83
+
84
+
85
+
86
+
87
+ <section class="constants-list">
88
+ <header>
89
+ <h3>Constants</h3>
90
+ </header>
91
+ <dl>
92
+
93
+ <dt id="VERSION">VERSION
94
+
95
+ <dd>
96
+
97
+
98
+ </dl>
99
+ </section>
100
+
101
+
102
+
103
+
104
+
105
+ </section>
106
+ </main>
107
+
108
+
109
+ <footer id="validator-badges" role="contentinfo">
110
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
111
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
112
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
113
+ </footer>
114
+
@@ -0,0 +1,242 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Quiz::Answer - 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">Object
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 ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-consulta">#consulta</a>
79
+
80
+ <li ><a href="#method-i-to_s">#to_s</a>
81
+
82
+ </ul>
83
+ </div>
84
+
85
+ </div>
86
+ </nav>
87
+
88
+ <main role="main" aria-labelledby="class-Quiz::Answer">
89
+ <h1 id="class-Quiz::Answer" class="class">
90
+ class Quiz::Answer
91
+ </h1>
92
+
93
+ <section class="description">
94
+
95
+ <p>clase que define una respuesta</p>
96
+
97
+ </section>
98
+
99
+
100
+
101
+
102
+ <section id="5Buntitled-5D" class="documentation-section">
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
113
+ <header>
114
+ <h3>Public Class Methods</h3>
115
+ </header>
116
+
117
+
118
+ <div id="method-c-new" class="method-detail ">
119
+
120
+ <div class="method-heading">
121
+ <span class="method-name">new</span><span
122
+ class="method-args">(valor, respuesta)</span>
123
+
124
+ <span class="method-click-advice">click to toggle source</span>
125
+
126
+ </div>
127
+
128
+
129
+ <div class="method-description">
130
+
131
+ <p>almacena la respuesta, si es correcta o no y su posicione</p>
132
+
133
+
134
+
135
+
136
+ <div class="method-source-code" id="new-source">
137
+ <pre><span class="ruby-comment"># File lib/quiz/answer.rb, line 7</span>
138
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">valor</span>, <span class="ruby-identifier">respuesta</span>)
139
+ <span class="ruby-ivar">@posicion</span> = <span class="ruby-identifier">valor</span>[<span class="ruby-value">0</span>]
140
+ <span class="ruby-ivar">@valor</span> = <span class="ruby-identifier">valor</span>[<span class="ruby-value">1</span>]
141
+ <span class="ruby-ivar">@respuesta</span> = <span class="ruby-identifier">respuesta</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 id="public-instance-5Buntitled-5D-method-details" class="method-section">
156
+ <header>
157
+ <h3>Public Instance Methods</h3>
158
+ </header>
159
+
160
+
161
+ <div id="method-i-consulta" class="method-detail ">
162
+
163
+ <div class="method-heading">
164
+ <span class="method-name">consulta</span><span
165
+ class="method-args">()</span>
166
+
167
+ <span class="method-click-advice">click to toggle source</span>
168
+
169
+ </div>
170
+
171
+
172
+ <div class="method-description">
173
+
174
+ <p>comprueba si la respuesta es correcta</p>
175
+
176
+
177
+
178
+
179
+ <div class="method-source-code" id="consulta-source">
180
+ <pre><span class="ruby-comment"># File lib/quiz/answer.rb, line 20</span>
181
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">consulta</span>
182
+ <span class="ruby-keyword">if</span> (<span class="ruby-ivar">@valor</span> <span class="ruby-operator">==</span> <span class="ruby-value">0</span> ) <span class="ruby-keyword">then</span>
183
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">true</span>
184
+ <span class="ruby-keyword">end</span>
185
+ <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span>
186
+ <span class="ruby-keyword">end</span></pre>
187
+ </div>
188
+
189
+ </div>
190
+
191
+
192
+
193
+
194
+ </div>
195
+
196
+
197
+ <div id="method-i-to_s" class="method-detail ">
198
+
199
+ <div class="method-heading">
200
+ <span class="method-name">to_s</span><span
201
+ class="method-args">()</span>
202
+
203
+ <span class="method-click-advice">click to toggle source</span>
204
+
205
+ </div>
206
+
207
+
208
+ <div class="method-description">
209
+
210
+ <p>muestra una respuesta como un string</p>
211
+
212
+
213
+
214
+
215
+ <div class="method-source-code" id="to_s-source">
216
+ <pre><span class="ruby-comment"># File lib/quiz/answer.rb, line 14</span>
217
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
218
+ <span class="ruby-ivar">@cadena</span> = <span class="ruby-ivar">@posicion</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot; - &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@respuesta</span>.<span class="ruby-identifier">to_s</span>
219
+ <span class="ruby-keyword">return</span> <span class="ruby-ivar">@cadena</span>
220
+ <span class="ruby-keyword">end</span></pre>
221
+ </div>
222
+
223
+ </div>
224
+
225
+
226
+
227
+
228
+ </div>
229
+
230
+
231
+ </section>
232
+
233
+ </section>
234
+ </main>
235
+
236
+
237
+ <footer id="validator-badges" role="contentinfo">
238
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
239
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
240
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
241
+ </footer>
242
+