Module: Nmap::XML::CPE
Overview
Mixins that adds methods for parsing Common Platform Enumeration (CPE) information.
Defined Under Namespace
Classes: URL
Instance Method Summary collapse
-
#cpe ⇒ Array<URL>
Parses each Common Platform Enumeration (CPE) String.
-
#each_cpe {|cpe| ... } ⇒ Enumerator
Parses each Common Platform Enumeration (CPE) String.
Instance Method Details
#cpe ⇒ Array<URL>
Parses each Common Platform Enumeration (CPE) String.
44 45 46 |
# File 'lib/nmap/xml/cpe.rb', line 44 def cpe each_cpe.to_a end |
#each_cpe {|cpe| ... } ⇒ Enumerator
Parses each Common Platform Enumeration (CPE) String.
28 29 30 31 32 33 34 35 36 |
# File 'lib/nmap/xml/cpe.rb', line 28 def each_cpe return enum_for(__method__) unless block_given? @node.xpath('cpe').each do |cpe| yield URL.parse(cpe.inner_text) end return self end |