Class: Electronico
Instance Attribute Summary collapse
-
#editorial(name) ⇒ Object
readonly
Returns the value of attribute editorial.
Attributes inherited from Biblio
#apellido, #autor, #edicion, #fecha, #isbn, #serie, #titulo
Instance Method Summary collapse
-
#initialize(&block) ⇒ Electronico
constructor
A new instance of Electronico.
- #to_s ⇒ Object
Methods inherited from Biblio
#<=>, #obtenautor, #obtenedicion, #obteneditorial, #obtenfecha, #obtenisbn, #obtenserie, #obtentitulo
Constructor Details
#initialize(&block) ⇒ Electronico
Returns a new instance of Electronico.
109 110 111 112 113 |
# File 'lib/nitz/codigo.rb', line 109 def initialize (&block) if block_given? instance_eval &block end end |
Instance Attribute Details
#editorial(name) ⇒ Object (readonly)
Returns the value of attribute editorial.
107 108 109 |
# File 'lib/nitz/codigo.rb', line 107 def editorial @editorial end |
Instance Method Details
#to_s ⇒ Object
119 120 121 |
# File 'lib/nitz/codigo.rb', line 119 def to_s "Electronico: #@editorial" end |