Class: Einutricional::DoubleLinkedList::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/einutricional/double_linked_list.rb

Overview

Nodo para almacenar un objeto y referencias a los nodos contiguos

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



8
9
10
# File 'lib/einutricional/double_linked_list.rb', line 8

def next
  @next
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



8
9
10
# File 'lib/einutricional/double_linked_list.rb', line 8

def prev
  @prev
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



8
9
10
# File 'lib/einutricional/double_linked_list.rb', line 8

def value
  @value
end