Class: Arachni::Parser::Extractors::Areas
- Defined in:
- components/path_extractors/areas.rb
Overview
Extracts paths from anchor elements.
Instance Attribute Summary
Attributes inherited from Base
#downcased_html, #html, #parser
Instance Method Summary collapse
Methods inherited from Base
#check_for?, #document, #initialize
Constructor Details
This class inherits a constructor from Arachni::Parser::Extractors::Base
Instance Method Details
#run ⇒ Object
14 15 16 17 18 |
# File 'components/path_extractors/areas.rb', line 14 def run return [] if !check_for?( 'area' ) || !check_for?( 'href' ) document.nodes_by_name( 'area' ).map { |a| a['href'] } end |