Class: Nodo
- Inherits:
-
Struct
- Object
- Struct
- Nodo
- Defined in:
- lib/menu/list.rb
Overview
Struct Nodo que contiene un valor (:value) , su siguiente nodo enlazado o nil (:next) y su previo nodo enlazado o nil (:prev)
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
3 4 5 |
# File 'lib/menu/list.rb', line 3 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
3 4 5 |
# File 'lib/menu/list.rb', line 3 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/menu/list.rb', line 3 def value @value end |