Method: Nmap::XML::CPE::URL#to_s
- Defined in:
- lib/nmap/xml/cpe/url.rb
#to_s ⇒ String
Converts the CPE URL back into a String.
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/nmap/xml/cpe/url.rb', line 67 def to_s 'cpe:' + [ PARTS.invert[part], vendor, product, version, update, edition, language ].compact.join(':') end |