Class: Arachni::Parser::Extractors::Base Abstract
- Defined in:
- lib/arachni/parser.rb
Overview
This class is abstract.
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
-
#downcased_html ⇒ Object
readonly
Returns the value of attribute downcased_html.
-
#html ⇒ Object
readonly
Returns the value of attribute html.
Instance Method Summary collapse
- #includes?(string_or_regexp) ⇒ Boolean
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
-
#run ⇒ Array<String>
abstract
This method must be implemented by all checks and must return an array of paths as plain strings.
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( = {} ) @html = [:html] @downcased_html = @html.downcase @document = [:document] end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
35 36 37 |
# File 'lib/arachni/parser.rb', line 35 def document @document end |
#downcased_html ⇒ Object (readonly)
Returns the value of attribute downcased_html.
36 37 38 |
# File 'lib/arachni/parser.rb', line 36 def downcased_html @downcased_html end |
#html ⇒ Object (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
52 53 54 |
# File 'lib/arachni/parser.rb', line 52 def includes?( string_or_regexp ) !!@downcased_html[string_or_regexp] end |