Google

def remove @element.attributes.delete self.name unless @element.nil? end