Class: AbideDevUtils::XCCDF::Parser::Objects::Title

Inherits:
ElementBase
  • Object
show all
Defined in:
lib/abide_dev_utils/xccdf/parser/objects.rb

Overview

Class for an XCCDF element title

Instance Attribute Summary

Attributes inherited from ElementBase

#child_labels, #children, #link_labels

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ElementBase

#add_link, #add_links, #all_values, #label, #method_missing, #respond_to_missing?, #xccdf_type, xmlns

Methods included from Helpers::XPath

#find_element

Methods included from Helpers::ElementChildren

#search_children

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) ⇒ Title

Returns a new instance of Title.



217
218
219
220
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 217

def initialize(element)
  super
  add_child(ShortText, 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

.xpathObject



222
223
224
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 222

def self.xpath
  'title'
end

Instance Method Details

#to_sObject



226
227
228
# File 'lib/abide_dev_utils/xccdf/parser/objects.rb', line 226

def to_s
  search_children.find_child_by_class(ShortText).to_s
end