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.
42 43 44 |
# File 'lib/nmap/xml/cpe.rb', line 42 def cpe each_cpe.to_a end |
#each_cpe {|cpe| ... } ⇒ Enumerator
Parses each Common Platform Enumeration (CPE) String.
26 27 28 29 30 31 32 33 34 |
# File 'lib/nmap/xml/cpe.rb', line 26 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 |