Class: Alimento::Nodo
- Inherits:
-
Struct
- Object
- Struct
- Alimento::Nodo
- Defined in:
- lib/alimento/lista.rb
Overview
Clase que representa a un Nodo de una lista doblemente enlazada
Instance Attribute Summary collapse
-
#anterior ⇒ Object
Returns the value of attribute anterior.
-
#siguiente ⇒ Object
Returns the value of attribute siguiente.
-
#valor ⇒ Object
Returns the value of attribute valor.
Instance Attribute Details
#anterior ⇒ Object
Returns the value of attribute anterior
4 5 6 |
# File 'lib/alimento/lista.rb', line 4 def anterior @anterior end |
#siguiente ⇒ Object
Returns the value of attribute siguiente
4 5 6 |
# File 'lib/alimento/lista.rb', line 4 def siguiente @siguiente end |
#valor ⇒ Object
Returns the value of attribute valor
4 5 6 |
# File 'lib/alimento/lista.rb', line 4 def valor @valor end |