Class: Revista
Instance Attribute Summary collapse
-
#paginas ⇒ Object
Returns the value of attribute paginas.
-
#revista(name) ⇒ Object
Returns the value of attribute revista.
Attributes inherited from Biblio
#apellido, #autor, #edicion, #editorial, #fecha, #isbn, #serie, #titulo
Instance Method Summary collapse
-
#initialize(&block) ⇒ Revista
constructor
A new instance of Revista.
- #to_s ⇒ Object
Methods inherited from Biblio
#<=>, #obtenautor, #obtenedicion, #obteneditorial, #obtenfecha, #obtenisbn, #obtenserie, #obtentitulo
Constructor Details
#initialize(&block) ⇒ Revista
Returns a new instance of Revista.
73 74 75 76 77 |
# File 'lib/nitz/codigo.rb', line 73 def initialize (&block) if block_given? instance_eval &block end end |
Instance Attribute Details
#paginas ⇒ Object
Returns the value of attribute paginas.
71 72 73 |
# File 'lib/nitz/codigo.rb', line 71 def paginas @paginas end |
#revista(name) ⇒ Object
Returns the value of attribute revista.
71 72 73 |
# File 'lib/nitz/codigo.rb', line 71 def revista @revista end |
Instance Method Details
#to_s ⇒ Object
83 84 85 |
# File 'lib/nitz/codigo.rb', line 83 def to_s "Revista: #@revista" end |