Class: Node
- Inherits:
-
Struct
- Object
- Struct
- Node
- Defined in:
- lib/tddAlimentos/lista.rb
Overview
Node
- Autor
-
Himar Manuel Barquín Carrasco
- Web
Descripción
Estructura que representa un nodo. Contiene la información del valor que almacena, el nodo siguiente y el nodo previo
Instance Attribute Summary collapse
-
#next ⇒ Object
Returns the value of attribute next.
-
#prev ⇒ Object
Returns the value of attribute prev.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#next ⇒ Object
Returns the value of attribute next
11 12 13 |
# File 'lib/tddAlimentos/lista.rb', line 11 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
11 12 13 |
# File 'lib/tddAlimentos/lista.rb', line 11 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
11 12 13 |
# File 'lib/tddAlimentos/lista.rb', line 11 def value @value end |