class Asciidoctor::Document

def delete_attribute(name)

returns true if the attribute was deleted, false if it was not because it's locked

name - the String attribute name

If the attribute is locked, false is returned. Otherwise, the attribute is deleted.

Public: Delete the specified attribute from the document if the name is not locked
def delete_attribute(name)
  if attribute_locked?(name)
    false
  else
    @attributes.delete(name)
    @attributes_modified << name
    true
  end
end