Sha256: 2a3cb31c4e86d5244563924fb136a9e6edc0c14e4f14ecb0eab2dadcba25afc7
Contents?: true
Size: 1.12 KB
Versions: 6
Compression:
Stored size: 1.12 KB
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 module Arachni module RPC class Server # It, for the most part, forwards calls to {Arachni::Options} and intercepts # a few that need to be updated at other places throughout the framework. # # @private # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> class ActiveOptions def initialize( framework ) @options = framework.options (@options.public_methods( false ) - public_methods( false ) ).each do |m| self.class.class_eval do define_method m do |*args| @options.send( m, *args ) end end end end # @see Arachni::Options#set def set( options ) @options.set( options ) HTTP::Client.reset false true end def to_h @options.to_rpc_data end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems