Class: Nodo

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

Overview

Includes a new class which is node, fot conteins the information of the each value of the list

Instance Attribute Summary collapse

Instance Attribute Details

#anteriorObject

Returns the value of attribute anterior

Returns:

  • (Object)

    the current value of anterior



7
8
9
# File 'lib/prct06/lista.rb', line 7

def anterior
  @anterior
end

#siguienteObject

Returns the value of attribute siguiente

Returns:

  • (Object)

    the current value of siguiente



7
8
9
# File 'lib/prct06/lista.rb', line 7

def siguiente
  @siguiente
end

#valorObject

Returns the value of attribute valor

Returns:

  • (Object)

    the current value of valor



7
8
9
# File 'lib/prct06/lista.rb', line 7

def valor
  @valor
end