Sha256: ee8c8096d127986f6902704103b73f1a01abc090ecd8e5dd69e7d242f15185d3

Contents?: true

Size: 739 Bytes

Versions: 5

Compression:

Stored size: 739 Bytes

Contents

=begin
    Copyright 2010-2022 Ecsypno <http://www.ecsypno.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

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.6.1.3 lib/arachni/option_groups/datastore.rb
arachni-1.6.1.2 lib/arachni/option_groups/datastore.rb
arachni-1.6.1.1 lib/arachni/option_groups/datastore.rb
arachni-1.6.1 lib/arachni/option_groups/datastore.rb
arachni-1.6.0 lib/arachni/option_groups/datastore.rb