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