Class: Nodo
- Inherits:
-
Struct
- Object
- Struct
- Nodo
- Defined in:
- lib/alimentos/lista.rb
Overview
Creamos la estructura de un nodo nuevo, con su valor, su nodo siguiente y su nodo rpevio
Instance Attribute Summary collapse
-
#prev ⇒ Object
Returns the value of attribute prev.
-
#siguiente ⇒ Object
Returns the value of attribute siguiente.
-
#valor ⇒ Object
Returns the value of attribute valor.
Instance Attribute Details
#prev ⇒ Object
Returns the value of attribute prev
3 4 5 |
# File 'lib/alimentos/lista.rb', line 3 def prev @prev end |
#siguiente ⇒ Object
Returns the value of attribute siguiente
3 4 5 |
# File 'lib/alimentos/lista.rb', line 3 def siguiente @siguiente end |
#valor ⇒ Object
Returns the value of attribute valor
3 4 5 |
# File 'lib/alimentos/lista.rb', line 3 def valor @valor end |