Class: ArchDesc

Inherits:
EADElement
  • Object
show all
Defined in:
lib/elements/archdesc.rb

Instance Method Summary collapse

Constructor Details

#initializeArchDesc

Returns a new instance of ArchDesc.



14
15
16
# File 'lib/elements/archdesc.rb', line 14

def initialize
  @level = "fonds"
end

Instance Method Details

#current_contentObject



18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/elements/archdesc.rb', line 18

def current_content
  text = create_open_tag+"\n"
  each_subel do |name|
    if not subel_mult?(name)
      value = send(name)
      if value
        doc = REXML::Document.new
        xml = value.create_xml(doc)
        doc.write(text,2)
      end
    end
  end
  text
end