Class: Alimento::Nodo

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

Overview

Esta clase representa el nodo de una lista.

Instance Attribute Summary collapse

Instance Attribute Details

#anteriorObject

Returns the value of attribute anterior

Returns:

  • (Object)

    the current value of anterior



4
5
6
# File 'lib/alimento/lista.rb', line 4

def anterior
  @anterior
end

#siguienteObject

Returns the value of attribute siguiente

Returns:

  • (Object)

    the current value of siguiente



4
5
6
# File 'lib/alimento/lista.rb', line 4

def siguiente
  @siguiente
end

#valorObject

Returns the value of attribute valor

Returns:

  • (Object)

    the current value of valor



4
5
6
# File 'lib/alimento/lista.rb', line 4

def valor
  @valor
end