Class: Lista::Node

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

Instance Attribute Summary collapse

Instance Attribute Details

#nextNode

Nodo siguiente

Returns:

  • (Node)

    the current value of next



8
9
10
# File 'lib/dieta/lista.rb', line 8

def next
  @next
end

#prevNode

Nodo previo

Returns:

  • (Node)

    the current value of prev



8
9
10
# File 'lib/dieta/lista.rb', line 8

def prev
  @prev
end

#valueObject

Objeto contenido en el nodo

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/dieta/lista.rb', line 8

def value
  @value
end