# File lib/rd/element.rb, line 66 def add_child_under_document_struct(child, document_struct) if document_struct.is_valid?(self, child) push_to_children(child) else raise ArgumentError, "mismatched document structure, #{self} <-/- #{child}." end return self end