module Nmap class XML # # Wraps a `script` XML element. # # @since 1.0.0 # class Script # # Initializes a new Script object. # # @param [Nokogiri::XML::Node] node # The XML node that contains the host information. # def initialize(node) @node = node end # # The ID of the NSE script. # # @return [String] # def id @id ||= @node['id'] end # # The text output from the NSE script. # # @return [String] # def output @output ||= @node['output'] end # # Parses the structured data within the `