Sha256: 8be21ac23cce7397d07b81609d96eda20227e531a1869543a67378c754cf4b96
Contents?: true
Size: 379 Bytes
Versions: 3
Compression:
Stored size: 379 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.2 | lib/nmap/xml/os_match.rb |
ruby-nmap-1.0.1 | lib/nmap/xml/os_match.rb |
ruby-nmap-1.0.0 | lib/nmap/xml/os_match.rb |