class Arachni::Parser::Extractors::Base

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

Attributes

downcased_html[R]
html[R]
parser[R]

Public Class Methods

new( options = {} ) click to toggle source
# File lib/arachni/parser/extractors/base.rb, line 21
def initialize( options = {} )
    @html           = options[:html]
    @downcased_html = @html.downcase if @html
    @parser         = options[:parser]
end

Public Instance Methods

check_for?( string_or_regexp ) click to toggle source
# File lib/arachni/parser/extractors/base.rb, line 35
def check_for?( string_or_regexp )
    return true if !@html
    !!@downcased_html[string_or_regexp]
end
document() click to toggle source
# File lib/arachni/parser/extractors/base.rb, line 40
def document
    parser.document
end
run() click to toggle source

This method must be implemented by all checks and must return an array of paths as plain strings

@return [Array<String>] paths @abstract

# File lib/arachni/parser/extractors/base.rb, line 32
def run
end