Class: AbideDevUtils::XCCDF::Parser::Objects::Ident
- Inherits:
-
ElementBase
- Object
- ElementBase
- AbideDevUtils::XCCDF::Parser::Objects::Ident
- Defined in:
- lib/abide_dev_utils/xccdf/parser/objects.rb
Overview
Class for XCCDF rule ident
Instance Attribute Summary
Attributes inherited from ElementBase
#child_labels, #children, #link_labels
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(element) ⇒ Ident
constructor
A new instance of Ident.
- #to_s ⇒ Object
Methods inherited from ElementBase
#add_link, #add_links, #all_values, #label, #method_missing, #respond_to_missing?, #xccdf_type, xmlns
Methods included from Helpers::XPath
Methods included from Helpers::ElementChildren
Methods included from DigestObject
#digest, #digest_equal?, #digest_similarity, #digestable_instance_variables, #exclude_from_digest, #labeled_self_digest, #non_compatible?, #normalize_exclusion, #sorted_digest_parts, #split_labeled_digest
Constructor Details
#initialize(element) ⇒ Ident
Returns a new instance of Ident.
406 407 408 409 410 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 406 def initialize(element) super with_safe_methods { add_child(ControlURI, element) } with_safe_methods { add_child(System, element) } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class AbideDevUtils::XCCDF::Parser::Objects::ElementBase
Class Method Details
.xpath ⇒ Object
412 413 414 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 412 def self.xpath 'ident' end |
Instance Method Details
#to_s ⇒ Object
416 417 418 |
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 416 def to_s @children.map(&:to_s).join('|') end |