Class: DLLModule::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/food/dll.rb

Overview

Struct Node for Doubly Linked List

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next



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

def next
  @next
end

#prevObject

Returns the value of attribute prev



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

def prev
  @prev
end

#valueObject

Returns the value of attribute value



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

def value
  @value
end