biblio-refs 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +5 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +45 -0
  9. data/README.rdoc +20 -0
  10. data/Rakefile +12 -0
  11. data/biblio-refs.gemspec +30 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +7 -0
  14. data/coveralls.yml +1 -0
  15. data/html/BiblioRefs.html +109 -0
  16. data/html/BiblioRefs/ArticuloPeriodico.html +281 -0
  17. data/html/BiblioRefs/ArticuloRevista.html +393 -0
  18. data/html/BiblioRefs/DocumentoElectronico.html +336 -0
  19. data/html/BiblioRefs/Libro.html +300 -0
  20. data/html/BiblioRefs/List.html +374 -0
  21. data/html/BiblioRefs/ListaAPA.html +274 -0
  22. data/html/BiblioRefs/PublicacionesPeriodicas.html +156 -0
  23. data/html/BiblioRefs/Referencia.html +889 -0
  24. data/html/Object.html +117 -0
  25. data/html/README_rdoc.html +111 -0
  26. data/html/created.rid +11 -0
  27. data/html/css/fonts.css +167 -0
  28. data/html/css/rdoc.css +590 -0
  29. data/html/fonts/Lato-Light.ttf +0 -0
  30. data/html/fonts/Lato-LightItalic.ttf +0 -0
  31. data/html/fonts/Lato-Regular.ttf +0 -0
  32. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  33. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  34. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  35. data/html/images/add.png +0 -0
  36. data/html/images/arrow_up.png +0 -0
  37. data/html/images/brick.png +0 -0
  38. data/html/images/brick_link.png +0 -0
  39. data/html/images/bug.png +0 -0
  40. data/html/images/bullet_black.png +0 -0
  41. data/html/images/bullet_toggle_minus.png +0 -0
  42. data/html/images/bullet_toggle_plus.png +0 -0
  43. data/html/images/date.png +0 -0
  44. data/html/images/delete.png +0 -0
  45. data/html/images/find.png +0 -0
  46. data/html/images/loadingAnimation.gif +0 -0
  47. data/html/images/macFFBgHack.png +0 -0
  48. data/html/images/package.png +0 -0
  49. data/html/images/page_green.png +0 -0
  50. data/html/images/page_white_text.png +0 -0
  51. data/html/images/page_white_width.png +0 -0
  52. data/html/images/plugin.png +0 -0
  53. data/html/images/ruby.png +0 -0
  54. data/html/images/tag_blue.png +0 -0
  55. data/html/images/tag_green.png +0 -0
  56. data/html/images/transparent.png +0 -0
  57. data/html/images/wrench.png +0 -0
  58. data/html/images/wrench_orange.png +0 -0
  59. data/html/images/zoom.png +0 -0
  60. data/html/index.html +129 -0
  61. data/html/js/darkfish.js +161 -0
  62. data/html/js/jquery.js +4 -0
  63. data/html/js/navigation.js +142 -0
  64. data/html/js/navigation.js.gz +0 -0
  65. data/html/js/search.js +109 -0
  66. data/html/js/search_index.js +1 -0
  67. data/html/js/search_index.js.gz +0 -0
  68. data/html/js/searcher.js +228 -0
  69. data/html/js/searcher.js.gz +0 -0
  70. data/html/table_of_contents.html +284 -0
  71. data/lib/biblio_refs.rb +9 -0
  72. data/lib/biblio_refs/articulo_periodico.rb +32 -0
  73. data/lib/biblio_refs/articulo_revista.rb +60 -0
  74. data/lib/biblio_refs/documento_electronico.rb +42 -0
  75. data/lib/biblio_refs/libro.rb +37 -0
  76. data/lib/biblio_refs/list.rb +61 -0
  77. data/lib/biblio_refs/lista_apa.rb +41 -0
  78. data/lib/biblio_refs/publicaciones_periodicas.rb +10 -0
  79. data/lib/biblio_refs/referencia.rb +204 -0
  80. data/lib/biblio_refs/version.rb +3 -0
  81. metadata +221 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7b67f07ded7c06ce4e8a1c64859fc49c9c834cdf
