Class: Containers::List::Node

Inherits:
Struct
  • Object
show all
Defined in:
lib/containers/list.rb

Instance Attribute Summary collapse

Instance Attribute Details

#data ⇒ Object

Returns the value of attribute data

Returns:

  • (Object) —

    the current value of data



3
4
5
# File 'lib/containers/list.rb', line 3

def data
  @data
end

#next ⇒ Object

Returns the value of attribute next

Returns:

  • (Object) —

    the current value of next



3
4
5
# File 'lib/containers/list.rb', line 3

def next
  @next
end

#prev ⇒ Object

Returns the value of attribute prev

Returns:

  • (Object) —

    the current value of prev



3
4
5
# File 'lib/containers/list.rb', line 3

def prev
  @prev
end