Class: DataStructList::Head

Inherits:
Object
  • Object
show all
Defined in:
lib/data_struct_list.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHead



6
7
8
# File 'lib/data_struct_list.rb', line 6

def initialize
  @quant = 0
end

Instance Attribute Details

#nextObject

Returns the value of attribute next.



5
6
7
# File 'lib/data_struct_list.rb', line 5

def next
  @next
end

#prevObject

Returns the value of attribute prev.



5
6
7
# File 'lib/data_struct_list.rb', line 5

def prev
  @prev
end

#quantObject

Returns the value of attribute quant.



5
6
7
# File 'lib/data_struct_list.rb', line 5

def quant
  @quant
end