Class: Periodico
Instance Attribute Summary collapse
-
#periodico(name) ⇒ Object
readonly
Returns the value of attribute periodico.
Attributes inherited from Biblio
#apellido, #autor, #edicion, #editorial, #fecha, #isbn, #serie, #titulo
Instance Method Summary collapse
-
#initialize(&block) ⇒ Periodico
constructor
A new instance of Periodico.
- #to_s ⇒ Object
Methods inherited from Biblio
#<=>, #obtenautor, #obtenedicion, #obteneditorial, #obtenfecha, #obtenisbn, #obtenserie, #obtentitulo
Constructor Details
#initialize(&block) ⇒ Periodico
Returns a new instance of Periodico.
91 92 93 94 95 |
# File 'lib/nitz/codigo.rb', line 91 def initialize (&block) if block_given? instance_eval &block end end |
Instance Attribute Details
#periodico(name) ⇒ Object (readonly)
Returns the value of attribute periodico.
89 90 91 |
# File 'lib/nitz/codigo.rb', line 89 def periodico @periodico end |
Instance Method Details
#to_s ⇒ Object
101 102 103 |
# File 'lib/nitz/codigo.rb', line 101 def to_s "Periodico: #@periodico" end |