Class: LinkedList::ListElem

Inherits:
Struct
  • Object
show all
Defined in:
lib/gamebox/lib/linked_list.rb

Instance Attribute Summary collapse

Instance Attribute Details

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



4
5
6
# File 'lib/gamebox/lib/linked_list.rb', line 4

def next
  @next
end

#objObject

Returns the value of attribute obj

Returns:

  • (Object)

    the current value of obj



4
5
6
# File 'lib/gamebox/lib/linked_list.rb', line 4

def obj
  @obj
end

#prevObject

Returns the value of attribute prev

Returns:

  • (Object)

    the current value of prev



4
5
6
# File 'lib/gamebox/lib/linked_list.rb', line 4

def prev
  @prev
end