Sha256: 26e73b36ce58d3dad76ea974b150e31c5d38affa15e0c0e85b1ec60e8db793cd

Contents?: true

Size: 929 Bytes

Versions: 7

Compression:

Stored size: 929 Bytes

Contents

=begin
    Copyright 2010-2014 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 Element::Capabilities
module WithScope

# Determines the {Scope scope} status of {Element::Base elements} based on
# their {Element::Base#action}.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
class Scope < URI::Scope

    # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
    class Error < URI::Scope::Error
    end

    def initialize( element )
        super Arachni::URI( element.action )
    end

    # @note Will call {URI::Scope#redundant?}.
    #
    # @return   (see URI::Scope#out?)
    def out?
        super || redundant?
    end

end

end
end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0.5 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0.4 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0.3 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0.2 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0.1 lib/arachni/element/capabilities/with_scope/scope.rb
arachni-1.0 lib/arachni/element/capabilities/with_scope/scope.rb