Class: Node
- Inherits:
-
Struct
- Object
- Struct
- Node
- Defined in:
- lib/food/list.rb
Overview
Esta clase permite representar nodo con un nodo siguiente y un nodo anterior. Se ha incluido el moduulo enumerable
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
14 15 16 |
# File 'lib/food/list.rb', line 14 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
14 15 16 |
# File 'lib/food/list.rb', line 14 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
14 15 16 |
# File 'lib/food/list.rb', line 14 def value @value end |