Method: Packet_List#clear

Defined in:
lib/Packet_List.rb

#clearObject

Removes all items from the list.



174
175
176
177
178
179
# File 'lib/Packet_List.rb', line 174

def clear
  @items.each { |item| item.clear }
  @items.clear
  # todo: mutex!?
  clearItems
end