Class: Enterprisifier::Schema::Elements::AnnotationElement

Inherits:
BaseElement
  • Object
show all
Defined in:
lib/enterprisifier/schema/elements/annotation.rb

Instance Attribute Summary

Attributes inherited from BaseElement

#attributes, #children, #default_namespace, #namespaces, #parent, #text

Instance Method Summary collapse

Methods inherited from BaseElement

#add_child, #add_text, #annotation, #base, #each_child, #has_child?, #has_children?, #initialize, map_attribute, #name, #read_attribute, #ref, register, #registered_as, #root, #rootable?, #update

Constructor Details

This class inherits a constructor from Enterprisifier::Schema::BaseElement

Instance Method Details

#documentationObject



9
10
11
12
13
14
15
# File 'lib/enterprisifier/schema/elements/annotation.rb', line 9

def documentation
  return @documentation if defined?(@documentation)
  docs = children.inject('') do |doc,child|
    doc << "#{child.text}\n"
  end
  @documentation = docs.blank? ? nil : docs
end