Sha256: e7dac344c098d3d1d0d00b4908d957c0946cc69739c01488450396f87791fbcf
Contents?: true
Size: 955 Bytes
Versions: 6
Compression:
Stored size: 955 Bytes
Contents
=begin Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.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
6 entries across 6 versions & 1 rubygems