Class: Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/tddAlimentos/lista.rb

Overview

Node

Autor

Himar Manuel Barquín Carrasco

Web

github.com/ULL-ESIT-LPP-1920/tdd-alu0101119373

Descripción

Estructura que representa un nodo. Contiene la información del valor que almacena, el nodo siguiente y el nodo previo

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



11
12
13
# File 'lib/tddAlimentos/lista.rb', line 11

def next
  @next
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



11
12
13
# File 'lib/tddAlimentos/lista.rb', line 11

def prev
  @prev
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



11
12
13
# File 'lib/tddAlimentos/lista.rb', line 11

def value
  @value
end