Sha256: 9393006e5704f7cfe9073b4ca6f6c076751624956e58105fe80b072bc73414d8
Contents?: true
Size: 632 Bytes
Versions: 3
Compression:
Stored size: 632 Bytes
Contents
require 'nmap/xml/script' module Nmap class XML # # Mixin that adds methods for parsing `<script>` XML elements. # # @since 1.0.0 # module Scripts # # The output from the NSE script's output and structured data. # # @return [Hash{String => Script}] # The NSE script names and output. # # @since 0.3.0 # def scripts unless @scripts @scripts = {} @node.xpath('script').each do |script| @scripts[script['id']] = Script.new(script) end end return @scripts end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.2 | lib/nmap/xml/scripts.rb |
ruby-nmap-1.0.1 | lib/nmap/xml/scripts.rb |
ruby-nmap-1.0.0 | lib/nmap/xml/scripts.rb |