Sha256: 70a9004b3a214b5b105e17de74d8ac229fa97680cb57406c5b1bdb77746e7697
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.com> This file is part of the Arachni Framework project and is subject to redistribution and commercial restrictions. Please see the Arachni Framework web site for more information on licensing and terms of use. =end require 'set' module Arachni module Support::LookUp # 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. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class HashSet < Base # @param (see Base#initialize) def initialize(*) super @collection = Set.new end [:merge, :replace, :superset?, :subset?].each do |m| define_method m do |other| @collection.send( m, other.collection ) self end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | lib/arachni/support/lookup/hash_set.rb |
arachni-1.5 | lib/arachni/support/lookup/hash_set.rb |