dLinkedList 0.1.0
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 +1 -0
- data/.gitignore +9 -0
- data/.rspec +3 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +4 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/dLinkedList.gemspec +29 -0
- data/html/DLinkedList.html +111 -0
- data/html/DLinkedList/Articulo.html +321 -0
- data/html/DLinkedList/EDocumento.html +321 -0
- data/html/DLinkedList/Libro.html +370 -0
- data/html/DLinkedList/List.html +464 -0
- data/html/DLinkedList/Node.html +205 -0
- data/html/DLinkedList/Referencia.html +464 -0
- data/html/created.rid +4 -0
- data/html/css/fonts.css +167 -0
- data/html/css/rdoc.css +590 -0
- data/html/fonts/Lato-Light.ttf +0 -0
- data/html/fonts/Lato-LightItalic.ttf +0 -0
- data/html/fonts/Lato-Regular.ttf +0 -0
- data/html/fonts/Lato-RegularItalic.ttf +0 -0
- data/html/fonts/SourceCodePro-Bold.ttf +0 -0
- data/html/fonts/SourceCodePro-Regular.ttf +0 -0
- data/html/images/add.png +0 -0
- data/html/images/arrow_up.png +0 -0
- data/html/images/brick.png +0 -0
- data/html/images/brick_link.png +0 -0
- data/html/images/bug.png +0 -0
- data/html/images/bullet_black.png +0 -0
- data/html/images/bullet_toggle_minus.png +0 -0
- data/html/images/bullet_toggle_plus.png +0 -0
- data/html/images/date.png +0 -0
- data/html/images/delete.png +0 -0
- data/html/images/find.png +0 -0
- data/html/images/loadingAnimation.gif +0 -0
- data/html/images/macFFBgHack.png +0 -0
- data/html/images/package.png +0 -0
- data/html/images/page_green.png +0 -0
- data/html/images/page_white_text.png +0 -0
- data/html/images/page_white_width.png +0 -0
- data/html/images/plugin.png +0 -0
- data/html/images/ruby.png +0 -0
- data/html/images/tag_blue.png +0 -0
- data/html/images/tag_green.png +0 -0
- data/html/images/transparent.png +0 -0
- data/html/images/wrench.png +0 -0
- data/html/images/wrench_orange.png +0 -0
- data/html/images/zoom.png +0 -0
- data/html/index.html +92 -0
- data/html/js/darkfish.js +161 -0
- data/html/js/jquery.js +4 -0
- data/html/js/navigation.js +142 -0
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search.js +109 -0
- data/html/js/search_index.js +1 -0
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js +228 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +202 -0
- data/lib/dLinkedList.rb +6 -0
- data/lib/dLinkedList/dLinkedList.rb +313 -0
- data/lib/dLinkedList/version.rb +4 -0
- metadata +210 -0
@@ -0,0 +1,321 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class DLinkedList::EDocumento - 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="Referencia.html">DLinkedList::Referencia</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 ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-URL_descarga">#URL_descarga</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-fecha_recup">#fecha_recup</a>
|
78
|
+
|
79
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-labelledby="class-DLinkedList::EDocumento">
|
88
|
+
<h1 id="class-DLinkedList::EDocumento" class="class">
|
89
|
+
class DLinkedList::EDocumento
|
90
|
+
</h1>
|
91
|
+
|
92
|
+
<section class="description">
|
93
|
+
|
94
|
+
<p><a href="Referencia.html">Referencia</a> de un documento electrónico.</p>
|
95
|
+
|
96
|
+
</section>
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<section class="attribute-method-details" class="method-section">
|
110
|
+
<header>
|
111
|
+
<h3>Attributes</h3>
|
112
|
+
</header>
|
113
|
+
|
114
|
+
|
115
|
+
<div id="attribute-i-dURL" class="method-detail">
|
116
|
+
<div class="method-heading attribute-method-heading">
|
117
|
+
<span class="method-name">dURL</span><span
|
118
|
+
class="attribute-access-type">[R]</span>
|
119
|
+
</div>
|
120
|
+
|
121
|
+
<div class="method-description">
|
122
|
+
|
123
|
+
<p>URL de descarga del documento.</p>
|
124
|
+
|
125
|
+
</div>
|
126
|
+
</div>
|
127
|
+
|
128
|
+
<div id="attribute-i-fecha_recuperacion" class="method-detail">
|
129
|
+
<div class="method-heading attribute-method-heading">
|
130
|
+
<span class="method-name">fecha_recuperacion</span><span
|
131
|
+
class="attribute-access-type">[R]</span>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="method-description">
|
135
|
+
|
136
|
+
<p>Fecha de recuperación del documento.</p>
|
137
|
+
|
138
|
+
</div>
|
139
|
+
</div>
|
140
|
+
|
141
|
+
</section>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
146
|
+
<header>
|
147
|
+
<h3>Public Class Methods</h3>
|
148
|
+
</header>
|
149
|
+
|
150
|
+
|
151
|
+
<div id="method-c-new" class="method-detail ">
|
152
|
+
|
153
|
+
<div class="method-heading">
|
154
|
+
<span class="method-name">new</span><span
|
155
|
+
class="method-args">(&block)</span>
|
156
|
+
|
157
|
+
<span class="method-click-advice">click to toggle source</span>
|
158
|
+
|
159
|
+
</div>
|
160
|
+
|
161
|
+
|
162
|
+
<div class="method-description">
|
163
|
+
|
164
|
+
<p>Inicializa la referencia al documento electrónico usando el DSL
|
165
|
+
especificado en el bloque <em>block</em>.</p>
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
<div class="method-source-code" id="new-source">
|
171
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 169</span>
|
172
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
173
|
+
<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
174
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Debe haber al menos un autor"</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@autores</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
175
|
+
<span class="ruby-keyword">end</span></pre>
|
176
|
+
</div>
|
177
|
+
|
178
|
+
</div>
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</div>
|
184
|
+
|
185
|
+
|
186
|
+
</section>
|
187
|
+
|
188
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
189
|
+
<header>
|
190
|
+
<h3>Public Instance Methods</h3>
|
191
|
+
</header>
|
192
|
+
|
193
|
+
|
194
|
+
<div id="method-i-to_s" class="method-detail ">
|
195
|
+
|
196
|
+
<div class="method-heading">
|
197
|
+
<span class="method-name">to_s</span><span
|
198
|
+
class="method-args">()</span>
|
199
|
+
|
200
|
+
<span class="method-click-advice">click to toggle source</span>
|
201
|
+
|
202
|
+
</div>
|
203
|
+
|
204
|
+
|
205
|
+
<div class="method-description">
|
206
|
+
|
207
|
+
<p>Devuelve una cadena con el contenido de la referencia al documento
|
208
|
+
electrónico en formato APA.</p>
|
209
|
+
|
210
|
+
<p>Formato: Apellidos_Autor, Nombre_Autor [& Apellidos_Autor,
|
211
|
+
Nombre_Autor…] (Fecha de publicación). Título. Fecha de recuperación, URL.</p>
|
212
|
+
|
213
|
+
|
214
|
+
<div class="method-calls-super">
|
215
|
+
Calls superclass method
|
216
|
+
<a href="Referencia.html#method-i-to_s">DLinkedList::Referencia#to_s</a>
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
<div class="method-source-code" id="to_s-source">
|
222
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 187</span>
|
223
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
224
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" Recuperado el #{@fecha_recuperacion.strftime('%-d/%-m/%Y')}, de #{@dURL}."</span>
|
225
|
+
<span class="ruby-keyword">end</span></pre>
|
226
|
+
</div>
|
227
|
+
|
228
|
+
</div>
|
229
|
+
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
</section>
|
237
|
+
|
238
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section">
|
239
|
+
<header>
|
240
|
+
<h3>Protected Instance Methods</h3>
|
241
|
+
</header>
|
242
|
+
|
243
|
+
|
244
|
+
<div id="method-i-URL_descarga" class="method-detail ">
|
245
|
+
|
246
|
+
<div class="method-heading">
|
247
|
+
<span class="method-name">URL_descarga</span><span
|
248
|
+
class="method-args">(dURL)</span>
|
249
|
+
|
250
|
+
<span class="method-click-advice">click to toggle source</span>
|
251
|
+
|
252
|
+
</div>
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-description">
|
256
|
+
|
257
|
+
<p>Establece la URL de descarga del documento.</p>
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
<div class="method-source-code" id="URL_descarga-source">
|
263
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 180</span>
|
264
|
+
<span class="ruby-keyword">def</span> <span class="ruby-constant">URL_descarga</span>(<span class="ruby-identifier">dURL</span>)
|
265
|
+
<span class="ruby-ivar">@dURL</span> = <span class="ruby-identifier">dURL</span>
|
266
|
+
<span class="ruby-keyword">end</span></pre>
|
267
|
+
</div>
|
268
|
+
|
269
|
+
</div>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
</div>
|
275
|
+
|
276
|
+
|
277
|
+
<div id="method-i-fecha_recup" class="method-detail ">
|
278
|
+
|
279
|
+
<div class="method-heading">
|
280
|
+
<span class="method-name">fecha_recup</span><span
|
281
|
+
class="method-args">(fecha_recuperacion)</span>
|
282
|
+
|
283
|
+
<span class="method-click-advice">click to toggle source</span>
|
284
|
+
|
285
|
+
</div>
|
286
|
+
|
287
|
+
|
288
|
+
<div class="method-description">
|
289
|
+
|
290
|
+
<p>Establece la fecha de recuperación del documento.</p>
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
<div class="method-source-code" id="fecha_recup-source">
|
296
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 175</span>
|
297
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">fecha_recup</span>(<span class="ruby-identifier">fecha_recuperacion</span>)
|
298
|
+
<span class="ruby-ivar">@fecha_recuperacion</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">strptime</span>(<span class="ruby-identifier">fecha_recuperacion</span>, <span class="ruby-string">'%d/%m/%Y'</span>)
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
|
310
|
+
</section>
|
311
|
+
|
312
|
+
</section>
|
313
|
+
</main>
|
314
|
+
|
315
|
+
|
316
|
+
<footer id="validator-badges" role="contentinfo">
|
317
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
318
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
319
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
320
|
+
</footer>
|
321
|
+
|
@@ -0,0 +1,370 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class DLinkedList::Libro - 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="Referencia.html">DLinkedList::Referencia</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 ><a href="#method-c-new">::new</a>
|
74
|
+
|
75
|
+
<li ><a href="#method-i-ed">#ed</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-editor">#editor</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-lugar">#lugar</a>
|
80
|
+
|
81
|
+
<li class="calls-super" ><a href="#method-i-to_s">#to_s</a>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
</div>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
</nav>
|
88
|
+
|
89
|
+
<main role="main" aria-labelledby="class-DLinkedList::Libro">
|
90
|
+
<h1 id="class-DLinkedList::Libro" class="class">
|
91
|
+
class DLinkedList::Libro
|
92
|
+
</h1>
|
93
|
+
|
94
|
+
<section class="description">
|
95
|
+
|
96
|
+
<p><a href="Referencia.html">Referencia</a> de un libro.</p>
|
97
|
+
|
98
|
+
</section>
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
<section class="attribute-method-details" class="method-section">
|
112
|
+
<header>
|
113
|
+
<h3>Attributes</h3>
|
114
|
+
</header>
|
115
|
+
|
116
|
+
|
117
|
+
<div id="attribute-i-edicion" class="method-detail">
|
118
|
+
<div class="method-heading attribute-method-heading">
|
119
|
+
<span class="method-name">edicion</span><span
|
120
|
+
class="attribute-access-type">[R]</span>
|
121
|
+
</div>
|
122
|
+
|
123
|
+
<div class="method-description">
|
124
|
+
|
125
|
+
<p>Nº de edición.</p>
|
126
|
+
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
|
130
|
+
<div id="attribute-i-editorial" class="method-detail">
|
131
|
+
<div class="method-heading attribute-method-heading">
|
132
|
+
<span class="method-name">editorial</span><span
|
133
|
+
class="attribute-access-type">[R]</span>
|
134
|
+
</div>
|
135
|
+
|
136
|
+
<div class="method-description">
|
137
|
+
|
138
|
+
<p>Editorial.</p>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</div>
|
142
|
+
|
143
|
+
<div id="attribute-i-lugar_publicacion" class="method-detail">
|
144
|
+
<div class="method-heading attribute-method-heading">
|
145
|
+
<span class="method-name">lugar_publicacion</span><span
|
146
|
+
class="attribute-access-type">[R]</span>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
<div class="method-description">
|
150
|
+
|
151
|
+
<p>Lugar de publicación.</p>
|
152
|
+
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
|
156
|
+
</section>
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
161
|
+
<header>
|
162
|
+
<h3>Public Class Methods</h3>
|
163
|
+
</header>
|
164
|
+
|
165
|
+
|
166
|
+
<div id="method-c-new" class="method-detail ">
|
167
|
+
|
168
|
+
<div class="method-heading">
|
169
|
+
<span class="method-name">new</span><span
|
170
|
+
class="method-args">(&block)</span>
|
171
|
+
|
172
|
+
<span class="method-click-advice">click to toggle source</span>
|
173
|
+
|
174
|
+
</div>
|
175
|
+
|
176
|
+
|
177
|
+
<div class="method-description">
|
178
|
+
|
179
|
+
<p>Inicializa la referencia al libro usando el DSL especificado en el bloque
|
180
|
+
<em>block</em>.</p>
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
<div class="method-source-code" id="new-source">
|
186
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 94</span>
|
187
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
188
|
+
<span class="ruby-identifier">instance_eval</span> <span class="ruby-operator">&</span><span class="ruby-identifier">block</span>
|
189
|
+
<span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Debe haber al menos un autor"</span> <span class="ruby-keyword">unless</span> <span class="ruby-ivar">@autores</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>
|
190
|
+
<span class="ruby-keyword">end</span></pre>
|
191
|
+
</div>
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
</div>
|
199
|
+
|
200
|
+
|
201
|
+
</section>
|
202
|
+
|
203
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
204
|
+
<header>
|
205
|
+
<h3>Public Instance Methods</h3>
|
206
|
+
</header>
|
207
|
+
|
208
|
+
|
209
|
+
<div id="method-i-to_s" class="method-detail ">
|
210
|
+
|
211
|
+
<div class="method-heading">
|
212
|
+
<span class="method-name">to_s</span><span
|
213
|
+
class="method-args">()</span>
|
214
|
+
|
215
|
+
<span class="method-click-advice">click to toggle source</span>
|
216
|
+
|
217
|
+
</div>
|
218
|
+
|
219
|
+
|
220
|
+
<div class="method-description">
|
221
|
+
|
222
|
+
<p>Devuelve una cadena con el contenido de la referencia al libro en formato
|
223
|
+
APA.</p>
|
224
|
+
|
225
|
+
<p>Formato: Apellidos_Autor, Nombre_Autor [& Apellidos_Autor,
|
226
|
+
Nombre_Autor…] (Fecha de publicación). Título. (edicion) Lugar de
|
227
|
+
publicación: Editorial.</p>
|
228
|
+
|
229
|
+
|
230
|
+
<div class="method-calls-super">
|
231
|
+
Calls superclass method
|
232
|
+
<a href="Referencia.html#method-i-to_s">DLinkedList::Referencia#to_s</a>
|
233
|
+
</div>
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<div class="method-source-code" id="to_s-source">
|
238
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 117</span>
|
239
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
240
|
+
<span class="ruby-keyword">return</span> <span class="ruby-keyword">super</span> <span class="ruby-operator"><<</span> <span class="ruby-node">" (#{@edicion}ª edición) #{@lugar_publicacion}: #{@editorial}."</span>
|
241
|
+
<span class="ruby-keyword">end</span></pre>
|
242
|
+
</div>
|
243
|
+
|
244
|
+
</div>
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
</div>
|
250
|
+
|
251
|
+
|
252
|
+
</section>
|
253
|
+
|
254
|
+
<section id="protected-instance-5Buntitled-5D-method-details" class="method-section">
|
255
|
+
<header>
|
256
|
+
<h3>Protected Instance Methods</h3>
|
257
|
+
</header>
|
258
|
+
|
259
|
+
|
260
|
+
<div id="method-i-ed" class="method-detail ">
|
261
|
+
|
262
|
+
<div class="method-heading">
|
263
|
+
<span class="method-name">ed</span><span
|
264
|
+
class="method-args">(edicion)</span>
|
265
|
+
|
266
|
+
<span class="method-click-advice">click to toggle source</span>
|
267
|
+
|
268
|
+
</div>
|
269
|
+
|
270
|
+
|
271
|
+
<div class="method-description">
|
272
|
+
|
273
|
+
<p>Establece el nº de edición.</p>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
278
|
+
<div class="method-source-code" id="ed-source">
|
279
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 100</span>
|
280
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">ed</span>(<span class="ruby-identifier">edicion</span>)
|
281
|
+
<span class="ruby-ivar">@edicion</span> = <span class="ruby-identifier">edicion</span>
|
282
|
+
<span class="ruby-keyword">end</span></pre>
|
283
|
+
</div>
|
284
|
+
|
285
|
+
</div>
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
</div>
|
291
|
+
|
292
|
+
|
293
|
+
<div id="method-i-editor" class="method-detail ">
|
294
|
+
|
295
|
+
<div class="method-heading">
|
296
|
+
<span class="method-name">editor</span><span
|
297
|
+
class="method-args">(editorial)</span>
|
298
|
+
|
299
|
+
<span class="method-click-advice">click to toggle source</span>
|
300
|
+
|
301
|
+
</div>
|
302
|
+
|
303
|
+
|
304
|
+
<div class="method-description">
|
305
|
+
|
306
|
+
<p>Establece la editorial.</p>
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
<div class="method-source-code" id="editor-source">
|
312
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 110</span>
|
313
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">editor</span>(<span class="ruby-identifier">editorial</span>)
|
314
|
+
<span class="ruby-ivar">@editorial</span> = <span class="ruby-identifier">editorial</span>
|
315
|
+
<span class="ruby-keyword">end</span></pre>
|
316
|
+
</div>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
|
321
|
+
|
322
|
+
|
323
|
+
</div>
|
324
|
+
|
325
|
+
|
326
|
+
<div id="method-i-lugar" class="method-detail ">
|
327
|
+
|
328
|
+
<div class="method-heading">
|
329
|
+
<span class="method-name">lugar</span><span
|
330
|
+
class="method-args">(lugar_publicacion)</span>
|
331
|
+
|
332
|
+
<span class="method-click-advice">click to toggle source</span>
|
333
|
+
|
334
|
+
</div>
|
335
|
+
|
336
|
+
|
337
|
+
<div class="method-description">
|
338
|
+
|
339
|
+
<p>Establece el lugar de publicación.</p>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
<div class="method-source-code" id="lugar-source">
|
345
|
+
<pre><span class="ruby-comment"># File lib/dLinkedList/dLinkedList.rb, line 105</span>
|
346
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">lugar</span>(<span class="ruby-identifier">lugar_publicacion</span>)
|
347
|
+
<span class="ruby-ivar">@lugar_publicacion</span> = <span class="ruby-identifier">lugar_publicacion</span>
|
348
|
+
<span class="ruby-keyword">end</span></pre>
|
349
|
+
</div>
|
350
|
+
|
351
|
+
</div>
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
|
356
|
+
</div>
|
357
|
+
|
358
|
+
|
359
|
+
</section>
|
360
|
+
|
361
|
+
</section>
|
362
|
+
</main>
|
363
|
+
|
364
|
+
|
365
|
+
<footer id="validator-badges" role="contentinfo">
|
366
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
367
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
368
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
369
|
+
</footer>
|
370
|
+
|