prct11 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/.gitignore +8 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +5 -0
- data/Guardfile +88 -0
- data/LICENSE.txt +21 -0
- data/README.md +53 -0
- data/Rakefile +5 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/doc/APA.html +377 -0
- data/doc/Book.html +296 -0
- data/doc/CODE_OF_CONDUCT_md.html +125 -0
- data/doc/DSL.html +153 -0
- data/doc/DSLBook.html +278 -0
- data/doc/DSLJournal.html +281 -0
- data/doc/Electronicdocument.html +211 -0
- data/doc/Gemfile.html +99 -0
- data/doc/Gemfile_lock.html +221 -0
- data/doc/Guardfile.html +186 -0
- data/doc/JournalArticle.html +301 -0
- data/doc/LICENSE_txt.html +117 -0
- data/doc/LinkedList.html +588 -0
- data/doc/MagazineArticle.html +301 -0
- data/doc/Object.html +126 -0
- data/doc/Prct11.html +109 -0
- data/doc/README_md.html +164 -0
- data/doc/Rakefile.html +99 -0
- data/doc/Reference.html +303 -0
- data/doc/Regularpublications.html +158 -0
- data/doc/bin/setup.html +101 -0
- data/doc/created.rid +35 -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 +129 -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/prct11_gemspec.html +136 -0
- data/doc/table_of_contents.html +301 -0
- data/lib/prct11.rb +13 -0
- data/lib/prct11/APA.rb +153 -0
- data/lib/prct11/DSL.rb +78 -0
- data/lib/prct11/book.rb +37 -0
- data/lib/prct11/electronicdocument.rb +20 -0
- data/lib/prct11/journalarticle.rb +42 -0
- data/lib/prct11/linkedList.rb +96 -0
- data/lib/prct11/magazinearticle.rb +42 -0
- data/lib/prct11/prueba.rb +42 -0
- data/lib/prct11/reference.rb +33 -0
- data/lib/prct11/regularpublications.rb +6 -0
- data/lib/prct11/version.rb +3 -0
- data/prct11.gemspec +40 -0
- metadata +263 -0
data/doc/DSLBook.html
ADDED
@@ -0,0 +1,278 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class DSLBook - 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="Book.html">Book</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-author">#author</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-book">#book</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-title">#title</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-labelledby="class-DSLBook">
|
88
|
+
<h1 id="class-DSLBook" class="class">
|
89
|
+
class DSLBook
|
90
|
+
</h1>
|
91
|
+
|
92
|
+
<section class="description">
|
93
|
+
|
94
|
+
</section>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
110
|
+
<header>
|
111
|
+
<h3>Public Class Methods</h3>
|
112
|
+
</header>
|
113
|
+
|
114
|
+
|
115
|
+
<div id="method-c-new" class="method-detail ">
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<span class="method-name">new</span><span
|
119
|
+
class="method-args">(&block)</span>
|
120
|
+
|
121
|
+
<span class="method-click-advice">click to toggle source</span>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<div class="method-source-code" id="new-source">
|
134
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 16</span>
|
135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
136
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = []
|
137
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">editorial</span> = []
|
138
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">edition</span> = []
|
139
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date</span> = []
|
140
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">isbn</span> =[]
|
141
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">authors</span> = []
|
142
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volume</span> = []
|
143
|
+
<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
144
|
+
<span class="ruby-keyword">end</span></pre>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
|
155
|
+
</section>
|
156
|
+
|
157
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
158
|
+
<header>
|
159
|
+
<h3>Public Instance Methods</h3>
|
160
|
+
</header>
|
161
|
+
|
162
|
+
|
163
|
+
<div id="method-i-author" class="method-detail ">
|
164
|
+
|
165
|
+
<div class="method-heading">
|
166
|
+
<span class="method-name">author</span><span
|
167
|
+
class="method-args">(author)</span>
|
168
|
+
|
169
|
+
<span class="method-click-advice">click to toggle source</span>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<div class="method-source-code" id="author-source">
|
182
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 31</span>
|
183
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">author</span>(<span class="ruby-identifier">author</span>)
|
184
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">authors</span> = <span class="ruby-identifier">author</span>
|
185
|
+
<span class="ruby-keyword">end</span></pre>
|
186
|
+
</div>
|
187
|
+
|
188
|
+
</div>
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
|
+
</div>
|
194
|
+
|
195
|
+
|
196
|
+
<div id="method-i-book" class="method-detail ">
|
197
|
+
|
198
|
+
<div class="method-heading">
|
199
|
+
<span class="method-name">book</span><span
|
200
|
+
class="method-args">(datos = {})</span>
|
201
|
+
|
202
|
+
<span class="method-click-advice">click to toggle source</span>
|
203
|
+
|
204
|
+
</div>
|
205
|
+
|
206
|
+
|
207
|
+
<div class="method-description">
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
<div class="method-source-code" id="book-source">
|
215
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 35</span>
|
216
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">book</span> (<span class="ruby-identifier">datos</span> = {})
|
217
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:nombre</span>]
|
218
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">editorial</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:editorial</span>]
|
219
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">edition</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:edicion</span>]
|
220
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:fecha</span>]
|
221
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">isbn</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:isbn</span>]
|
222
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volume</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:volumen</span>]
|
223
|
+
<span class="ruby-keyword">end</span></pre>
|
224
|
+
</div>
|
225
|
+
|
226
|
+
</div>
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</div>
|
232
|
+
|
233
|
+
|
234
|
+
<div id="method-i-title" class="method-detail ">
|
235
|
+
|
236
|
+
<div class="method-heading">
|
237
|
+
<span class="method-name">title</span><span
|
238
|
+
class="method-args">(title)</span>
|
239
|
+
|
240
|
+
<span class="method-click-advice">click to toggle source</span>
|
241
|
+
|
242
|
+
</div>
|
243
|
+
|
244
|
+
|
245
|
+
<div class="method-description">
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
<div class="method-source-code" id="title-source">
|
253
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 27</span>
|
254
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">title</span>(<span class="ruby-identifier">title</span>)
|
255
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
|
256
|
+
<span class="ruby-keyword">end</span></pre>
|
257
|
+
</div>
|
258
|
+
|
259
|
+
</div>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</div>
|
265
|
+
|
266
|
+
|
267
|
+
</section>
|
268
|
+
|
269
|
+
</section>
|
270
|
+
</main>
|
271
|
+
|
272
|
+
|
273
|
+
<footer id="validator-badges" role="contentinfo">
|
274
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
275
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
276
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
277
|
+
</footer>
|
278
|
+
|
data/doc/DSLJournal.html
ADDED
@@ -0,0 +1,281 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class DSLJournal - 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="JournalArticle.html">JournalArticle</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-author">#author</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-journalarticle">#journalarticle</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-title_">#title_</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-labelledby="class-DSLJournal">
|
88
|
+
<h1 id="class-DSLJournal" class="class">
|
89
|
+
class DSLJournal
|
90
|
+
</h1>
|
91
|
+
|
92
|
+
<section class="description">
|
93
|
+
|
94
|
+
</section>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
110
|
+
<header>
|
111
|
+
<h3>Public Class Methods</h3>
|
112
|
+
</header>
|
113
|
+
|
114
|
+
|
115
|
+
<div id="method-c-new" class="method-detail ">
|
116
|
+
|
117
|
+
<div class="method-heading">
|
118
|
+
<span class="method-name">new</span><span
|
119
|
+
class="method-args">(&block)</span>
|
120
|
+
|
121
|
+
<span class="method-click-advice">click to toggle source</span>
|
122
|
+
|
123
|
+
</div>
|
124
|
+
|
125
|
+
|
126
|
+
<div class="method-description">
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
<div class="method-source-code" id="new-source">
|
134
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 48</span>
|
135
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
136
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = []
|
137
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date</span> = []
|
138
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">number</span> = []
|
139
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volume</span> = []
|
140
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">initpage</span> =[]
|
141
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">finalpage</span> = []
|
142
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">authors</span> = []
|
143
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-string">""</span>
|
144
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">journal</span> = []
|
145
|
+
<span class="ruby-identifier">instance_eval</span>(<span class="ruby-operator">&</span><span class="ruby-identifier">block</span>)
|
146
|
+
<span class="ruby-keyword">end</span></pre>
|
147
|
+
</div>
|
148
|
+
|
149
|
+
</div>
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
</div>
|
155
|
+
|
156
|
+
|
157
|
+
</section>
|
158
|
+
|
159
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
160
|
+
<header>
|
161
|
+
<h3>Public Instance Methods</h3>
|
162
|
+
</header>
|
163
|
+
|
164
|
+
|
165
|
+
<div id="method-i-author" class="method-detail ">
|
166
|
+
|
167
|
+
<div class="method-heading">
|
168
|
+
<span class="method-name">author</span><span
|
169
|
+
class="method-args">(author)</span>
|
170
|
+
|
171
|
+
<span class="method-click-advice">click to toggle source</span>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
|
176
|
+
<div class="method-description">
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
<div class="method-source-code" id="author-source">
|
184
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 65</span>
|
185
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">author</span>(<span class="ruby-identifier">author</span>)
|
186
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">authors</span> = <span class="ruby-identifier">author</span>
|
187
|
+
<span class="ruby-keyword">end</span></pre>
|
188
|
+
</div>
|
189
|
+
|
190
|
+
</div>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
</div>
|
196
|
+
|
197
|
+
|
198
|
+
<div id="method-i-journalarticle" class="method-detail ">
|
199
|
+
|
200
|
+
<div class="method-heading">
|
201
|
+
<span class="method-name">journalarticle</span><span
|
202
|
+
class="method-args">(datos = {})</span>
|
203
|
+
|
204
|
+
<span class="method-click-advice">click to toggle source</span>
|
205
|
+
|
206
|
+
</div>
|
207
|
+
|
208
|
+
|
209
|
+
<div class="method-description">
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
<div class="method-source-code" id="journalarticle-source">
|
217
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 69</span>
|
218
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">journalarticle</span> (<span class="ruby-identifier">datos</span> = {})
|
219
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:nombre</span>]
|
220
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">journal</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:periodico</span>]
|
221
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">date</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:fecha</span>]
|
222
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">number</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:numero</span>]
|
223
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">volume</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:volumen</span>]
|
224
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">initpage</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:paginicio</span>]
|
225
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">finalpage</span> = <span class="ruby-identifier">datos</span>[<span class="ruby-value">:pagfinal</span>]
|
226
|
+
<span class="ruby-keyword">end</span></pre>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
<div id="method-i-title_" class="method-detail ">
|
238
|
+
|
239
|
+
<div class="method-heading">
|
240
|
+
<span class="method-name">title_</span><span
|
241
|
+
class="method-args">(titles)</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="title_-source">
|
256
|
+
<pre><span class="ruby-comment"># File lib/prct11/DSL.rb, line 61</span>
|
257
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier">title_</span>(<span class="ruby-identifier">titles</span>)
|
258
|
+
<span class="ruby-keyword">self</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">titles</span>
|
259
|
+
<span class="ruby-keyword">end</span></pre>
|
260
|
+
</div>
|
261
|
+
|
262
|
+
</div>
|
263
|
+
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
</div>
|
268
|
+
|
269
|
+
|
270
|
+
</section>
|
271
|
+
|
272
|
+
</section>
|
273
|
+
</main>
|
274
|
+
|
275
|
+
|
276
|
+
<footer id="validator-badges" role="contentinfo">
|
277
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
278
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
|
279
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
280
|
+
</footer>
|
281
|
+
|