Sha256: 5671be979e3506990868e9379271bb42fd63e99a7434b27069b9ff08d86d2874
Contents?: true
Size: 410 Bytes
Versions: 1
Compression:
Stored size: 410 Bytes
Contents
# frozen_string_literal: true module Nmap class XML # # Represents a match for a specific {OS}. # # @since 1.0.0 # class OSMatch < Struct.new(:name, :accuracy) # # Converts the OS match to a String. # # @return [String] # The String form of the OS match. # def to_s "#{self.name} (#{self.accuracy}%)" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | lib/nmap/xml/os_match.rb |