Class: Nodo

Inherits:
Struct
  • Object
show all
Defined in:
lib/Alimento/lista_doble.rb

Instance Attribute Summary collapse

Instance Attribute Details

#next_nodeObject

Returns the value of attribute next_node

Returns:

  • (Object)

    the current value of next_node



1
2
3
# File 'lib/Alimento/lista_doble.rb', line 1

def next_node
  @next_node
end

#prev_nodeObject

Returns the value of attribute prev_node

Returns:

  • (Object)

    the current value of prev_node



1
2
3
# File 'lib/Alimento/lista_doble.rb', line 1

def prev_node
  @prev_node
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



1
2
3
# File 'lib/Alimento/lista_doble.rb', line 1

def value
  @value
end