Class: Bibliografia::Nodo

Inherits:
Struct
  • Object
show all
Defined in:
lib/bibliografia/lista_enlazada.rb

Overview

Nodo de la lista enlazada

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#anteriorObject

Returns the value of attribute anterior

Returns:

  • (Object)

    the current value of anterior



4
5
6
# File 'lib/bibliografia/lista_enlazada.rb', line 4

def anterior
  @anterior
end

#referenciaObject

Returns the value of attribute referencia

Returns:

  • (Object)

    the current value of referencia



4
5
6
# File 'lib/bibliografia/lista_enlazada.rb', line 4

def referencia
  @referencia
end

#siguienteObject

Returns the value of attribute siguiente

Returns:

  • (Object)

    the current value of siguiente



4
5
6
# File 'lib/bibliografia/lista_enlazada.rb', line 4

def siguiente
  @siguiente
end

Instance Method Details

#to_sObject

Método para puts



7
8
9
# File 'lib/bibliografia/lista_enlazada.rb', line 7

def to_s
    @referencia.to_s
end