referencess 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 +1 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +8 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +38 -0
- data/Rakefile +7 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/doc/References.html +146 -0
- data/doc/References/Book.html +410 -0
- data/doc/References/Ebook.html +362 -0
- data/doc/References/List.html +822 -0
- data/doc/References/Magazine.html +376 -0
- data/doc/References/Name.html +559 -0
- data/doc/References/Node.html +408 -0
- data/doc/References/Reference.html +1421 -0
- data/doc/_index.html +199 -0
- data/doc/class_list.html +58 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.README.html +124 -0
- data/doc/file_list.html +60 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +124 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +181 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +315 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/references.rb +13 -0
- data/lib/references/book.rb +36 -0
- data/lib/references/ebook.rb +24 -0
- data/lib/references/list.rb +113 -0
- data/lib/references/magazine.rb +27 -0
- data/lib/references/name.rb +25 -0
- data/lib/references/reference.rb +143 -0
- data/lib/references/version.rb +3 -0
- data/references.gemspec +29 -0
- metadata +187 -0
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: References::Node
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!References/Node.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (N)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../References.html" title="References (module)">References</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Node</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: References::Node
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName">Struct</span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next">Struct</li>
|
|
82
|
+
|
|
83
|
+
<li class="next">References::Node</li>
|
|
84
|
+
|
|
85
|
+
</ul>
|
|
86
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
87
|
+
|
|
88
|
+
</dd>
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
<dt class="r2 last">Defined in:</dt>
|
|
99
|
+
<dd class="r2 last">lib/references/list.rb</dd>
|
|
100
|
+
|
|
101
|
+
</dl>
|
|
102
|
+
<div class="clear"></div>
|
|
103
|
+
|
|
104
|
+
<h2>Overview</h2><div class="docstring">
|
|
105
|
+
<div class="discussion">
|
|
106
|
+
|
|
107
|
+
<p>Struct of a list</p>
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="tags">
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
</div>
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
120
|
+
<ul class="summary">
|
|
121
|
+
|
|
122
|
+
<li class="public ">
|
|
123
|
+
<span class="summary_signature">
|
|
124
|
+
|
|
125
|
+
<a href="#back-instance_method" title="#back (instance method)">- (Object) <strong>back</strong> </a>
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
</span>
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
<span class="summary_desc"><div class='inline'>
|
|
143
|
+
<p>Returns the value of attribute back.</p>
|
|
144
|
+
</div></span>
|
|
145
|
+
|
|
146
|
+
</li>
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
<li class="public ">
|
|
150
|
+
<span class="summary_signature">
|
|
151
|
+
|
|
152
|
+
<a href="#next-instance_method" title="#next (instance method)">- (Object) <strong>next</strong> </a>
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
</span>
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
<span class="summary_desc"><div class='inline'>
|
|
170
|
+
<p>Returns the value of attribute next.</p>
|
|
171
|
+
</div></span>
|
|
172
|
+
|
|
173
|
+
</li>
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
<li class="public ">
|
|
177
|
+
<span class="summary_signature">
|
|
178
|
+
|
|
179
|
+
<a href="#value-instance_method" title="#value (instance method)">- (Object) <strong>value</strong> </a>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
</span>
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<span class="summary_desc"><div class='inline'>
|
|
197
|
+
<p>Returns the value of attribute value.</p>
|
|
198
|
+
</div></span>
|
|
199
|
+
|
|
200
|
+
</li>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
</ul>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
<div id="instance_attr_details" class="attr_details">
|
|
211
|
+
<h2>Instance Attribute Details</h2>
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
<span id="back=-instance_method"></span>
|
|
215
|
+
<div class="method_details first">
|
|
216
|
+
<h3 class="signature first" id="back-instance_method">
|
|
217
|
+
|
|
218
|
+
- (<tt>Object</tt>) <strong>back</strong>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
</h3><div class="docstring">
|
|
225
|
+
<div class="discussion">
|
|
226
|
+
|
|
227
|
+
<p>Returns the value of attribute back</p>
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
<div class="tags">
|
|
233
|
+
|
|
234
|
+
<p class="tag_title">Returns:</p>
|
|
235
|
+
<ul class="return">
|
|
236
|
+
|
|
237
|
+
<li>
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
—
|
|
245
|
+
<div class='inline'>
|
|
246
|
+
<p>the current value of back</p>
|
|
247
|
+
</div>
|
|
248
|
+
|
|
249
|
+
</li>
|
|
250
|
+
|
|
251
|
+
</ul>
|
|
252
|
+
|
|
253
|
+
</div><table class="source_code">
|
|
254
|
+
<tr>
|
|
255
|
+
<td>
|
|
256
|
+
<pre class="lines">
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
3
|
|
260
|
+
4
|
|
261
|
+
5</pre>
|
|
262
|
+
</td>
|
|
263
|
+
<td>
|
|
264
|
+
<pre class="code"><span class="info file"># File 'lib/references/list.rb', line 3</span>
|
|
265
|
+
|
|
266
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_back'>back</span>
|
|
267
|
+
<span class='ivar'>@back</span>
|
|
268
|
+
<span class='kw'>end</span></pre>
|
|
269
|
+
</td>
|
|
270
|
+
</tr>
|
|
271
|
+
</table>
|
|
272
|
+
</div>
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
<span id="next=-instance_method"></span>
|
|
276
|
+
<div class="method_details ">
|
|
277
|
+
<h3 class="signature " id="next-instance_method">
|
|
278
|
+
|
|
279
|
+
- (<tt>Object</tt>) <strong>next</strong>
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
</h3><div class="docstring">
|
|
286
|
+
<div class="discussion">
|
|
287
|
+
|
|
288
|
+
<p>Returns the value of attribute next</p>
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
</div>
|
|
292
|
+
</div>
|
|
293
|
+
<div class="tags">
|
|
294
|
+
|
|
295
|
+
<p class="tag_title">Returns:</p>
|
|
296
|
+
<ul class="return">
|
|
297
|
+
|
|
298
|
+
<li>
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
—
|
|
306
|
+
<div class='inline'>
|
|
307
|
+
<p>the current value of next</p>
|
|
308
|
+
</div>
|
|
309
|
+
|
|
310
|
+
</li>
|
|
311
|
+
|
|
312
|
+
</ul>
|
|
313
|
+
|
|
314
|
+
</div><table class="source_code">
|
|
315
|
+
<tr>
|
|
316
|
+
<td>
|
|
317
|
+
<pre class="lines">
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
3
|
|
321
|
+
4
|
|
322
|
+
5</pre>
|
|
323
|
+
</td>
|
|
324
|
+
<td>
|
|
325
|
+
<pre class="code"><span class="info file"># File 'lib/references/list.rb', line 3</span>
|
|
326
|
+
|
|
327
|
+
<span class='kw'>def</span> <span class='kw'>next</span>
|
|
328
|
+
<span class='ivar'>@next</span>
|
|
329
|
+
<span class='kw'>end</span></pre>
|
|
330
|
+
</td>
|
|
331
|
+
</tr>
|
|
332
|
+
</table>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
<span id="value=-instance_method"></span>
|
|
337
|
+
<div class="method_details ">
|
|
338
|
+
<h3 class="signature " id="value-instance_method">
|
|
339
|
+
|
|
340
|
+
- (<tt>Object</tt>) <strong>value</strong>
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
</h3><div class="docstring">
|
|
347
|
+
<div class="discussion">
|
|
348
|
+
|
|
349
|
+
<p>Returns the value of attribute value</p>
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
354
|
+
<div class="tags">
|
|
355
|
+
|
|
356
|
+
<p class="tag_title">Returns:</p>
|
|
357
|
+
<ul class="return">
|
|
358
|
+
|
|
359
|
+
<li>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<span class='type'>(<tt>Object</tt>)</span>
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
—
|
|
367
|
+
<div class='inline'>
|
|
368
|
+
<p>the current value of value</p>
|
|
369
|
+
</div>
|
|
370
|
+
|
|
371
|
+
</li>
|
|
372
|
+
|
|
373
|
+
</ul>
|
|
374
|
+
|
|
375
|
+
</div><table class="source_code">
|
|
376
|
+
<tr>
|
|
377
|
+
<td>
|
|
378
|
+
<pre class="lines">
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
3
|
|
382
|
+
4
|
|
383
|
+
5</pre>
|
|
384
|
+
</td>
|
|
385
|
+
<td>
|
|
386
|
+
<pre class="code"><span class="info file"># File 'lib/references/list.rb', line 3</span>
|
|
387
|
+
|
|
388
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_value'>value</span>
|
|
389
|
+
<span class='ivar'>@value</span>
|
|
390
|
+
<span class='kw'>end</span></pre>
|
|
391
|
+
</td>
|
|
392
|
+
</tr>
|
|
393
|
+
</table>
|
|
394
|
+
</div>
|
|
395
|
+
|
|
396
|
+
</div>
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
</div>
|
|
400
|
+
|
|
401
|
+
<div id="footer">
|
|
402
|
+
Generated on Tue Dec 15 21:21:43 2015 by
|
|
403
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
404
|
+
0.8.7.6 (ruby-2.2.3).
|
|
405
|
+
</div>
|
|
406
|
+
|
|
407
|
+
</body>
|
|
408
|
+
</html>
|
|
@@ -0,0 +1,1421 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
6
|
+
<title>
|
|
7
|
+
Class: References::Reference
|
|
8
|
+
|
|
9
|
+
— Documentation by YARD 0.8.7.6
|
|
10
|
+
|
|
11
|
+
</title>
|
|
12
|
+
|
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
|
14
|
+
|
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
|
16
|
+
|
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
|
19
|
+
relpath = '../';
|
|
20
|
+
framesUrl = "../frames.html#!References/Reference.html";
|
|
21
|
+
</script>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
|
25
|
+
|
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
</head>
|
|
30
|
+
<body>
|
|
31
|
+
<div id="header">
|
|
32
|
+
<div id="menu">
|
|
33
|
+
|
|
34
|
+
<a href="../_index.html">Index (R)</a> »
|
|
35
|
+
<span class='title'><span class='object_link'><a href="../References.html" title="References (module)">References</a></span></span>
|
|
36
|
+
»
|
|
37
|
+
<span class="title">Reference</span>
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<div id="search">
|
|
44
|
+
|
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
|
46
|
+
href="../class_list.html">
|
|
47
|
+
Class List
|
|
48
|
+
</a>
|
|
49
|
+
|
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
|
51
|
+
href="../method_list.html">
|
|
52
|
+
Method List
|
|
53
|
+
</a>
|
|
54
|
+
|
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
|
56
|
+
href="../file_list.html">
|
|
57
|
+
File List
|
|
58
|
+
</a>
|
|
59
|
+
|
|
60
|
+
</div>
|
|
61
|
+
<div class="clear"></div>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<iframe id="search_frame"></iframe>
|
|
65
|
+
|
|
66
|
+
<div id="content"><h1>Class: References::Reference
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</h1>
|
|
71
|
+
|
|
72
|
+
<dl class="box">
|
|
73
|
+
|
|
74
|
+
<dt class="r1">Inherits:</dt>
|
|
75
|
+
<dd class="r1">
|
|
76
|
+
<span class="inheritName">Object</span>
|
|
77
|
+
|
|
78
|
+
<ul class="fullTree">
|
|
79
|
+
<li>Object</li>
|
|
80
|
+
|
|
81
|
+
<li class="next">References::Reference</li>
|
|
82
|
+
|
|
83
|
+
</ul>
|
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
|
85
|
+
|
|
86
|
+
</dd>
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
<dt class="r2">Includes:</dt>
|
|
94
|
+
<dd class="r2">Comparable</dd>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
<dt class="r1 last">Defined in:</dt>
|
|
101
|
+
<dd class="r1 last">lib/references/reference.rb</dd>
|
|
102
|
+
|
|
103
|
+
</dl>
|
|
104
|
+
<div class="clear"></div>
|
|
105
|
+
|
|
106
|
+
<h2>Overview</h2><div class="docstring">
|
|
107
|
+
<div class="discussion">
|
|
108
|
+
|
|
109
|
+
<p>Represent references to resources in a document, it can be e-documents
|
|
110
|
+
papers, book and also magazines. To create a #Reference you need know the
|
|
111
|
+
DSL to make, is so simple: end</p>
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
</div>
|
|
115
|
+
</div>
|
|
116
|
+
<div class="tags">
|
|
117
|
+
|
|
118
|
+
<div class="examples">
|
|
119
|
+
<p class="tag_title">Examples:</p>
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
<pre class="example code"><code>@libro = References::Book.new do
|
|
123
|
+
author :surnames => "Thomas",
|
|
124
|
+
:names => "Dave"
|
|
125
|
+
author :surnames => "Hunt",
|
|
126
|
+
:names => "Andy"
|
|
127
|
+
author :surnames => "Chad",
|
|
128
|
+
:names => "Fowler"
|
|
129
|
+
|
|
130
|
+
title "Programming Ruby 1.9 & 2.0"
|
|
131
|
+
subtitle "The Pragmatic Programmers’ Guide"
|
|
132
|
+
editorial :serie => "The Facets of Ruby",
|
|
133
|
+
:edition => "Pragmatic Bookshelf",
|
|
134
|
+
:editionnumber => 4
|
|
135
|
+
|
|
136
|
+
date :year => 2013, :month => 7, :day => 7
|
|
137
|
+
|
|
138
|
+
isbn "ISBN-13: 978-1937785499"
|
|
139
|
+
isbn "ISBN-10: 1937785491"</code></pre>
|
|
140
|
+
|
|
141
|
+
</div>
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
</div><div id="subclasses">
|
|
145
|
+
<h2>Direct Known Subclasses</h2>
|
|
146
|
+
<p class="children"><span class='object_link'><a href="Book.html" title="References::Book (class)">Book</a></span>, <span class='object_link'><a href="Ebook.html" title="References::Ebook (class)">Ebook</a></span>, <span class='object_link'><a href="Magazine.html" title="References::Magazine (class)">Magazine</a></span></p>
|
|
147
|
+
</div>
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
|
153
|
+
<ul class="summary">
|
|
154
|
+
|
|
155
|
+
<li class="public ">
|
|
156
|
+
<span class="summary_signature">
|
|
157
|
+
|
|
158
|
+
<a href="#authors-instance_method" title="#authors (instance method)">- (Object) <strong>authors</strong> </a>
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</span>
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
<span class="summary_desc"><div class='inline'>
|
|
176
|
+
<p>Returns the value of attribute authors.</p>
|
|
177
|
+
</div></span>
|
|
178
|
+
|
|
179
|
+
</li>
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
<li class="public ">
|
|
183
|
+
<span class="summary_signature">
|
|
184
|
+
|
|
185
|
+
<a href="#datee-instance_method" title="#datee (instance method)">- (Object) <strong>datee</strong> </a>
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
</span>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
<span class="summary_desc"><div class='inline'>
|
|
203
|
+
<p>Returns the value of attribute datee.</p>
|
|
204
|
+
</div></span>
|
|
205
|
+
|
|
206
|
+
</li>
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
</ul>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
<h2>
|
|
216
|
+
Instance Method Summary
|
|
217
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
|
218
|
+
</h2>
|
|
219
|
+
|
|
220
|
+
<ul class="summary">
|
|
221
|
+
|
|
222
|
+
<li class="public ">
|
|
223
|
+
<span class="summary_signature">
|
|
224
|
+
|
|
225
|
+
<a href="#%3C%3D%3E-instance_method" title="#<=> (instance method)">- (Object) <strong><=></strong>(other) </a>
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
</span>
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
<span class="summary_desc"><div class='inline'>
|
|
240
|
+
<p>Define the method to compare several Reference objects.</p>
|
|
241
|
+
</div></span>
|
|
242
|
+
|
|
243
|
+
</li>
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
<li class="public ">
|
|
247
|
+
<span class="summary_signature">
|
|
248
|
+
|
|
249
|
+
<a href="#author-instance_method" title="#author (instance method)">- (Object) <strong>author</strong>(hash) </a>
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
</span>
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
<span class="summary_desc"><div class='inline'>
|
|
264
|
+
<p>Let, set a author/s in a Reference.</p>
|
|
265
|
+
</div></span>
|
|
266
|
+
|
|
267
|
+
</li>
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
<li class="public ">
|
|
271
|
+
<span class="summary_signature">
|
|
272
|
+
|
|
273
|
+
<a href="#cantidadAuthors-instance_method" title="#cantidadAuthors (instance method)">- (Object) <strong>cantidadAuthors</strong> </a>
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
</span>
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
<span class="summary_desc"><div class='inline'>
|
|
288
|
+
<p>Cuantity of authors set.</p>
|
|
289
|
+
</div></span>
|
|
290
|
+
|
|
291
|
+
</li>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
<li class="public ">
|
|
295
|
+
<span class="summary_signature">
|
|
296
|
+
|
|
297
|
+
<a href="#cantidadIsbn-instance_method" title="#cantidadIsbn (instance method)">- (Object) <strong>cantidadIsbn</strong> </a>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
</span>
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
312
|
+
|
|
313
|
+
</li>
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
<li class="public ">
|
|
317
|
+
<span class="summary_signature">
|
|
318
|
+
|
|
319
|
+
<a href="#cantidadSeries-instance_method" title="#cantidadSeries (instance method)">- (Object) <strong>cantidadSeries</strong> </a>
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
</span>
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
334
|
+
|
|
335
|
+
</li>
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
<li class="public ">
|
|
339
|
+
<span class="summary_signature">
|
|
340
|
+
|
|
341
|
+
<a href="#date-instance_method" title="#date (instance method)">- (Object) <strong>date</strong>(date) </a>
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
</span>
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
<span class="summary_desc"><div class='inline'>
|
|
356
|
+
<p>A Reference only can have a date.</p>
|
|
357
|
+
</div></span>
|
|
358
|
+
|
|
359
|
+
</li>
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
<li class="public ">
|
|
363
|
+
<span class="summary_signature">
|
|
364
|
+
|
|
365
|
+
<a href="#editorial-instance_method" title="#editorial (instance method)">- (Object) <strong>editorial</strong>(editorial) </a>
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
|
|
369
|
+
</span>
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
<span class="summary_desc"><div class='inline'>
|
|
380
|
+
<p>A Reference only can have a editorial.</p>
|
|
381
|
+
</div></span>
|
|
382
|
+
|
|
383
|
+
</li>
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<li class="public ">
|
|
387
|
+
<span class="summary_signature">
|
|
388
|
+
|
|
389
|
+
<a href="#formatAPA-instance_method" title="#formatAPA (instance method)">- (Object) <strong>formatAPA</strong> </a>
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
</span>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
<span class="summary_desc"><div class='inline'>
|
|
404
|
+
<p>Not specification in the Reference abstract class.</p>
|
|
405
|
+
</div></span>
|
|
406
|
+
|
|
407
|
+
</li>
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
<li class="public ">
|
|
411
|
+
<span class="summary_signature">
|
|
412
|
+
|
|
413
|
+
<a href="#hasDate-instance_method" title="#hasDate (instance method)">- (Object) <strong>hasDate</strong> </a>
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
</span>
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
|
|
427
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
428
|
+
|
|
429
|
+
</li>
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
<li class="public ">
|
|
433
|
+
<span class="summary_signature">
|
|
434
|
+
|
|
435
|
+
<a href="#hasEdition-instance_method" title="#hasEdition (instance method)">- (Object) <strong>hasEdition</strong> </a>
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
</span>
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
450
|
+
|
|
451
|
+
</li>
|
|
452
|
+
|
|
453
|
+
|
|
454
|
+
<li class="public ">
|
|
455
|
+
<span class="summary_signature">
|
|
456
|
+
|
|
457
|
+
<a href="#hasEditionnumber-instance_method" title="#hasEditionnumber (instance method)">- (Object) <strong>hasEditionnumber</strong> </a>
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
|
461
|
+
</span>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
|
472
|
+
|
|
473
|
+
</li>
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
<li class="public ">
|
|
477
|
+
<span class="summary_signature">
|
|
478
|
+
|
|
479
|
+
<a href="#hasTitle-instance_method" title="#hasTitle (instance method)">- (Object) <strong>hasTitle</strong> </a>
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
</span>
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
<span class="summary_desc"><div class='inline'>
|
|
494
|
+
<p>Is have set a title?.</p>
|
|
495
|
+
</div></span>
|
|
496
|
+
|
|
497
|
+
</li>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
<li class="public ">
|
|
501
|
+
<span class="summary_signature">
|
|
502
|
+
|
|
503
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Reference) <strong>initialize</strong>(&block) </a>
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
</span>
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
<span class="note title constructor">constructor</span>
|
|
511
|
+
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
<span class="summary_desc"><div class='inline'>
|
|
520
|
+
<p>Take a block.</p>
|
|
521
|
+
</div></span>
|
|
522
|
+
|
|
523
|
+
</li>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
<li class="public ">
|
|
527
|
+
<span class="summary_signature">
|
|
528
|
+
|
|
529
|
+
<a href="#prettyOutput-instance_method" title="#prettyOutput (instance method)">- (Object) <strong>prettyOutput</strong>(array) </a>
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
</span>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
|
543
|
+
<span class="summary_desc"><div class='inline'>
|
|
544
|
+
<p>This function let format a array to prettitied its output adding a
|
|
545
|
+
'&' before to last element.</p>
|
|
546
|
+
</div></span>
|
|
547
|
+
|
|
548
|
+
</li>
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
<li class="public ">
|
|
552
|
+
<span class="summary_signature">
|
|
553
|
+
|
|
554
|
+
<a href="#title-instance_method" title="#title (instance method)">- (Object) <strong>title</strong>(title) </a>
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
</span>
|
|
559
|
+
|
|
560
|
+
|
|
561
|
+
|
|
562
|
+
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
<span class="summary_desc"><div class='inline'>
|
|
569
|
+
<p>A Reference only can have a title.</p>
|
|
570
|
+
</div></span>
|
|
571
|
+
|
|
572
|
+
</li>
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
</ul>
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
|
|
579
|
+
<div id="constructor_details" class="method_details_list">
|
|
580
|
+
<h2>Constructor Details</h2>
|
|
581
|
+
|
|
582
|
+
<div class="method_details first">
|
|
583
|
+
<h3 class="signature first" id="initialize-instance_method">
|
|
584
|
+
|
|
585
|
+
- (<tt><span class='object_link'><a href="" title="References::Reference (class)">Reference</a></span></tt>) <strong>initialize</strong>(&block)
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
</h3><div class="docstring">
|
|
592
|
+
<div class="discussion">
|
|
593
|
+
|
|
594
|
+
<p>Take a block</p>
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
</div>
|
|
598
|
+
</div>
|
|
599
|
+
<div class="tags">
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
</div><table class="source_code">
|
|
603
|
+
<tr>
|
|
604
|
+
<td>
|
|
605
|
+
<pre class="lines">
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
30
|
|
609
|
+
31
|
|
610
|
+
32</pre>
|
|
611
|
+
</td>
|
|
612
|
+
<td>
|
|
613
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 30</span>
|
|
614
|
+
|
|
615
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='op'>&</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
|
|
616
|
+
<span class='id identifier rubyid_instance_eval'>instance_eval</span> <span class='op'>&</span><span class='id identifier rubyid_block'>block</span>
|
|
617
|
+
<span class='kw'>end</span></pre>
|
|
618
|
+
</td>
|
|
619
|
+
</tr>
|
|
620
|
+
</table>
|
|
621
|
+
</div>
|
|
622
|
+
|
|
623
|
+
</div>
|
|
624
|
+
|
|
625
|
+
<div id="instance_attr_details" class="attr_details">
|
|
626
|
+
<h2>Instance Attribute Details</h2>
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
<span id="authors=-instance_method"></span>
|
|
630
|
+
<div class="method_details first">
|
|
631
|
+
<h3 class="signature first" id="authors-instance_method">
|
|
632
|
+
|
|
633
|
+
- (<tt>Object</tt>) <strong>authors</strong>
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
</h3><div class="docstring">
|
|
640
|
+
<div class="discussion">
|
|
641
|
+
|
|
642
|
+
<p>Returns the value of attribute authors</p>
|
|
643
|
+
|
|
644
|
+
|
|
645
|
+
</div>
|
|
646
|
+
</div>
|
|
647
|
+
<div class="tags">
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
</div><table class="source_code">
|
|
651
|
+
<tr>
|
|
652
|
+
<td>
|
|
653
|
+
<pre class="lines">
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
28
|
|
657
|
+
29
|
|
658
|
+
30</pre>
|
|
659
|
+
</td>
|
|
660
|
+
<td>
|
|
661
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 28</span>
|
|
662
|
+
|
|
663
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_authors'>authors</span>
|
|
664
|
+
<span class='ivar'>@authors</span>
|
|
665
|
+
<span class='kw'>end</span></pre>
|
|
666
|
+
</td>
|
|
667
|
+
</tr>
|
|
668
|
+
</table>
|
|
669
|
+
</div>
|
|
670
|
+
|
|
671
|
+
|
|
672
|
+
<span id="datee=-instance_method"></span>
|
|
673
|
+
<div class="method_details ">
|
|
674
|
+
<h3 class="signature " id="datee-instance_method">
|
|
675
|
+
|
|
676
|
+
- (<tt>Object</tt>) <strong>datee</strong>
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
</h3><div class="docstring">
|
|
683
|
+
<div class="discussion">
|
|
684
|
+
|
|
685
|
+
<p>Returns the value of attribute datee</p>
|
|
686
|
+
|
|
687
|
+
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
<div class="tags">
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
</div><table class="source_code">
|
|
694
|
+
<tr>
|
|
695
|
+
<td>
|
|
696
|
+
<pre class="lines">
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
28
|
|
700
|
+
29
|
|
701
|
+
30</pre>
|
|
702
|
+
</td>
|
|
703
|
+
<td>
|
|
704
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 28</span>
|
|
705
|
+
|
|
706
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_datee'>datee</span>
|
|
707
|
+
<span class='ivar'>@datee</span>
|
|
708
|
+
<span class='kw'>end</span></pre>
|
|
709
|
+
</td>
|
|
710
|
+
</tr>
|
|
711
|
+
</table>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
</div>
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
<div id="instance_method_details" class="method_details_list">
|
|
718
|
+
<h2>Instance Method Details</h2>
|
|
719
|
+
|
|
720
|
+
|
|
721
|
+
<div class="method_details first">
|
|
722
|
+
<h3 class="signature first" id="<=>-instance_method">
|
|
723
|
+
|
|
724
|
+
- (<tt>Object</tt>) <strong><=></strong>(other)
|
|
725
|
+
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
|
|
729
|
+
|
|
730
|
+
</h3><div class="docstring">
|
|
731
|
+
<div class="discussion">
|
|
732
|
+
|
|
733
|
+
<p>Define the method to compare several Reference objects</p>
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
</div>
|
|
737
|
+
</div>
|
|
738
|
+
<div class="tags">
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
</div><table class="source_code">
|
|
742
|
+
<tr>
|
|
743
|
+
<td>
|
|
744
|
+
<pre class="lines">
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
79
|
|
748
|
+
80
|
|
749
|
+
81
|
|
750
|
+
82
|
|
751
|
+
83
|
|
752
|
+
84
|
|
753
|
+
85</pre>
|
|
754
|
+
</td>
|
|
755
|
+
<td>
|
|
756
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 79</span>
|
|
757
|
+
|
|
758
|
+
<span class='kw'>def</span> <span class='op'><=></span><span class='lparen'>(</span><span class='id identifier rubyid_other'>other</span><span class='rparen'>)</span>
|
|
759
|
+
<span class='id identifier rubyid_int'>int</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_authors'>authors</span> <span class='op'><=></span> <span class='ivar'>@authors</span>
|
|
760
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_int'>int</span> <span class='op'>=</span> <span class='int'>0</span>
|
|
761
|
+
<span class='id identifier rubyid_int'>int</span> <span class='op'>=</span> <span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_datee'>datee</span> <span class='op'><=></span> <span class='ivar'>@datee</span>
|
|
762
|
+
<span class='kw'>end</span>
|
|
763
|
+
<span class='id identifier rubyid_int'>int</span>
|
|
764
|
+
<span class='kw'>end</span></pre>
|
|
765
|
+
</td>
|
|
766
|
+
</tr>
|
|
767
|
+
</table>
|
|
768
|
+
</div>
|
|
769
|
+
|
|
770
|
+
<div class="method_details ">
|
|
771
|
+
<h3 class="signature " id="author-instance_method">
|
|
772
|
+
|
|
773
|
+
- (<tt>Object</tt>) <strong>author</strong>(hash)
|
|
774
|
+
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
|
|
779
|
+
</h3><div class="docstring">
|
|
780
|
+
<div class="discussion">
|
|
781
|
+
|
|
782
|
+
<p>Let, set a author/s in a Reference. You can define some authors, only
|
|
783
|
+
calling this n-repeated times</p>
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
</div>
|
|
787
|
+
</div>
|
|
788
|
+
<div class="tags">
|
|
789
|
+
<p class="tag_title">Parameters:</p>
|
|
790
|
+
<ul class="param">
|
|
791
|
+
|
|
792
|
+
<li>
|
|
793
|
+
|
|
794
|
+
<span class='name'>hash</span>
|
|
795
|
+
|
|
796
|
+
|
|
797
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
|
|
801
|
+
</li>
|
|
802
|
+
|
|
803
|
+
</ul>
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
</div><table class="source_code">
|
|
807
|
+
<tr>
|
|
808
|
+
<td>
|
|
809
|
+
<pre class="lines">
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
36
|
|
813
|
+
37
|
|
814
|
+
38
|
|
815
|
+
39
|
|
816
|
+
40
|
|
817
|
+
41</pre>
|
|
818
|
+
</td>
|
|
819
|
+
<td>
|
|
820
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 36</span>
|
|
821
|
+
|
|
822
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_author'>author</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='rparen'>)</span>
|
|
823
|
+
<span class='kw'>if</span> <span class='ivar'>@authors</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span>
|
|
824
|
+
<span class='ivar'>@authors</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
|
825
|
+
<span class='kw'>end</span>
|
|
826
|
+
<span class='ivar'>@authors</span> <span class='op'><<</span> <span class='const'>References</span><span class='op'>::</span><span class='const'>Name</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:surnames</span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_hash'>hash</span><span class='lbracket'>[</span><span class='symbol'>:names</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
827
|
+
<span class='kw'>end</span></pre>
|
|
828
|
+
</td>
|
|
829
|
+
</tr>
|
|
830
|
+
</table>
|
|
831
|
+
</div>
|
|
832
|
+
|
|
833
|
+
<div class="method_details ">
|
|
834
|
+
<h3 class="signature " id="cantidadAuthors-instance_method">
|
|
835
|
+
|
|
836
|
+
- (<tt>Object</tt>) <strong>cantidadAuthors</strong>
|
|
837
|
+
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
</h3><div class="docstring">
|
|
843
|
+
<div class="discussion">
|
|
844
|
+
|
|
845
|
+
<p>Cuantity of authors set</p>
|
|
846
|
+
|
|
847
|
+
|
|
848
|
+
</div>
|
|
849
|
+
</div>
|
|
850
|
+
<div class="tags">
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
</div><table class="source_code">
|
|
854
|
+
<tr>
|
|
855
|
+
<td>
|
|
856
|
+
<pre class="lines">
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
88
|
|
860
|
+
89
|
|
861
|
+
90</pre>
|
|
862
|
+
</td>
|
|
863
|
+
<td>
|
|
864
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 88</span>
|
|
865
|
+
|
|
866
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cantidadAuthors'>cantidadAuthors</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
867
|
+
<span class='ivar'>@authors</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span><span class='lparen'>(</span><span class='rparen'>)</span>
|
|
868
|
+
<span class='kw'>end</span></pre>
|
|
869
|
+
</td>
|
|
870
|
+
</tr>
|
|
871
|
+
</table>
|
|
872
|
+
</div>
|
|
873
|
+
|
|
874
|
+
<div class="method_details ">
|
|
875
|
+
<h3 class="signature " id="cantidadIsbn-instance_method">
|
|
876
|
+
|
|
877
|
+
- (<tt>Object</tt>) <strong>cantidadIsbn</strong>
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
883
|
+
</h3><table class="source_code">
|
|
884
|
+
<tr>
|
|
885
|
+
<td>
|
|
886
|
+
<pre class="lines">
|
|
887
|
+
|
|
888
|
+
|
|
889
|
+
133
|
|
890
|
+
134
|
|
891
|
+
135</pre>
|
|
892
|
+
</td>
|
|
893
|
+
<td>
|
|
894
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 133</span>
|
|
895
|
+
|
|
896
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cantidadIsbn'>cantidadIsbn</span>
|
|
897
|
+
<span class='ivar'>@isbn</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span>
|
|
898
|
+
<span class='kw'>end</span></pre>
|
|
899
|
+
</td>
|
|
900
|
+
</tr>
|
|
901
|
+
</table>
|
|
902
|
+
</div>
|
|
903
|
+
|
|
904
|
+
<div class="method_details ">
|
|
905
|
+
<h3 class="signature " id="cantidadSeries-instance_method">
|
|
906
|
+
|
|
907
|
+
- (<tt>Object</tt>) <strong>cantidadSeries</strong>
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
</h3><table class="source_code">
|
|
914
|
+
<tr>
|
|
915
|
+
<td>
|
|
916
|
+
<pre class="lines">
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
101
|
|
920
|
+
102
|
|
921
|
+
103
|
|
922
|
+
104
|
|
923
|
+
105
|
|
924
|
+
106
|
|
925
|
+
107</pre>
|
|
926
|
+
</td>
|
|
927
|
+
<td>
|
|
928
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 101</span>
|
|
929
|
+
|
|
930
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_cantidadSeries'>cantidadSeries</span>
|
|
931
|
+
<span class='kw'>if</span> <span class='ivar'>@serie</span><span class='op'>!=</span> <span class='kw'>nil</span> <span class='kw'>then</span>
|
|
932
|
+
<span class='int'>1</span>
|
|
933
|
+
<span class='kw'>else</span>
|
|
934
|
+
<span class='int'>0</span>
|
|
935
|
+
<span class='kw'>end</span>
|
|
936
|
+
<span class='kw'>end</span></pre>
|
|
937
|
+
</td>
|
|
938
|
+
</tr>
|
|
939
|
+
</table>
|
|
940
|
+
</div>
|
|
941
|
+
|
|
942
|
+
<div class="method_details ">
|
|
943
|
+
<h3 class="signature " id="date-instance_method">
|
|
944
|
+
|
|
945
|
+
- (<tt>Object</tt>) <strong>date</strong>(date)
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
|
|
951
|
+
</h3><div class="docstring">
|
|
952
|
+
<div class="discussion">
|
|
953
|
+
|
|
954
|
+
<p>A Reference only can have a date. If you call this function twice times,
|
|
955
|
+
this overwrite the las value The hash must have a :year => Number,
|
|
956
|
+
:month => Number, :day => Number</p>
|
|
957
|
+
|
|
958
|
+
|
|
959
|
+
</div>
|
|
960
|
+
</div>
|
|
961
|
+
<div class="tags">
|
|
962
|
+
<p class="tag_title">Parameters:</p>
|
|
963
|
+
<ul class="param">
|
|
964
|
+
|
|
965
|
+
<li>
|
|
966
|
+
|
|
967
|
+
<span class='name'>date</span>
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
971
|
+
|
|
972
|
+
|
|
973
|
+
|
|
974
|
+
</li>
|
|
975
|
+
|
|
976
|
+
</ul>
|
|
977
|
+
|
|
978
|
+
|
|
979
|
+
</div><table class="source_code">
|
|
980
|
+
<tr>
|
|
981
|
+
<td>
|
|
982
|
+
<pre class="lines">
|
|
983
|
+
|
|
984
|
+
|
|
985
|
+
61
|
|
986
|
+
62
|
|
987
|
+
63</pre>
|
|
988
|
+
</td>
|
|
989
|
+
<td>
|
|
990
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 61</span>
|
|
991
|
+
|
|
992
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_date'>date</span><span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span><span class='rparen'>)</span>
|
|
993
|
+
<span class='ivar'>@datee</span> <span class='op'>=</span> <span class='const'>Date</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_date'>date</span><span class='lbracket'>[</span><span class='symbol'>:year</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_date'>date</span><span class='lbracket'>[</span><span class='symbol'>:month</span><span class='rbracket'>]</span><span class='comma'>,</span><span class='id identifier rubyid_date'>date</span><span class='lbracket'>[</span><span class='symbol'>:day</span><span class='rbracket'>]</span><span class='rparen'>)</span>
|
|
994
|
+
<span class='kw'>end</span></pre>
|
|
995
|
+
</td>
|
|
996
|
+
</tr>
|
|
997
|
+
</table>
|
|
998
|
+
</div>
|
|
999
|
+
|
|
1000
|
+
<div class="method_details ">
|
|
1001
|
+
<h3 class="signature " id="editorial-instance_method">
|
|
1002
|
+
|
|
1003
|
+
- (<tt>Object</tt>) <strong>editorial</strong>(editorial)
|
|
1004
|
+
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
|
|
1009
|
+
</h3><div class="docstring">
|
|
1010
|
+
<div class="discussion">
|
|
1011
|
+
|
|
1012
|
+
<p>A Reference only can have a editorial. If you call this function twice
|
|
1013
|
+
times, this overwrite the las value The hash must have a :serie =>
|
|
1014
|
+
String, :edition => String, :editionnumber => Number</p>
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
</div>
|
|
1018
|
+
</div>
|
|
1019
|
+
<div class="tags">
|
|
1020
|
+
<p class="tag_title">Parameters:</p>
|
|
1021
|
+
<ul class="param">
|
|
1022
|
+
|
|
1023
|
+
<li>
|
|
1024
|
+
|
|
1025
|
+
<span class='name'>editorial</span>
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
|
1029
|
+
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
</li>
|
|
1033
|
+
|
|
1034
|
+
</ul>
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
</div><table class="source_code">
|
|
1038
|
+
<tr>
|
|
1039
|
+
<td>
|
|
1040
|
+
<pre class="lines">
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
52
|
|
1044
|
+
53
|
|
1045
|
+
54
|
|
1046
|
+
55
|
|
1047
|
+
56</pre>
|
|
1048
|
+
</td>
|
|
1049
|
+
<td>
|
|
1050
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 52</span>
|
|
1051
|
+
|
|
1052
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_editorial'>editorial</span><span class='lparen'>(</span><span class='id identifier rubyid_editorial'>editorial</span><span class='rparen'>)</span>
|
|
1053
|
+
<span class='ivar'>@serie</span> <span class='op'>=</span> <span class='id identifier rubyid_editorial'>editorial</span><span class='lbracket'>[</span><span class='symbol'>:serie</span><span class='rbracket'>]</span>
|
|
1054
|
+
<span class='ivar'>@edition</span> <span class='op'>=</span> <span class='id identifier rubyid_editorial'>editorial</span><span class='lbracket'>[</span><span class='symbol'>:edition</span><span class='rbracket'>]</span>
|
|
1055
|
+
<span class='ivar'>@editionnumber</span> <span class='op'>=</span> <span class='id identifier rubyid_editorial'>editorial</span><span class='lbracket'>[</span><span class='symbol'>:editionnumber</span><span class='rbracket'>]</span>
|
|
1056
|
+
<span class='kw'>end</span></pre>
|
|
1057
|
+
</td>
|
|
1058
|
+
</tr>
|
|
1059
|
+
</table>
|
|
1060
|
+
</div>
|
|
1061
|
+
|
|
1062
|
+
<div class="method_details ">
|
|
1063
|
+
<h3 class="signature " id="formatAPA-instance_method">
|
|
1064
|
+
|
|
1065
|
+
- (<tt>Object</tt>) <strong>formatAPA</strong>
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
</h3><div class="docstring">
|
|
1072
|
+
<div class="discussion">
|
|
1073
|
+
|
|
1074
|
+
<p>Not specification in the Reference abstract class</p>
|
|
1075
|
+
|
|
1076
|
+
|
|
1077
|
+
</div>
|
|
1078
|
+
</div>
|
|
1079
|
+
<div class="tags">
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
</div><table class="source_code">
|
|
1083
|
+
<tr>
|
|
1084
|
+
<td>
|
|
1085
|
+
<pre class="lines">
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
138
|
|
1089
|
+
139
|
|
1090
|
+
140</pre>
|
|
1091
|
+
</td>
|
|
1092
|
+
<td>
|
|
1093
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 138</span>
|
|
1094
|
+
|
|
1095
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_formatAPA'>formatAPA</span>
|
|
1096
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Not format abstract class</span><span class='tstring_end'>"</span></span>
|
|
1097
|
+
<span class='kw'>end</span></pre>
|
|
1098
|
+
</td>
|
|
1099
|
+
</tr>
|
|
1100
|
+
</table>
|
|
1101
|
+
</div>
|
|
1102
|
+
|
|
1103
|
+
<div class="method_details ">
|
|
1104
|
+
<h3 class="signature " id="hasDate-instance_method">
|
|
1105
|
+
|
|
1106
|
+
- (<tt>Object</tt>) <strong>hasDate</strong>
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
</h3><table class="source_code">
|
|
1113
|
+
<tr>
|
|
1114
|
+
<td>
|
|
1115
|
+
<pre class="lines">
|
|
1116
|
+
|
|
1117
|
+
|
|
1118
|
+
125
|
|
1119
|
+
126
|
|
1120
|
+
127
|
|
1121
|
+
128
|
|
1122
|
+
129
|
|
1123
|
+
130
|
|
1124
|
+
131</pre>
|
|
1125
|
+
</td>
|
|
1126
|
+
<td>
|
|
1127
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 125</span>
|
|
1128
|
+
|
|
1129
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hasDate'>hasDate</span>
|
|
1130
|
+
<span class='kw'>if</span> <span class='ivar'>@datee</span> <span class='kw'>then</span>
|
|
1131
|
+
<span class='kw'>true</span>
|
|
1132
|
+
<span class='kw'>else</span>
|
|
1133
|
+
<span class='kw'>false</span>
|
|
1134
|
+
<span class='kw'>end</span>
|
|
1135
|
+
<span class='kw'>end</span></pre>
|
|
1136
|
+
</td>
|
|
1137
|
+
</tr>
|
|
1138
|
+
</table>
|
|
1139
|
+
</div>
|
|
1140
|
+
|
|
1141
|
+
<div class="method_details ">
|
|
1142
|
+
<h3 class="signature " id="hasEdition-instance_method">
|
|
1143
|
+
|
|
1144
|
+
- (<tt>Object</tt>) <strong>hasEdition</strong>
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
|
|
1149
|
+
|
|
1150
|
+
</h3><table class="source_code">
|
|
1151
|
+
<tr>
|
|
1152
|
+
<td>
|
|
1153
|
+
<pre class="lines">
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
109
|
|
1157
|
+
110
|
|
1158
|
+
111
|
|
1159
|
+
112
|
|
1160
|
+
113
|
|
1161
|
+
114
|
|
1162
|
+
115</pre>
|
|
1163
|
+
</td>
|
|
1164
|
+
<td>
|
|
1165
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 109</span>
|
|
1166
|
+
|
|
1167
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hasEdition'>hasEdition</span>
|
|
1168
|
+
<span class='kw'>if</span> <span class='ivar'>@edition</span> <span class='kw'>then</span>
|
|
1169
|
+
<span class='kw'>true</span>
|
|
1170
|
+
<span class='kw'>else</span>
|
|
1171
|
+
<span class='kw'>false</span>
|
|
1172
|
+
<span class='kw'>end</span>
|
|
1173
|
+
<span class='kw'>end</span></pre>
|
|
1174
|
+
</td>
|
|
1175
|
+
</tr>
|
|
1176
|
+
</table>
|
|
1177
|
+
</div>
|
|
1178
|
+
|
|
1179
|
+
<div class="method_details ">
|
|
1180
|
+
<h3 class="signature " id="hasEditionnumber-instance_method">
|
|
1181
|
+
|
|
1182
|
+
- (<tt>Object</tt>) <strong>hasEditionnumber</strong>
|
|
1183
|
+
|
|
1184
|
+
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
</h3><table class="source_code">
|
|
1189
|
+
<tr>
|
|
1190
|
+
<td>
|
|
1191
|
+
<pre class="lines">
|
|
1192
|
+
|
|
1193
|
+
|
|
1194
|
+
117
|
|
1195
|
+
118
|
|
1196
|
+
119
|
|
1197
|
+
120
|
|
1198
|
+
121
|
|
1199
|
+
122
|
|
1200
|
+
123</pre>
|
|
1201
|
+
</td>
|
|
1202
|
+
<td>
|
|
1203
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 117</span>
|
|
1204
|
+
|
|
1205
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hasEditionnumber'>hasEditionnumber</span>
|
|
1206
|
+
<span class='kw'>if</span> <span class='ivar'>@editionnumber</span> <span class='kw'>then</span>
|
|
1207
|
+
<span class='kw'>true</span>
|
|
1208
|
+
<span class='kw'>else</span>
|
|
1209
|
+
<span class='kw'>false</span>
|
|
1210
|
+
<span class='kw'>end</span>
|
|
1211
|
+
<span class='kw'>end</span></pre>
|
|
1212
|
+
</td>
|
|
1213
|
+
</tr>
|
|
1214
|
+
</table>
|
|
1215
|
+
</div>
|
|
1216
|
+
|
|
1217
|
+
<div class="method_details ">
|
|
1218
|
+
<h3 class="signature " id="hasTitle-instance_method">
|
|
1219
|
+
|
|
1220
|
+
- (<tt>Object</tt>) <strong>hasTitle</strong>
|
|
1221
|
+
|
|
1222
|
+
|
|
1223
|
+
|
|
1224
|
+
|
|
1225
|
+
|
|
1226
|
+
</h3><div class="docstring">
|
|
1227
|
+
<div class="discussion">
|
|
1228
|
+
|
|
1229
|
+
<p>Is have set a title?</p>
|
|
1230
|
+
|
|
1231
|
+
|
|
1232
|
+
</div>
|
|
1233
|
+
</div>
|
|
1234
|
+
<div class="tags">
|
|
1235
|
+
|
|
1236
|
+
|
|
1237
|
+
</div><table class="source_code">
|
|
1238
|
+
<tr>
|
|
1239
|
+
<td>
|
|
1240
|
+
<pre class="lines">
|
|
1241
|
+
|
|
1242
|
+
|
|
1243
|
+
93
|
|
1244
|
+
94
|
|
1245
|
+
95
|
|
1246
|
+
96
|
|
1247
|
+
97
|
|
1248
|
+
98
|
|
1249
|
+
99</pre>
|
|
1250
|
+
</td>
|
|
1251
|
+
<td>
|
|
1252
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 93</span>
|
|
1253
|
+
|
|
1254
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_hasTitle'>hasTitle</span>
|
|
1255
|
+
<span class='kw'>if</span> <span class='ivar'>@title</span> <span class='kw'>then</span>
|
|
1256
|
+
<span class='kw'>true</span>
|
|
1257
|
+
<span class='kw'>else</span>
|
|
1258
|
+
<span class='kw'>false</span>
|
|
1259
|
+
<span class='kw'>end</span>
|
|
1260
|
+
<span class='kw'>end</span></pre>
|
|
1261
|
+
</td>
|
|
1262
|
+
</tr>
|
|
1263
|
+
</table>
|
|
1264
|
+
</div>
|
|
1265
|
+
|
|
1266
|
+
<div class="method_details ">
|
|
1267
|
+
<h3 class="signature " id="prettyOutput-instance_method">
|
|
1268
|
+
|
|
1269
|
+
- (<tt>Object</tt>) <strong>prettyOutput</strong>(array)
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
|
|
1274
|
+
|
|
1275
|
+
</h3><div class="docstring">
|
|
1276
|
+
<div class="discussion">
|
|
1277
|
+
|
|
1278
|
+
<p>This function let format a array to prettitied its output adding a
|
|
1279
|
+
'&' before to last element.</p>
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
</div>
|
|
1283
|
+
</div>
|
|
1284
|
+
<div class="tags">
|
|
1285
|
+
<p class="tag_title">Parameters:</p>
|
|
1286
|
+
<ul class="param">
|
|
1287
|
+
|
|
1288
|
+
<li>
|
|
1289
|
+
|
|
1290
|
+
<span class='name'>array</span>
|
|
1291
|
+
|
|
1292
|
+
|
|
1293
|
+
<span class='type'>(<tt><span class='object_link'><a href="List.html" title="References::List (class)">List</a></span></tt>)</span>
|
|
1294
|
+
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
</li>
|
|
1298
|
+
|
|
1299
|
+
</ul>
|
|
1300
|
+
|
|
1301
|
+
<p class="tag_title">Returns:</p>
|
|
1302
|
+
<ul class="return">
|
|
1303
|
+
|
|
1304
|
+
<li>
|
|
1305
|
+
|
|
1306
|
+
|
|
1307
|
+
<span class='type'></span>
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
|
|
1311
|
+
|
|
1312
|
+
<div class='inline'>
|
|
1313
|
+
<p>String</p>
|
|
1314
|
+
</div>
|
|
1315
|
+
|
|
1316
|
+
</li>
|
|
1317
|
+
|
|
1318
|
+
</ul>
|
|
1319
|
+
|
|
1320
|
+
</div><table class="source_code">
|
|
1321
|
+
<tr>
|
|
1322
|
+
<td>
|
|
1323
|
+
<pre class="lines">
|
|
1324
|
+
|
|
1325
|
+
|
|
1326
|
+
68
|
|
1327
|
+
69
|
|
1328
|
+
70
|
|
1329
|
+
71
|
|
1330
|
+
72
|
|
1331
|
+
73
|
|
1332
|
+
74
|
|
1333
|
+
75
|
|
1334
|
+
76</pre>
|
|
1335
|
+
</td>
|
|
1336
|
+
<td>
|
|
1337
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 68</span>
|
|
1338
|
+
|
|
1339
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_prettyOutput'>prettyOutput</span><span class='lparen'>(</span><span class='id identifier rubyid_array'>array</span><span class='rparen'>)</span>
|
|
1340
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>></span> <span class='int'>1</span>
|
|
1341
|
+
<span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>0</span><span class='op'>..</span><span class='op'>-</span><span class='int'>2</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> & </span><span class='tstring_end'>"</span></span> <span class='op'>+</span> <span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='op'>-</span><span class='int'>1</span><span class='rbracket'>]</span>
|
|
1342
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_array'>array</span><span class='period'>.</span><span class='id identifier rubyid_length'>length</span> <span class='op'>==</span> <span class='int'>1</span>
|
|
1343
|
+
<span class='id identifier rubyid_array'>array</span><span class='lbracket'>[</span><span class='int'>0</span><span class='rbracket'>]</span>
|
|
1344
|
+
<span class='kw'>else</span>
|
|
1345
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_end'>"</span></span>
|
|
1346
|
+
<span class='kw'>end</span>
|
|
1347
|
+
<span class='kw'>end</span></pre>
|
|
1348
|
+
</td>
|
|
1349
|
+
</tr>
|
|
1350
|
+
</table>
|
|
1351
|
+
</div>
|
|
1352
|
+
|
|
1353
|
+
<div class="method_details ">
|
|
1354
|
+
<h3 class="signature " id="title-instance_method">
|
|
1355
|
+
|
|
1356
|
+
- (<tt>Object</tt>) <strong>title</strong>(title)
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
</h3><div class="docstring">
|
|
1363
|
+
<div class="discussion">
|
|
1364
|
+
|
|
1365
|
+
<p>A Reference only can have a title. If you call this function twice times
|
|
1366
|
+
this, overwrite the las value</p>
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
</div>
|
|
1370
|
+
</div>
|
|
1371
|
+
<div class="tags">
|
|
1372
|
+
<p class="tag_title">Parameters:</p>
|
|
1373
|
+
<ul class="param">
|
|
1374
|
+
|
|
1375
|
+
<li>
|
|
1376
|
+
|
|
1377
|
+
<span class='name'>title</span>
|
|
1378
|
+
|
|
1379
|
+
|
|
1380
|
+
<span class='type'>(<tt>String</tt>)</span>
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
</li>
|
|
1385
|
+
|
|
1386
|
+
</ul>
|
|
1387
|
+
|
|
1388
|
+
|
|
1389
|
+
</div><table class="source_code">
|
|
1390
|
+
<tr>
|
|
1391
|
+
<td>
|
|
1392
|
+
<pre class="lines">
|
|
1393
|
+
|
|
1394
|
+
|
|
1395
|
+
45
|
|
1396
|
+
46
|
|
1397
|
+
47</pre>
|
|
1398
|
+
</td>
|
|
1399
|
+
<td>
|
|
1400
|
+
<pre class="code"><span class="info file"># File 'lib/references/reference.rb', line 45</span>
|
|
1401
|
+
|
|
1402
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
|
|
1403
|
+
<span class='ivar'>@title</span> <span class='op'>=</span> <span class='id identifier rubyid_title'>title</span>
|
|
1404
|
+
<span class='kw'>end</span></pre>
|
|
1405
|
+
</td>
|
|
1406
|
+
</tr>
|
|
1407
|
+
</table>
|
|
1408
|
+
</div>
|
|
1409
|
+
|
|
1410
|
+
</div>
|
|
1411
|
+
|
|
1412
|
+
</div>
|
|
1413
|
+
|
|
1414
|
+
<div id="footer">
|
|
1415
|
+
Generated on Tue Dec 15 21:21:43 2015 by
|
|
1416
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
|
1417
|
+
0.8.7.6 (ruby-2.2.3).
|
|
1418
|
+
</div>
|
|
1419
|
+
|
|
1420
|
+
</body>
|
|
1421
|
+
</html>
|