Class: Lista::Node
- Inherits:
-
Struct
- Object
- Struct
- Lista::Node
- Defined in:
- lib/prct07/lista.rb
Overview
Struct Node. ActĂșa como nodo dentro de la lista Contiene un :value -> Objeto en el nodo,
:next -> Referencia al siguiente nodo en la lista
:prev -> Referencia al anterior nodo en la lista
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
20 21 22 |
# File 'lib/prct07/lista.rb', line 20 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
20 21 22 |
# File 'lib/prct07/lista.rb', line 20 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
20 21 22 |
# File 'lib/prct07/lista.rb', line 20 def value @value end |