Class: OpenscapParser::TailoringFile
- Includes:
- Tailorings
- Defined in:
- lib/openscap_parser/tailoring_file.rb
Overview
A class to represent a tailoring XmlFile
Instance Attribute Summary
Attributes inherited from XmlNode
Instance Method Summary collapse
Methods included from Tailorings
Methods inherited from XmlFile
Methods inherited from XmlNode
#initialize, #parsed_xml, #text, #xpath_node, #xpath_nodes
Constructor Details
This class inherits a constructor from OpenscapParser::XmlFile
Instance Method Details
#valid? ⇒ Boolean
10 11 12 13 |
# File 'lib/openscap_parser/tailoring_file.rb', line 10 def valid? return true if @parsed_xml.root.name == 'Tailoring' && namespaces.keys.include?('xmlns:xccdf') false end |