Class: Nodo
- Inherits:
-
Struct
- Object
- Struct
- Nodo
- Defined in:
- lib/alimento/lista.rb
Overview
Note:
Nodos para la lista que contendrĂ¡ un valor, el nodo siguiente y el anterior enlazados.
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
2 3 4 |
# File 'lib/alimento/lista.rb', line 2 def anterior @anterior end |
#siguiente ⇒ Object
Returns the value of attribute siguiente
2 3 4 |
# File 'lib/alimento/lista.rb', line 2 def siguiente @siguiente end |
#valor ⇒ Object
Returns the value of attribute valor
2 3 4 |
# File 'lib/alimento/lista.rb', line 2 def valor @valor end |