Class: Arachni::Parser::Extractors::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/arachni/parser.rb

Overview

This class is abstract.

Author:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Base

Returns a new instance of Base.



38
39
40
41
42
# File 'lib/arachni/parser.rb', line 38

def initialize( options = {} )
    @html           = options[:html]
    @downcased_html = @html.downcase
    @document       = options[:document]
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



35
36
37
# File 'lib/arachni/parser.rb', line 35

def document
  @document
end

#downcased_htmlObject (readonly)

Returns the value of attribute downcased_html.



36
37
38
# File 'lib/arachni/parser.rb', line 36

def downcased_html
  @downcased_html
end

#htmlObject (readonly)

Returns the value of attribute html.



34
35
36
# File 'lib/arachni/parser.rb', line 34

def html
  @html
end

Instance Method Details

#includes?(string_or_regexp) ⇒ Boolean

Returns:

  • (Boolean)


52
53
54
# File 'lib/arachni/parser.rb', line 52

def includes?( string_or_regexp )
    !!@downcased_html[string_or_regexp]
end

#runArray<String>

This method is abstract.

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

Returns:



49
50
# File 'lib/arachni/parser.rb', line 49

def run
end