Class: Node
- Inherits:
-
Struct
- Object
- Struct
- Node
- Defined in:
- lib/P08/list.rb,
lib/P07/list.rb
Overview
Esta estructura respresenta a un nodo de nuestra futura lista. Tiene un nodo predecesor, sucesor y un valor.
- Author
-
Alberto González ([email protected])
- Copyright
-
Cretive Commons
- License
-
Distributes under the same terms as Ruby
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
1 2 3 |
# File 'lib/P07/list.rb', line 1 def next @next end |
#prev ⇒ Object
Returns the value of attribute prev
1 2 3 |
# File 'lib/P07/list.rb', line 1 def prev @prev end |
#value ⇒ Object
Returns the value of attribute value
1 2 3 |
# File 'lib/P07/list.rb', line 1 def value @value end |