Sha256: 68cb621644c3c43d22db4fc08f7e06b7880e3d40b3b53e02563b16ce52d6ce40
Contents?: true
Size: 754 Bytes
Versions: 7
Compression:
Stored size: 754 Bytes
Contents
=begin Copyright 2010-2014 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 'ostruct' module Arachni::OptionGroups # Generic OpenStruct-based class for general purpose data storage. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class Datastore < Arachni::OptionGroup def initialize @source = OpenStruct.new end def method_missing( method, *args, &block ) @source.send( method, *args, &block ) end def to_h @source.marshal_dump end end end
Version data entries
7 entries across 7 versions & 1 rubygems