Class: NutritionalCalculator::LinkedList::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/nutritional_calculator/linkedlist.rb

Overview

Estructura que representa a un nodo de la lista enlazada.

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



12
13
14
# File 'lib/nutritional_calculator/linkedlist.rb', line 12

def next
  @next
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



12
13
14
# File 'lib/nutritional_calculator/linkedlist.rb', line 12

def prev
  @prev
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



12
13
14
# File 'lib/nutritional_calculator/linkedlist.rb', line 12

def value
  @value
end