4
+ data.tar.gz: bd04b2e84981d19fbaf79779050a7cfbc356b67c
5
+ SHA512:
6
+ metadata.gz: fee38f4484cdaafe803ef6f75902647e395239075b2c5788324ee8a59996c790217f820ff50d7d1eb9ed383d26fdb67d793452c6327c3a11499430950baeb51a
7
+ data.tar.gz: 57f2442dad03ea140ed2a03aa6189f10e5668ea9e32294e0e06a803f332b3060c99d056addb4b790e7bb4c4fe4d0e58c97c3335c7bef8ecad466b27f28e256b9
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --format documentation
2
+ --color
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.1
4
+ - 2.1.4
5
+ before_install: gem install bundler -v 1.10.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in biblio-refs.gemspec
4
+ gemspec
@@ -0,0 +1,82 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+
4
+ ## Uncomment and set this to only include directories you want to watch
5
+ # directories %w(app lib config test spec features) \
6
+ # .select{|d| Dir.exists?(d) ? d : UI.warning("Directory #{d} does not exist")}
7
+
8
+ ## Note: if you are using the `directories` clause above and you are not
9
+ ## watching the project directory ('.'), then you will want to move
10
+ ## the Guardfile to a watched dir and symlink it back, e.g.
11
+ #
12
+ # $ mkdir config
13
+ # $ mv Guardfile config/
14
+ # $ ln -s config/Guardfile .
15
+ #
16
+ # and, you'll have to watch "config/Guardfile" instead of "Guardfile"
17
+
18
+ guard :bundler do
19
+ require 'guard/bundler'
20
+ require 'guard/bundler/verify'
21
+ helper = Guard::Bundler::Verify.new
22
+
23
+ files = ['Gemfile']
24
+ files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
25
+
26
+ # Assume files are symlinked from somewhere
27
+ files.each { |file| watch(helper.real_path(file)) }
28
+ end
29
+
30
+ # Note: The cmd option is now required due to the increasing number of ways
31
+ # rspec may be run, below are examples of the most common uses.
32
+ # * bundler: 'bundle exec rspec'
33
+ # * bundler binstubs: 'bin/rspec'
34
+ # * spring: 'bin/rspec' (This will use spring if running and you have
35
+ # installed the spring binstubs per the docs)
36
+ # * zeus: 'zeus rspec' (requires the server to be started separately)
37
+ # * 'just' rspec: 'rspec'
38
+
39
+ guard :rspec, cmd: "bundle exec rspec" do
40
+ require "guard/rspec/dsl"
41
+ dsl = Guard::RSpec::Dsl.new(self)
42
+
43
+ # Feel free to open issues for suggestions and improvements
44
+
45
+ # RSpec files
46
+ rspec = dsl.rspec
47
+ watch(rspec.spec_helper) { rspec.spec_dir }
48
+ watch(rspec.spec_support) { rspec.spec_dir }
49
+ watch(rspec.spec_files)
50
+
51
+ # Ruby files
52
+ ruby = dsl.ruby
53
+ dsl.watch_spec_files_for(ruby.lib_files)
54
+
55
+ # Rails files
56
+ rails = dsl.rails(view_extensions: %w(erb haml slim))
57
+ dsl.watch_spec_files_for(rails.app_files)
58
+ dsl.watch_spec_files_for(rails.views)
59
+
60
+ watch(rails.controllers) do |m|
61
+ [
62
+ rspec.spec.("routing/#{m[1]}_routing"),
63
+ rspec.spec.("controllers/#{m[1]}_controller"),
64
+ rspec.spec.("acceptance/#{m[1]}")
65
+ ]
66
+ end
67
+
68
+ # Rails config changes
69
+ watch(rails.spec_helper) { rspec.spec_dir }
70
+ watch(rails.routes) { "#{rspec.spec_dir}/routing" }
71
+ watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
72
+
73
+ # Capybara features specs
74
+ watch(rails.view_dirs) { |m| rspec.spec.("features/#{m[1]}") }
75
+ watch(rails.layouts) { |m| rspec.spec.("features/#{m[1]}") }
76
+
77
+ # Turnip features and steps
78
+ watch(%r{^spec/acceptance/(.+)\.feature$})
79
+ watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
80
+ Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
81
+ end
82
+ end
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Sergio Rodríguez
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,45 @@
1
+ # Biblio::Refs
2
+
3
+ [![Build Status](https://travis-ci.org/alu0100699968/biblio_refs.svg?branch=modulos_sergio)](https://travis-ci.org/alu0100699968/biblio_refs)
4
+
5
+ Gema para la representación de referencias de una Bibliografía. Realizada para la práctica 6 de la asignatura Lenguajes y Paradigmas de la Programación.
6
+
7
+ ### Autores
8
+
9
+ * Sergio Rodríguez Martín
10
+ * Jonathan Expósito Martín
11
+
12
+ ## Installation
13
+
14
+ Add this line to your application's Gemfile:
15
+
16
+ ```ruby
17
+ gem 'biblio-refs'
18
+ ```
19
+
20
+ And then execute:
21
+
22
+ $ bundle
23
+
24
+ Or install it yourself as:
25
+
26
+ $ gem install biblio-refs
27
+
28
+ ## Usage
29
+
30
+ TODO: Write usage instructions here
31
+
32
+ ## Development
33
+
34
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
35
+
36
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
37
+
38
+ ## Contributing
39
+
40
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/biblio-refs.
41
+
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,20 @@
1
+ = \biblio-refs - Gema para representar Referencias Bibliográficas
2
+
3
+ == Descripción
4
+
5
+ Esta gema permite la creación de diferentes tipos de referencias bibliográficas
6
+ (libro, artículos y documentos electrónicos)
7
+
8
+ == Instalación
9
+
10
+ Se añade esta línea al Gemfile:
11
+
12
+ gem 'biblio-refs'
13
+
14
+ Luego se ejecuta:
15
+
16
+ $ bundle
17
+
18
+ O se puede instalar manualmente mediante:
19
+
20
+ $ gem install biblio-refs
@@ -0,0 +1,12 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+ require "rdoc/task"
4
+
5
+ RSpec::Core::RakeTask.new(:spec)
6
+
7
+ RDoc::Task.new do |rdoc|
8
+ rdoc.main = "README.rdoc"
9
+ rdoc.rdoc_files.include("README.rdoc", "lib/biblio_refs/*.rb")
10
+ end
11
+
12
+ task :default => :spec
@@ -0,0 +1,30 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'biblio_refs/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "biblio-refs"
8
+ spec.version = BiblioRefs::VERSION
9
+ spec.authors = ["Sergio Rodríguez"]
10
+ spec.email = ["alu0100699968@ull.edu.es"]
11
+
12
+ spec.summary = %q{Gema para representar referencias bibliográficas.}
13
+ spec.homepage = "https://github.com/alu0100699968/biblio_refs"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
+ spec.bindir = "exe"
18
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.10"
22
+ spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_development_dependency "rspec"
24
+
25
+ spec.add_development_dependency "guard"
26
+ spec.add_development_dependency "guard-rspec"
27
+ spec.add_development_dependency "guard-bundler"
28
+
29
+ spec.add_development_dependency "coveralls"
30
+ end
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "biblio/refs"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start
@@ -0,0 +1,7 @@
1
+ #!/bin/bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+
5
+ bundle install
6
+
7
+ # Do any other automated setup that you need to do here
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -0,0 +1,109 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module BiblioRefs - 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="module">
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
+
58
+
59
+
60
+
61
+ </div>
62
+ </nav>
63
+
64
+ <main role="main" aria-labelledby="module-BiblioRefs">
65
+ <h1 id="module-BiblioRefs" class="module">
66
+ module BiblioRefs
67
+ </h1>
68
+
69
+ <section class="description">
70
+
71
+ </section>
72
+
73
+
74
+
75
+
76
+ <section id="5Buntitled-5D" class="documentation-section">
77
+
78
+
79
+
80
+
81
+
82
+ <section class="constants-list">
83
+ <header>
84
+ <h3>Constants</h3>
85
+ </header>
86
+ <dl>
87
+
88
+ <dt id="VERSION">VERSION
89
+
90
+ <dd>
91
+
92
+
93
+ </dl>
94
+ </section>
95
+
96
+
97
+
98
+
99
+
100
+ </section>
101
+ </main>
102
+
103
+
104
+ <footer id="validator-badges" role="contentinfo">
105
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
106
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.0.
107
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
108
+ </footer>
109
+
@@ -0,0 +1,281 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class BiblioRefs::ArticuloPeriodico - 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">PublicacionesPeriodicas
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-periodico">#periodico</a>
76
+
77
+ <li ><a href="#method-i-to_s">#to_s</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-BiblioRefs::ArticuloPeriodico">
86
+ <h1 id="class-BiblioRefs::ArticuloPeriodico" class="class">
87
+ class BiblioRefs::ArticuloPeriodico
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>Clase para representar referencias bibliográficas de un artículo de
93
+ periódico. Hereda de <a
94
+ href="PublicacionesPeriodicas.html">PublicacionesPeriodicas</a>.</p>
95
+
96
+ </section>
97
+
98
+
99
+
100
+
101
+ <section id="5Buntitled-5D" class="documentation-section">
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+ <section class="attribute-method-details" class="method-section">
110
+ <header>
111
+ <h3>Attributes</h3>
112
+ </header>
113
+
114
+
115
+ <div id="attribute-i-nombre_periodico" class="method-detail">
116
+ <div class="method-heading attribute-method-heading">
117
+ <span class="method-name">nombre_periodico</span><span
118
+ class="attribute-access-type">[RW]</span>
119
+ </div>
120
+
121
+ <div class="method-description">
122
+
123
+
124
+
125
+ </div>
126
+ </div>
127
+
128
+ <div id="attribute-i-num_paginas" class="method-detail">
129
+ <div class="method-heading attribute-method-heading">
130
+ <span class="method-name">num_paginas</span><span
131
+ class="attribute-access-type">[RW]</span>
132
+ </div>
133
+
134
+ <div class="method-description">
135
+
136
+
137
+
138
+ </div>
139
+ </div>
140
+
141
+ </section>
142
+
143
+
144
+
145
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
146
+ <header>
147
+ <h3>Public Class Methods</h3>
148
+ </header>
149
+
150
+
151
+ <div id="method-c-new" class="method-detail ">
152
+
153
+ <div class="method-heading">
154
+ <span class="method-name">new</span><span
155
+ class="method-args">(autores, fecha_publicacion, titulo, nombre_periodico, num_paginas)</span>
156
+
157
+ <span class="method-click-advice">click to toggle source</span>
158
+
159
+ </div>
160
+
161
+
162
+ <div class="method-description">
163
+
164
+ <p>Constructor de la clase <a
165
+ href="ArticuloPeriodico.html">ArticuloPeriodico</a>.</p>
166
+
167
+
168
+
169
+
170
+ <div class="method-source-code" id="new-source">
171
+ <pre><span class="ruby-comment"># File lib/biblio_refs/articulo_periodico.rb, line 9</span>
172
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">autores</span>, <span class="ruby-identifier">fecha_publicacion</span>, <span class="ruby-identifier">titulo</span>, <span class="ruby-identifier">nombre_periodico</span>, <span class="ruby-identifier">num_paginas</span>)
173
+ <span class="ruby-ivar">@autores</span> = <span class="ruby-identifier">autores</span>
174
+ <span class="ruby-ivar">@fecha_publicacion</span> = <span class="ruby-identifier">fecha_publicacion</span>
175
+ <span class="ruby-ivar">@titulo</span> = <span class="ruby-identifier">titulo</span>
176
+ <span class="ruby-ivar">@nombre_periodico</span> = <span class="ruby-identifier">nombre_periodico</span>
177
+ <span class="ruby-ivar">@num_paginas</span> = <span class="ruby-identifier">num_paginas</span>
178
+ <span class="ruby-keyword">end</span></pre>
179
+ </div>
180
+
181
+ </div>
182
+
183
+
184
+
185
+
186
+ </div>
187
+
188
+
189
+ </section>
190
+
191
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
192
+ <header>
193
+ <h3>Public Instance Methods</h3>
194
+ </header>
195
+
196
+
197
+ <div id="method-i-periodico" class="method-detail ">
198
+
199
+ <div class="method-heading">
200
+ <span class="method-name">periodico</span><span
201
+ class="method-args">(periodico = {})</span>
202
+
203
+ <span class="method-click-advice">click to toggle source</span>
204
+
205
+ </div>
206
+
207
+
208
+ <div class="method-description">
209
+
210
+ <p>Método para asignar valores a los atributos <a
211
+ href="ArticuloPeriodico.html#attribute-i-nombre_periodico">#nombre_periodico</a>
212
+ y <a href="ArticuloPeriodico.html#attribute-i-num_paginas">#num_paginas</a>
213
+ cuando se crean los objetos mediante el DSL.</p>
214
+
215
+
216
+
217
+
218
+ <div class="method-source-code" id="periodico-source">
219
+ <pre><span class="ruby-comment"># File lib/biblio_refs/articulo_periodico.rb, line 19</span>
220
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">periodico</span>(<span class="ruby-identifier">periodico</span> = {})
221
+ <span class="ruby-ivar">@nombre_periodico</span> = <span class="ruby-identifier">periodico</span>[<span class="ruby-value">:nombre_periodico</span>]
222
+ <span class="ruby-ivar">@num_paginas</span> = <span class="ruby-identifier">periodico</span>[<span class="ruby-value">:num_paginas</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-to_s" class="method-detail ">
235
+
236
+ <div class="method-heading">
237
+ <span class="method-name">to_s</span><span
238
+ class="method-args">()</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
+ <p>Método <a href="ArticuloPeriodico.html#method-i-to_s">#to_s</a> de la clase
248
+ que agrupa el resto de métodos &#39;to_s&#39; declarados.</p>
249
+
250
+
251
+
252
+
253
+ <div class="method-source-code" id="to_s-source">
254
+ <pre><span class="ruby-comment"># File lib/biblio_refs/articulo_periodico.rb, line 25</span>
255
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
256
+ <span class="ruby-identifier">final</span> = <span class="ruby-identifier">autores_to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot; (&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">fecha_publicacion_to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;). &quot;</span>
257
+ <span class="ruby-identifier">final</span> <span class="ruby-operator">+=</span> <span class="ruby-string">&quot;\n\t&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">titulo_to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;. &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">nombre_periodico</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;, pp. &quot;</span>
258
+ <span class="ruby-identifier">final</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">num_paginas</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-string">&quot;.&quot;</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
+