lpp_Grupo3 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +104 -0
- data/Guardfile +87 -0
- data/LICENSE.txt +21 -0
- data/README.md +41 -0
- data/Rakefile +5 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/coverage/.last_run.json +5 -0
- data/coverage/.resultset.json +7 -0
- data/coverage/.resultset.json.lock +0 -0
- data/doc/Articulo.html +289 -0
- data/doc/Bibliografia.html +306 -0
- data/doc/CODE_OF_CONDUCT_md.html +125 -0
- data/doc/Cita.html +348 -0
- data/doc/CitaArticulo.html +286 -0
- data/doc/CitaCapitulo.html +333 -0
- data/doc/CitaEdoc.html +334 -0
- data/doc/CitaLibro.html +333 -0
- data/doc/Citayanoexiste.html +113 -0
- data/doc/G03ref.html +417 -0
- data/doc/Gemfile.html +100 -0
- data/doc/Gemfile_lock.html +206 -0
- data/doc/Guardfile.html +185 -0
- data/doc/LICENSE_txt.html +117 -0
- data/doc/Libro.html +365 -0
- data/doc/List.html +379 -0
- data/doc/LppGrupo3.html +109 -0
- data/doc/Lpp_Grupo3.html +95 -0
- data/doc/Object.html +161 -0
- data/doc/README_md.html +163 -0
- data/doc/Rakefile.html +99 -0
- data/doc/bin/setup.html +101 -0
- data/doc/created.rid +20 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +131 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/lpp_Grupo3_gemspec.html +134 -0
- data/doc/table_of_contents.html +332 -0
- data/lib/lpp_Grupo3.rb +8 -0
- data/lib/lpp_Grupo3/bibliografia.rb +38 -0
- data/lib/lpp_Grupo3/cita.rb +232 -0
- data/lib/lpp_Grupo3/list.rb +61 -0
- data/lib/lpp_Grupo3/reference.rb +110 -0
- data/lib/lpp_Grupo3/version.rb +3 -0
- data/lpp_Grupo3.gemspec +37 -0
- metadata +232 -0
@@ -0,0 +1,286 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class CitaArticulo - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link"><a href="Cita.html">Cita</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-articulo">#articulo</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</nav>
|
84
|
+
|
85
|
+
<main role="main" aria-labelledby="class-CitaArticulo">
|
86
|
+
<h1 id="class-CitaArticulo" class="class">
|
87
|
+
class CitaArticulo
|
88
|
+
</h1>
|
89
|
+
|
90
|
+
<section class="description">
|
91
|
+
|
92
|
+
</section>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<section class="attribute-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Attributes</h3>
|
108
|
+
</header>
|
109
|
+
|
110
|
+
|
111
|
+
<div id="attribute-i-medio" class="method-detail">
|
112
|
+
<div class="method-heading attribute-method-heading">
|
113
|
+
<span class="method-name">medio</span><span
|
114
|
+
class="attribute-access-type">[RW]</span>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div class="method-description">
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="attribute-i-paginas" class="method-detail">
|
125
|
+
<div class="method-heading attribute-method-heading">
|
126
|
+
<span class="method-name">paginas</span><span
|
127
|
+
class="attribute-access-type">[RW]</span>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div class="method-description">
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
</section>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
142
|
+
<header>
|
143
|
+
<h3>Public Class Methods</h3>
|
144
|
+
</header>
|
145
|
+
|
146
|
+
|
147
|
+
<div id="method-c-new" class="method-detail ">
|
148
|
+
|
149
|
+
<div class="method-heading">
|
150
|
+
<span class="method-name">new</span><span
|
151
|
+
class="method-args">(author, date, articulo, medio, pagina)</span>
|
152
|
+
|
153
|
+
<span class="method-click-advice">click to toggle source</span>
|
154
|
+
|
155
|
+
</div>
|
156
|
+
|
157
|
+
|
158
|
+
<div class="method-description">
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
<div class="method-calls-super">
|
164
|
+
Calls superclass method
|
165
|
+
<a href="Cita.html#method-c-new">Cita.new</a>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<div class="method-source-code" id="new-source">
|
171
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 146</span>
|
172
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">author</span>, <span class="ruby-identifier">date</span>, <span class="ruby-identifier">articulo</span>, <span class="ruby-identifier">medio</span>, <span class="ruby-identifier">pagina</span>)
|
173
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">author</span>,<span class="ruby-identifier">date</span>, <span class="ruby-identifier">articulo</span>)
|
174
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">medio</span>=(<span class="ruby-identifier">medio</span>.<span class="ruby-identifier">split</span>.<span class="ruby-identifier">map</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">palabra</span><span class="ruby-operator">|</span> <span class="ruby-identifier">palabra</span>.<span class="ruby-identifier">capitalize</span>}).<span class="ruby-identifier">join</span>(<span class="ruby-string">" "</span>)
|
175
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">paginas</span>=<span class="ruby-identifier">pagina</span>
|
176
|
+
<span class="ruby-keyword">end</span></pre>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
</div>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
</div>
|
185
|
+
|
186
|
+
|
187
|
+
</section>
|
188
|
+
|
189
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
190
|
+
<header>
|
191
|
+
<h3>Public Instance Methods</h3>
|
192
|
+
</header>
|
193
|
+
|
194
|
+
|
195
|
+
<div id="method-i-articulo" class="method-detail ">
|
196
|
+
|
197
|
+
<div class="method-heading">
|
198
|
+
<span class="method-name">articulo</span><span
|
199
|
+
class="method-args">(datos = {})</span>
|
200
|
+
|
201
|
+
<span class="method-click-advice">click to toggle source</span>
|
202
|
+
|
203
|
+
</div>
|
204
|
+
|
205
|
+
|
206
|
+
<div class="method-description">
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
<div class="method-source-code" id="articulo-source">
|
214
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 152</span>
|
215
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">articulo</span>(<span class="ruby-identifier">datos</span> = {})
|
216
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">titulo</span>=<span class="ruby-identifier">datos</span>[<span class="ruby-value">:titulo</span>]
|
217
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">medio</span>=<span class="ruby-identifier">datos</span>[<span class="ruby-value">:medio</span>]
|
218
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">paginas</span>=<span class="ruby-identifier">datos</span>[<span class="ruby-value">:pagina</span>]
|
219
|
+
<span class="ruby-keyword">end</span></pre>
|
220
|
+
</div>
|
221
|
+
|
222
|
+
</div>
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
</div>
|
228
|
+
|
229
|
+
|
230
|
+
<div id="method-i-to_s" class="method-detail ">
|
231
|
+
|
232
|
+
<div class="method-heading">
|
233
|
+
<span class="method-name">to_s</span><span
|
234
|
+
class="method-args">()</span>
|
235
|
+
|
236
|
+
<span class="method-click-advice">click to toggle source</span>
|
237
|
+
|
238
|
+
</div>
|
239
|
+
|
240
|
+
|
241
|
+
<div class="method-description">
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-source-code" id="to_s-source">
|
249
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 165</span>
|
250
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
251
|
+
<span class="ruby-identifier">text</span>=<span class="ruby-string">""</span>
|
252
|
+
<span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> (<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">author</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>)
|
253
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{self.author[i][0]}, #{(self.author[i][1])[0]}. &"</span>
|
254
|
+
<span class="ruby-keyword">end</span>
|
255
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{self.author[self.author.size-1][0]}, #{(self.author[author.size-1][1])[0]}."</span>
|
256
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" (#{self.datey}"</span>
|
257
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sufijo</span><span class="ruby-operator">></span><span class="ruby-value">0</span>)
|
258
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sufijo</span><span class="ruby-operator">+</span><span class="ruby-value">96</span>).<span class="ruby-identifier">chr</span>
|
259
|
+
<span class="ruby-keyword">end</span>
|
260
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"). #{self.titulo}."</span>
|
261
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{self.medio}."</span>
|
262
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" (pag.:#{self.paginas})."</span>
|
263
|
+
<span class="ruby-identifier">text</span>
|
264
|
+
<span class="ruby-keyword">end</span></pre>
|
265
|
+
</div>
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
</div>
|
273
|
+
|
274
|
+
|
275
|
+
</section>
|
276
|
+
|
277
|
+
</section>
|
278
|
+
</main>
|
279
|
+
|
280
|
+
|
281
|
+
<footer id="validator-badges" role="contentinfo">
|
282
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
283
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
284
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
285
|
+
</footer>
|
286
|
+
|
@@ -0,0 +1,333 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class CitaCapitulo - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
</script>
|
12
|
+
|
13
|
+
<script src="./js/jquery.js"></script>
|
14
|
+
<script src="./js/darkfish.js"></script>
|
15
|
+
|
16
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
17
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
<body id="top" role="document" class="class">
|
22
|
+
<nav role="navigation">
|
23
|
+
<div id="project-navigation">
|
24
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
25
|
+
<h2>
|
26
|
+
<a href="./index.html" rel="home">Home</a>
|
27
|
+
</h2>
|
28
|
+
|
29
|
+
<div id="table-of-contents-navigation">
|
30
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
31
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
32
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
|
36
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
37
|
+
<form action="#" method="get" accept-charset="utf-8">
|
38
|
+
<div id="search-field-wrapper">
|
39
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
40
|
+
aria-autocomplete="list" aria-controls="search-results"
|
41
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
42
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<ul id="search-results" aria-label="Search Results"
|
46
|
+
aria-busy="false" aria-expanded="false"
|
47
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
48
|
+
</form>
|
49
|
+
</div>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
<div id="class-metadata">
|
56
|
+
|
57
|
+
<div id="parent-class-section" class="nav-section">
|
58
|
+
<h3>Parent</h3>
|
59
|
+
|
60
|
+
|
61
|
+
<p class="link"><a href="Cita.html">Cita</a>
|
62
|
+
|
63
|
+
</div>
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
<!-- Method Quickref -->
|
68
|
+
<div id="method-list-section" class="nav-section">
|
69
|
+
<h3>Methods</h3>
|
70
|
+
|
71
|
+
<ul class="link-list" role="directory">
|
72
|
+
|
73
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-capitulo">#capitulo</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-to_s">#to_s</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</nav>
|
84
|
+
|
85
|
+
<main role="main" aria-labelledby="class-CitaCapitulo">
|
86
|
+
<h1 id="class-CitaCapitulo" class="class">
|
87
|
+
class CitaCapitulo
|
88
|
+
</h1>
|
89
|
+
|
90
|
+
<section class="description">
|
91
|
+
|
92
|
+
</section>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
<section class="attribute-method-details" class="method-section">
|
106
|
+
<header>
|
107
|
+
<h3>Attributes</h3>
|
108
|
+
</header>
|
109
|
+
|
110
|
+
|
111
|
+
<div id="attribute-i-edicion" class="method-detail">
|
112
|
+
<div class="method-heading attribute-method-heading">
|
113
|
+
<span class="method-name">edicion</span><span
|
114
|
+
class="attribute-access-type">[RW]</span>
|
115
|
+
</div>
|
116
|
+
|
117
|
+
<div class="method-description">
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div id="attribute-i-editor" class="method-detail">
|
125
|
+
<div class="method-heading attribute-method-heading">
|
126
|
+
<span class="method-name">editor</span><span
|
127
|
+
class="attribute-access-type">[RW]</span>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div class="method-description">
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
</div>
|
135
|
+
</div>
|
136
|
+
|
137
|
+
<div id="attribute-i-subtitle" class="method-detail">
|
138
|
+
<div class="method-heading attribute-method-heading">
|
139
|
+
<span class="method-name">subtitle</span><span
|
140
|
+
class="attribute-access-type">[RW]</span>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div class="method-description">
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
|
150
|
+
<div id="attribute-i-title" class="method-detail">
|
151
|
+
<div class="method-heading attribute-method-heading">
|
152
|
+
<span class="method-name">title</span><span
|
153
|
+
class="attribute-access-type">[RW]</span>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
<div class="method-description">
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
</div>
|
161
|
+
</div>
|
162
|
+
|
163
|
+
<div id="attribute-i-volumen" class="method-detail">
|
164
|
+
<div class="method-heading attribute-method-heading">
|
165
|
+
<span class="method-name">volumen</span><span
|
166
|
+
class="attribute-access-type">[RW]</span>
|
167
|
+
</div>
|
168
|
+
|
169
|
+
<div class="method-description">
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
</div>
|
174
|
+
</div>
|
175
|
+
|
176
|
+
</section>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
181
|
+
<header>
|
182
|
+
<h3>Public Class Methods</h3>
|
183
|
+
</header>
|
184
|
+
|
185
|
+
|
186
|
+
<div id="method-c-new" class="method-detail ">
|
187
|
+
|
188
|
+
<div class="method-heading">
|
189
|
+
<span class="method-name">new</span><span
|
190
|
+
class="method-args">(author, date, titulocap, titulo, subtitulo, editor, edicion, volumen)</span>
|
191
|
+
|
192
|
+
<span class="method-click-advice">click to toggle source</span>
|
193
|
+
|
194
|
+
</div>
|
195
|
+
|
196
|
+
|
197
|
+
<div class="method-description">
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
|
202
|
+
<div class="method-calls-super">
|
203
|
+
Calls superclass method
|
204
|
+
<a href="Cita.html#method-c-new">Cita.new</a>
|
205
|
+
</div>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
<div class="method-source-code" id="new-source">
|
210
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 94</span>
|
211
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">author</span>, <span class="ruby-identifier">date</span>, <span class="ruby-identifier">titulocap</span>, <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">subtitulo</span>, <span class="ruby-identifier">editor</span>, <span class="ruby-identifier">edicion</span>, <span class="ruby-identifier">volumen</span>)
|
212
|
+
<span class="ruby-keyword">super</span>(<span class="ruby-identifier">author</span>, <span class="ruby-identifier">date</span>, <span class="ruby-identifier">titulocap</span>)
|
213
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span>=<span class="ruby-identifier">titulo</span>
|
214
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">subtitle</span>=<span class="ruby-identifier">subtitulo</span>
|
215
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">editor</span>=<span class="ruby-identifier">editor</span>
|
216
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">edicion</span>=<span class="ruby-identifier">edicion</span>
|
217
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volumen</span>=<span class="ruby-identifier">volumen</span>
|
218
|
+
<span class="ruby-keyword">end</span></pre>
|
219
|
+
</div>
|
220
|
+
|
221
|
+
</div>
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
</section>
|
230
|
+
|
231
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
232
|
+
<header>
|
233
|
+
<h3>Public Instance Methods</h3>
|
234
|
+
</header>
|
235
|
+
|
236
|
+
|
237
|
+
<div id="method-i-capitulo" class="method-detail ">
|
238
|
+
|
239
|
+
<div class="method-heading">
|
240
|
+
<span class="method-name">capitulo</span><span
|
241
|
+
class="method-args">(datos = {})</span>
|
242
|
+
|
243
|
+
<span class="method-click-advice">click to toggle source</span>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-description">
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-source-code" id="capitulo-source">
|
256
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 103</span>
|
257
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">capitulo</span> (<span class="ruby-identifier">datos</span> = {})
|
258
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:titulo</span>]
|
259
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">titulo</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:capitulo</span>]
|
260
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">subtitle</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:subtitulo</span>]
|
261
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">editor</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:editor</span>]
|
262
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">edicion</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:edicion</span>]
|
263
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volumen</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:volumen</span>]
|
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-to_s" class="method-detail ">
|
276
|
+
|
277
|
+
<div class="method-heading">
|
278
|
+
<span class="method-name">to_s</span><span
|
279
|
+
class="method-args">()</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="to_s-source">
|
294
|
+
<pre><span class="ruby-comment"># File lib/lpp_Grupo3/cita.rb, line 122</span>
|
295
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
296
|
+
<span class="ruby-identifier">text</span>=<span class="ruby-string">""</span>
|
297
|
+
<span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> (<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-identifier">author</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">2</span>)
|
298
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{self.author[i][0]}, #{(self.author[i][1])[0]}. &"</span>
|
299
|
+
<span class="ruby-keyword">end</span>
|
300
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" #{self.author[author.size-1][0]}, #{(self.author[self.author.size-1][1])[0]}."</span>
|
301
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" (#{self.datey}"</span>
|
302
|
+
<span class="ruby-keyword">if</span> (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sufijo</span><span class="ruby-operator">></span><span class="ruby-value">0</span>)
|
303
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> (<span class="ruby-keyword">self</span>.<span class="ruby-identifier">sufijo</span><span class="ruby-operator">+</span><span class="ruby-value">96</span>).<span class="ruby-identifier">chr</span>
|
304
|
+
<span class="ruby-keyword">end</span>
|
305
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"). #{self.titulo}. "</span>
|
306
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{self.title}. "</span>
|
307
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"(#{self.edicion}) "</span>
|
308
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"(#{self.volumen})."</span>
|
309
|
+
<span class="ruby-identifier">text</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{self.editor}."</span>
|
310
|
+
<span class="ruby-identifier">text</span>
|
311
|
+
<span class="ruby-keyword">end</span></pre>
|
312
|
+
</div>
|
313
|
+
|
314
|
+
</div>
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
</div>
|
320
|
+
|
321
|
+
|
322
|
+
</section>
|
323
|
+
|
324
|
+
</section>
|
325
|
+
</main>
|
326
|
+
|
327
|
+
|
328
|
+
<footer id="validator-badges" role="contentinfo">
|
329
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
330
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
331
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
332
|
+
</footer>
|
333
|
+
|