# File lib/rd/element.rb, line 108 def make_child(child_class, *args_of_new, &block) child = child_class.new(*args_of_new) if self.temporary_document_structure self.add_child_under_document_struct(child, self.temporary_document_structure) child.build(self.temporary_document_structure, &block) if block_given? else self.add_child(child) child.build(&block) if block_given? end child end