Class: Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/prct06/nodo.rb

Overview

Esta estructura es la definida para los nodos que formaran la lista doblemente enlazada Su desarrollo ha sido dirigido por pruebas (TDD).

Author

Sergio Ferrera de Diego (sergioferrera1296@gmail.com)

Copyright

Cretive Commons

License

Distributes under the same terms as Ruby

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



9
10
11
# File 'lib/prct06/nodo.rb', line 9

def next
  @next
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



9
10
11
# File 'lib/prct06/nodo.rb', line 9

def prev
  @prev
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



9
10
11
# File 'lib/prct06/nodo.rb', line 9

def value
  @value
end