Sha256: 12e54dc4624b01924504aaea63d07645b77f727027f3faf33420ecc9ae81090e
Contents?: true
Size: 864 Bytes
Versions: 5
Compression:
Stored size: 864 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 "script" HTML elements.<br/> # Both from "src" and the text inside the scripts. # # @author: Tasos "Zapotek" Laskos # <tasos.laskos@gmail.com> # <zapotek@segfault.gr> # @version: 0.1.1 # class Scripts < Paths # # Returns an array of paths as plain strings # # @param [Nokogiri] Nokogiri document # # @return [Array<String>] paths # def run( doc ) doc.search( "//script[@src]" ).map { |a| a['src'] } end end end
Version data entries
5 entries across 5 versions & 1 rubygems