prct11 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.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +8 -0
  4. data/.travis.yml +6 -0
  5. data/CODE_OF_CONDUCT.md +13 -0
  6. data/Gemfile +5 -0
  7. data/Guardfile +88 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +53 -0
  10. data/Rakefile +5 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +7 -0
  13. data/doc/APA.html +377 -0
  14. data/doc/Book.html +296 -0
  15. data/doc/CODE_OF_CONDUCT_md.html +125 -0
  16. data/doc/DSL.html +153 -0
  17. data/doc/DSLBook.html +278 -0
  18. data/doc/DSLJournal.html +281 -0
  19. data/doc/Electronicdocument.html +211 -0
  20. data/doc/Gemfile.html +99 -0
  21. data/doc/Gemfile_lock.html +221 -0
  22. data/doc/Guardfile.html +186 -0
  23. data/doc/JournalArticle.html +301 -0
  24. data/doc/LICENSE_txt.html +117 -0
  25. data/doc/LinkedList.html +588 -0
  26. data/doc/MagazineArticle.html +301 -0
  27. data/doc/Object.html +126 -0
  28. data/doc/Prct11.html +109 -0
  29. data/doc/README_md.html +164 -0
  30. data/doc/Rakefile.html +99 -0
  31. data/doc/Reference.html +303 -0
  32. data/doc/Regularpublications.html +158 -0
  33. data/doc/bin/setup.html +101 -0
  34. data/doc/created.rid +35 -0
  35. data/doc/css/fonts.css +167 -0
  36. data/doc/css/rdoc.css +590 -0
  37. data/doc/fonts/Lato-Light.ttf +0 -0
  38. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  39. data/doc/fonts/Lato-Regular.ttf +0 -0
  40. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  41. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  42. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  43. data/doc/images/add.png +0 -0
  44. data/doc/images/arrow_up.png +0 -0
  45. data/doc/images/brick.png +0 -0
  46. data/doc/images/brick_link.png +0 -0
  47. data/doc/images/bug.png +0 -0
  48. data/doc/images/bullet_black.png +0 -0
  49. data/doc/images/bullet_toggle_minus.png +0 -0
  50. data/doc/images/bullet_toggle_plus.png +0 -0
  51. data/doc/images/date.png +0 -0
  52. data/doc/images/delete.png +0 -0
  53. data/doc/images/find.png +0 -0
  54. data/doc/images/loadingAnimation.gif +0 -0
  55. data/doc/images/macFFBgHack.png +0 -0
  56. data/doc/images/package.png +0 -0
  57. data/doc/images/page_green.png +0 -0
  58. data/doc/images/page_white_text.png +0 -0
  59. data/doc/images/page_white_width.png +0 -0
  60. data/doc/images/plugin.png +0 -0
  61. data/doc/images/ruby.png +0 -0
  62. data/doc/images/tag_blue.png +0 -0
  63. data/doc/images/tag_green.png +0 -0
  64. data/doc/images/transparent.png +0 -0
  65. data/doc/images/wrench.png +0 -0
  66. data/doc/images/wrench_orange.png +0 -0
  67. data/doc/images/zoom.png +0 -0
  68. data/doc/index.html +129 -0
  69. data/doc/js/darkfish.js +161 -0
  70. data/doc/js/jquery.js +4 -0
  71. data/doc/js/navigation.js +142 -0
  72. data/doc/js/navigation.js.gz +0 -0
  73. data/doc/js/search.js +109 -0
  74. data/doc/js/search_index.js +1 -0
  75. data/doc/js/search_index.js.gz +0 -0
  76. data/doc/js/searcher.js +228 -0
  77. data/doc/js/searcher.js.gz +0 -0
  78. data/doc/prct11_gemspec.html +136 -0
  79. data/doc/table_of_contents.html +301 -0
  80. data/lib/prct11.rb +13 -0
  81. data/lib/prct11/APA.rb +153 -0
  82. data/lib/prct11/DSL.rb +78 -0
  83. data/lib/prct11/book.rb +37 -0
  84. data/lib/prct11/electronicdocument.rb +20 -0
  85. data/lib/prct11/journalarticle.rb +42 -0
  86. data/lib/prct11/linkedList.rb +96 -0
  87. data/lib/prct11/magazinearticle.rb +42 -0
  88. data/lib/prct11/prueba.rb +42 -0
  89. data/lib/prct11/reference.rb +33 -0
  90. data/lib/prct11/regularpublications.rb +6 -0
  91. data/lib/prct11/version.rb +3 -0
  92. data/prct11.gemspec +40 -0
  93. metadata +263 -0
