class Apa

Public Class Methods

new() click to toggle source
# File lib/biblio/apa.rb, line 6
def initialize()
    @lista = Lista_doble.new
end

Public Instance Methods

each() { |i| ... } click to toggle source
# File lib/biblio/apa.rb, line 15
def each
    @lista.each{ |i| yield i}
end
insertar(referencia) click to toggle source
# File lib/biblio/apa.rb, line 10
def insertar(referencia)
    @lista.insertar_elemento(referencia)
    @lista.ordenar!
end
to_s() click to toggle source
# File lib/biblio/apa.rb, line 19
def to_s
            string = ""
            @lista.each do |i|
                    string << i.to_s
                    string << "\n"
            end
            return string
    end