class Arachni::OptionGroups::Datastore

Generic OpenStruct-based class for general purpose data storage.

@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>

Public Class Methods

new() click to toggle source
# File lib/arachni/option_groups/datastore.rb, line 18
def initialize
    @source = OpenStruct.new
end

Public Instance Methods

method_missing( method, *args, &block ) click to toggle source
# File lib/arachni/option_groups/datastore.rb, line 22
def method_missing( method, *args, &block )
    @source.send( method, *args, &block )
end
to_h() click to toggle source
# File lib/arachni/option_groups/datastore.rb, line 26
def to_h
    @source.marshal_dump
end