Google

def expanded_name '' #d = doc_type #d ? d.name : "UNDEFINED" end