Class: Electronico

Inherits:
Biblio show all
Defined in:
lib/nitz/codigo.rb

Instance Attribute Summary collapse

Attributes inherited from Biblio

#apellido, #autor, #edicion, #fecha, #isbn, #serie, #titulo

Instance Method Summary collapse

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_sObject



119
120
121
# File 'lib/nitz/codigo.rb', line 119

def to_s
    "Electronico: #@editorial"
end