Google

def doc_type @children.find { |item| item.kind_of? DocType } end