Class: ArchDesc
- Inherits:
-
EADElement
- Object
- EADElement
- ArchDesc
- Defined in:
- lib/elements/archdesc.rb
Instance Method Summary collapse
- #current_content ⇒ Object
-
#initialize ⇒ ArchDesc
constructor
A new instance of ArchDesc.
Constructor Details
#initialize ⇒ ArchDesc
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_content ⇒ Object
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 |