@@ -0,0 +1,186 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Guardfile - 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="file">
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="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./bin/setup.html">setup</a>
76
+
77
+ <li><a href="./prct11_gemspec.html">prct11.gemspec</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-label="Page Guardfile">
86
+
87
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
88
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
89
+
90
+ <p>## Uncomment and set this to only include directories you want to watch #
91
+ directories %w(app lib config test spec features) \ # .select{|d|
92
+ Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
93
+
94
+ <p>## Note: if you are using the `directories` clause above and you are not ##
95
+ watching the project directory (&#39;.&#39;), then you will want to move ##
96
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
97
+ back, e.g. # # $ mkdir config # $ mv <a
98
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
99
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
100
+
101
+ <p>guard :bundler do</p>
102
+
103
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
104
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
105
+ <span class="ruby-identifier">helper</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Verify</span>.<span class="ruby-identifier">new</span>
106
+
107
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
108
+ <span class="ruby-identifier">files</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">Dir</span>[<span class="ruby-string">&#39;*.gemspec&#39;</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">files</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">helper</span>.<span class="ruby-identifier">uses_gemspec?</span>(<span class="ruby-identifier">f</span>) }
109
+
110
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
111
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">helper</span>.<span class="ruby-identifier">real_path</span>(<span class="ruby-identifier">file</span>)) }
112
+ </pre>
113
+
114
+ <p>end</p>
115
+
116
+ <p># Note: The cmd option is now required due to the increasing number of ways
117
+ # rspec may be run, below are examples of the most common uses. # *
118
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
119
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
120
+ if running and you have # installed the spring
121
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
122
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
123
+
124
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
125
+
126
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
127
+ <span class="ruby-identifier">dsl</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">RSpec</span><span class="ruby-operator">::</span><span class="ruby-constant">Dsl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>)
128
+
129
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
130
+
131
+ <span class="ruby-comment"># RSpec files</span>
132
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
133
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
134
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_support</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
135
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
136
+
137
+ <span class="ruby-comment">#ficheros introducidos por mi</span>
138
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/.+_spec\.rb$}</span>)
139
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^lib/prct10/(.+)\.rb$}</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-node">&quot;spec/#{m[1]}_spec.rb&quot;</span> }
140
+ <span class="ruby-identifier">watch</span>(<span class="ruby-string">&#39;spec/spec_helper.rb&#39;</span>) { <span class="ruby-string">&quot;spec&quot;</span> }
141
+ <span class="ruby-comment">#fin de fichero introdicidos por mi</span>
142
+
143
+ <span class="ruby-comment"># Ruby files</span>
144
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
145
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">lib_files</span>)
146
+
147
+ <span class="ruby-comment"># Rails files</span>
148
+ <span class="ruby-identifier">rails</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rails</span>(<span class="ruby-identifier">view_extensions</span><span class="ruby-operator">:</span> <span class="ruby-node">%w(erb haml slim)</span>)
149
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_files</span>)
150
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">views</span>)
151
+
152
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">controllers</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
153
+ [
154
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.(<span class="ruby-node">&quot;routing/#{m[1]}_routing&quot;</span>),
155
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.(<span class="ruby-node">&quot;controllers/#{m[1]}_controller&quot;</span>),
156
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.(<span class="ruby-node">&quot;acceptance/#{m[1]}&quot;</span>)
157
+ ]
158
+ <span class="ruby-keyword">end</span>
159
+
160
+ <span class="ruby-comment"># Rails config changes</span>
161
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
162
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">routes</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/routing&quot;</span> }
163
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_controller</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/controllers&quot;</span> }
164
+
165
+ <span class="ruby-comment"># Capybara features specs</span>
166
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">view_dirs</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
167
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">layouts</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
168
+
169
+ <span class="ruby-comment"># Turnip features and steps</span>
170
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
171
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/steps/(.+)_steps\.rb$}</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
172
+ <span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">&quot;**/#{m[1]}.feature&quot;</span>)][<span class="ruby-value">0</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&quot;spec/acceptance&quot;</span>
173
+ <span class="ruby-keyword">end</span>
174
+ </pre>
175
+
176
+ <p>end</p>
177
+ </main>
178
+
179
+
180
+
181
+ <footer id="validator-badges" role="contentinfo">
182
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
183
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
184
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
185
+ </footer>
186
+
@@ -0,0 +1,301 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class JournalArticle - 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="Regularpublications.html">Regularpublications</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li class="calls-super" ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-to_s">#to_s</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-labelledby="class-JournalArticle">
84
+ <h1 id="class-JournalArticle" class="class">
85
+ class JournalArticle
86
+ </h1>
87
+
88
+ <section class="description">
89
+
90
+ <p>Formato de artículo del periódico: Autor/es Título del artículo. Título del
91
+ periódico, [Volumen] (número), fecha</p>
92
+
93
+ </section>
94
+
95
+
96
+
97
+
98
+ <section id="5Buntitled-5D" class="documentation-section">
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+ <section class="attribute-method-details" class="method-section">
107
+ <header>
108
+ <h3>Attributes</h3>
109
+ </header>
110
+
111
+
112
+ <div id="attribute-i-finalpage" class="method-detail">
113
+ <div class="method-heading attribute-method-heading">
114
+ <span class="method-name">finalpage</span><span
115
+ class="attribute-access-type">[RW]</span>
116
+ </div>
117
+
118
+ <div class="method-description">
119
+
120
+
121
+
122
+ </div>
123
+ </div>
124
+
125
+ <div id="attribute-i-initpage" class="method-detail">
126
+ <div class="method-heading attribute-method-heading">
127
+ <span class="method-name">initpage</span><span
128
+ class="attribute-access-type">[RW]</span>
129
+ </div>
130
+
131
+ <div class="method-description">
132
+
133
+
134
+
135
+ </div>
136
+ </div>
137
+
138
+ <div id="attribute-i-journal" class="method-detail">
139
+ <div class="method-heading attribute-method-heading">
140
+ <span class="method-name">journal</span><span
141
+ class="attribute-access-type">[RW]</span>
142
+ </div>
143
+
144
+ <div class="method-description">
145
+
146
+
147
+
148
+ </div>
149
+ </div>
150
+
151
+ <div id="attribute-i-number" class="method-detail">
152
+ <div class="method-heading attribute-method-heading">
153
+ <span class="method-name">number</span><span
154
+ class="attribute-access-type">[RW]</span>
155
+ </div>
156
+
157
+ <div class="method-description">
158
+
159
+
160
+
161
+ </div>
162
+ </div>
163
+
164
+ <div id="attribute-i-volume" class="method-detail">
165
+ <div class="method-heading attribute-method-heading">
166
+ <span class="method-name">volume</span><span
167
+ class="attribute-access-type">[RW]</span>
168
+ </div>
169
+
170
+ <div class="method-description">
171
+
172
+
173
+
174
+ </div>
175
+ </div>
176
+
177
+ </section>
178
+
179
+
180
+
181
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
182
+ <header>
183
+ <h3>Public Class Methods</h3>
184
+ </header>
185
+
186
+
187
+ <div id="method-c-new" class="method-detail ">
188
+
189
+ <div class="method-heading">
190
+ <span class="method-name">new</span><span
191
+ class="method-args">(authorsJournal, titleJournal, dateJournal, journal, number, volumen=nil, initpage, finalpage)</span>
192
+
193
+ <span class="method-click-advice">click to toggle source</span>
194
+
195
+ </div>
196
+
197
+
198
+ <div class="method-description">
199
+
200
+
201
+
202
+
203
+ <div class="method-calls-super">
204
+ Calls superclass method
205
+ <a href="Regularpublications.html#method-c-new">Regularpublications.new</a>
206
+ </div>
207
+
208
+
209
+
210
+ <div class="method-source-code" id="new-source">
211
+ <pre><span class="ruby-comment"># File lib/prct11/journalarticle.rb, line 11</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">authorsJournal</span>, <span class="ruby-identifier">titleJournal</span>, <span class="ruby-identifier">dateJournal</span>, <span class="ruby-identifier">journal</span>, <span class="ruby-identifier">number</span>, <span class="ruby-identifier">volumen</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">initpage</span>, <span class="ruby-identifier">finalpage</span>)
213
+ <span class="ruby-keyword">super</span>(<span class="ruby-identifier">authorsJournal</span>, <span class="ruby-identifier">titleJournal</span>, <span class="ruby-identifier">dateJournal</span>)
214
+
215
+ <span class="ruby-ivar">@journal</span> = <span class="ruby-identifier">journal</span>
216
+ <span class="ruby-ivar">@volume</span> = <span class="ruby-identifier">volume</span>
217
+ <span class="ruby-ivar">@number</span> = <span class="ruby-identifier">number</span>
218
+ <span class="ruby-ivar">@initpage</span> = <span class="ruby-identifier">initpage</span>
219
+ <span class="ruby-ivar">@finalpage</span> = <span class="ruby-identifier">finalpage</span>
220
+ <span class="ruby-keyword">end</span></pre>
221
+ </div>
222
+
223
+ </div>
224
+
225
+
226
+
227
+
228
+ </div>
229
+
230
+
231
+ </section>
232
+
233
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
234
+ <header>
235
+ <h3>Public Instance Methods</h3>
236
+ </header>
237
+
238
+
239
+ <div id="method-i-to_s" class="method-detail ">
240
+
241
+ <div class="method-heading">
242
+ <span class="method-name">to_s</span><span
243
+ class="method-args">()</span>
244
+
245
+ <span class="method-click-advice">click to toggle source</span>
246
+
247
+ </div>
248
+
249
+
250
+ <div class="method-description">
251
+
252
+
253
+
254
+
255
+
256
+
257
+ <div class="method-source-code" id="to_s-source">
258
+ <pre><span class="ruby-comment"># File lib/prct11/journalarticle.rb, line 21</span>
259
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
260
+ <span class="ruby-identifier">string</span> = <span class="ruby-string">&quot;&quot;</span>
261
+ <span class="ruby-keyword">for</span> <span class="ruby-identifier">i</span> <span class="ruby-keyword">in</span> (<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-ivar">@authors</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
262
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-node">&quot;#{authors[i]}&quot;</span>
263
+ <span class="ruby-keyword">if</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">!=</span> <span class="ruby-ivar">@authors</span>.<span class="ruby-identifier">size</span><span class="ruby-operator">-</span><span class="ruby-value">1</span>)
264
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;, &quot;</span>
265
+ <span class="ruby-keyword">end</span>
266
+ <span class="ruby-keyword">end</span>
267
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span><span class="ruby-string">&quot;\n&quot;</span>
268
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">title</span>
269
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;.\n&quot;</span>
270
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@journal</span>
271
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;, &quot;</span>
272
+ <span class="ruby-keyword">if</span>(<span class="ruby-operator">!</span><span class="ruby-ivar">@volume</span>.<span class="ruby-identifier">nil?</span>)
273
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@volume</span>.<span class="ruby-identifier">to_s</span>
274
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot; &quot;</span>
275
+ <span class="ruby-keyword">end</span>
276
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;(&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@number</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;)&quot;</span>
277
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;, &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">date</span>
278
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;.&quot;</span>
279
+ <span class="ruby-keyword">end</span></pre>
280
+ </div>
281
+
282
+ </div>
283
+
284
+
285
+
286
+
287
+ </div>
288
+
289
+
290
+ </section>
291
+
292
+ </section>
293
+ </main>
294
+
295
+
296
+ <footer id="validator-badges" role="contentinfo">
297
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
298
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
299
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
300
+ </footer>
301
+