Sha256: bc0ae3cf97e07ef460fd59da25401e046a69d7785fe926632802fb9af5f93d3a
Contents?: true
Size: 802 Bytes
Versions: 5
Compression:
Stored size: 802 Bytes
Contents
=begin Arachni Copyright (c) 2010-2012 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com> This is free software; you can copy and distribute and modify this program under the term of the GPL v2.0 License (See LICENSE file for details) =end module Arachni::Parser::Extractors # # Extracts paths from "link" HTML elements. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1 # class Links < Paths # # Returns an array of paths as plain strings # # @param [Nokogiri] Nokogiri document # # @return [Array<String>] paths # def run( doc ) doc.search( "//link[@href]" ).map { |a| a['href'] } end end end
Version data entries
5 entries across 5 versions & 1 rubygems