Class: Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/p6/list.rb

Overview

Clase Node, contiene el valor, el nodo siguiente y el nodo previo

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Nodo siguiente al actual

Returns:

  • (Object)

    the current value of next



8
9
10
# File 'lib/p6/list.rb', line 8

def next
  @next
end

#prevObject

nodo previo al actual

Returns:

  • (Object)

    the current value of prev



8
9
10
# File 'lib/p6/list.rb', line 8

def prev
  @prev
end

#valueObject

Valor contenido en el nodo

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/p6/list.rb', line 8

def value
  @value
end