Class: Nodo

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

Overview

Define la estructura de un nodo

* Valor
* Puntero al nodo proximo
* Puntero al nodo previo

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



7
8
9
# File 'lib/huella/nodo.rb', line 7

def next
  @next
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



7
8
9
# File 'lib/huella/nodo.rb', line 7

def prev
  @prev
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



7
8
9
# File 'lib/huella/nodo.rb', line 7

def value
  @value
end