Class: Arachni::Support::LookUp::HashSet
- Defined in:
- lib/arachni/support/lookup/hash_set.rb
Overview
Lightweight look-up Set implementation.
It uses stores hashes of items instead of the items themselves.
This leads to decreased memory consumption and faster comparisons during look-ups.
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize ⇒ HashSet
constructor
A new instance of HashSet.
Methods inherited from Base
#<<, #==, #any?, #clear, #delete, #dup, #empty?, #hash, #include?, #size
Constructor Details
#initialize ⇒ HashSet
Returns a new instance of HashSet.
24 25 26 27 |
# File 'lib/arachni/support/lookup/hash_set.rb', line 24 def initialize(*) super @collection = Set.new end |