Class: Bibliografia::Nodo
- Inherits:
-
Struct
- Object
- Struct
- Bibliografia::Nodo
- Defined in:
- lib/bibliografia/lista_enlazada.rb
Overview
Nodo de la lista enlazada
Instance Attribute Summary collapse
-
#anterior ⇒ Object
Returns the value of attribute anterior.
-
#referencia ⇒ Object
Returns the value of attribute referencia.
-
#siguiente ⇒ Object
Returns the value of attribute siguiente.
Instance Method Summary collapse
-
#to_s ⇒ Object
Método para puts.
Instance Attribute Details
#anterior ⇒ Object
Returns the value of attribute anterior
4 5 6 |
# File 'lib/bibliografia/lista_enlazada.rb', line 4 def anterior @anterior end |
#referencia ⇒ Object
Returns the value of attribute referencia
4 5 6 |
# File 'lib/bibliografia/lista_enlazada.rb', line 4 def referencia @referencia end |
#siguiente ⇒ Object
Returns the value of attribute siguiente
4 5 6 |
# File 'lib/bibliografia/lista_enlazada.rb', line 4 def siguiente @siguiente end |
Instance Method Details
#to_s ⇒ Object
Método para puts
7 8 9 |
# File 'lib/bibliografia/lista_enlazada.rb', line 7 def to_s @referencia.to_s end |