Class: Electronico
Instance Attribute Summary collapse
-
#dir ⇒ Object
Returns the value of attribute dir.
-
#edicion ⇒ Object
Returns the value of attribute edicion.
-
#editor ⇒ Object
Returns the value of attribute editor.
-
#lpublicacion ⇒ Object
Returns the value of attribute lpublicacion.
-
#tmedio ⇒ Object
Returns the value of attribute tmedio.
Attributes inherited from Biblio
Instance Method Summary collapse
- #author(name, options = {}) ⇒ Object
- #date(name, options = {}) ⇒ Object
- #edition(name, options = {}) ⇒ Object
-
#initialize(titulo, &block) ⇒ Electronico
constructor
A new instance of Electronico.
- #place(name, options = {}) ⇒ Object
- #type(name, options = {}) ⇒ Object
- #url(name, options = {}) ⇒ Object
Methods inherited from Biblio
Constructor Details
#initialize(titulo, &block) ⇒ Electronico
Returns a new instance of Electronico.
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 |
# File 'lib/bibliografia/biblio.rb', line 223 def initialize(titulo, &block) self.autor = [] self.fecha = [] self.titulo = titulo self.edicion = [] self.tmedio = [] self.lpublicacion = [] self.editor = [] self.dir = [] if block_given? if block.arity == 1 yield self else instance_eval &block end end end |
Instance Attribute Details
#dir ⇒ Object
Returns the value of attribute dir.
221 222 223 |
# File 'lib/bibliografia/biblio.rb', line 221 def dir @dir end |
#edicion ⇒ Object
Returns the value of attribute edicion.
221 222 223 |
# File 'lib/bibliografia/biblio.rb', line 221 def edicion @edicion end |
#editor ⇒ Object
Returns the value of attribute editor.
221 222 223 |
# File 'lib/bibliografia/biblio.rb', line 221 def editor @editor end |
#lpublicacion ⇒ Object
Returns the value of attribute lpublicacion.
221 222 223 |
# File 'lib/bibliografia/biblio.rb', line 221 def lpublicacion @lpublicacion end |
#tmedio ⇒ Object
Returns the value of attribute tmedio.
221 222 223 |
# File 'lib/bibliografia/biblio.rb', line 221 def tmedio @tmedio end |
Instance Method Details
#author(name, options = {}) ⇒ Object
249 250 251 252 |
# File 'lib/bibliografia/biblio.rb', line 249 def (name, = {}) = name autor << end |
#date(name, options = {}) ⇒ Object
244 245 246 247 |
# File 'lib/bibliografia/biblio.rb', line 244 def date(name, = {}) date = name fecha << date end |
#edition(name, options = {}) ⇒ Object
254 255 256 257 |
# File 'lib/bibliografia/biblio.rb', line 254 def edition(name, = {}) edition = name edicion << edition end |
#place(name, options = {}) ⇒ Object
269 270 271 272 |
# File 'lib/bibliografia/biblio.rb', line 269 def place(name, = {}) place = name lpublicacion << place end |
#type(name, options = {}) ⇒ Object
259 260 261 262 |
# File 'lib/bibliografia/biblio.rb', line 259 def type(name, = {}) type = name tmedio << type end |
#url(name, options = {}) ⇒ Object
264 265 266 267 |
# File 'lib/bibliografia/biblio.rb', line 264 def url(name, = {}) url = name dir << url end |