Class: Nodo

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

Overview

Clase para representar la Lista

Instance Attribute Summary collapse

Instance Attribute Details

#next_nodeObject

Returns the value of attribute next_node

Returns:

  • (Object)

    the current value of next_node



3
4
5
# File 'lib/referencia/lista.rb', line 3

def next_node
  @next_node
end

#prev_nodeObject

Returns the value of attribute prev_node

Returns:

  • (Object)

    the current value of prev_node



3
4
5
# File 'lib/referencia/lista.rb', line 3

def prev_node
  @prev_node
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



3
4
5
# File 'lib/referencia/lista.rb', line 3

def value
  @value
end