Method: Hyperactive::List::Head#initialize

Defined in:
lib/hyperactive/list.rb

#initializeHead

Create a List::Head. This is in essence the linked list.

NB: Remember to call create on the new instance or use Head.get_instance to get that done automatically.



73
74
75
76
77
# File 'lib/hyperactive/list.rb', line 73

def initialize
  super
  self.size = 0
  self.first_element = self.last_element = nil
end