Class: DataStructures::LinkedList::LLNode

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

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



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

def data
  @data
end

#nextObject

Returns the value of attribute next

Returns:

  • (Object)

    the current value of next



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

def next
  @next
end

#previousObject

Returns the value of attribute previous

Returns:

  • (Object)

    the current value of previous



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

def previous
  @previous
end