Sha256: 1261ac49fa43bead1c29db14c5ad11f5fb2bccf4efc0864a9258ab4c8a8edf6c
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
# frozen_string_literal: true require_relative '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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | lib/nmap/xml/scripts.rb |