class Arachni::Element::Capabilities::WithScope::Scope
Determines the {Scope scope} status of {Element::Base elements} based on their {Element::Base#action} and {Element::Base#type}.
@author Tasos “Zapotek” Laskos <tasos.laskos@arachni-scanner.com>
Public Class Methods
new( element )
click to toggle source
Calls superclass method
# File lib/arachni/element/capabilities/with_scope/scope.rb, line 23 def initialize( element ) @element = element super Arachni::URI( element.action ) end
Public Instance Methods
out?()
click to toggle source
@note Will call {URI::Scope#redundant?}.
@return (see URI::Scope#out?
)
Calls superclass method
# File lib/arachni/element/capabilities/with_scope/scope.rb, line 31 def out? begin return true if !Arachni::Options.audit.element?( @element.type ) rescue Arachni::OptionGroups::Audit::Error::InvalidElementType end super || redundant? end