Method: Node#next

Defined in:
lib/DlinkedList.rb

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



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

def next
  @next
end