Sha256: a64c5b1705e74d91211deaebcb8aff6ecde294759ff395ac728f7e7ab82e3473
Contents?: true
Size: 754 Bytes
Versions: 6
Compression:
Stored size: 754 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 '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
6 entries across 6 versions & 1 rubygems