Google

def delete_attribute(key) attr = @attributes.get_attribute(key) attr.remove unless attr.nil? end