class Asciidoctor::AbstractNode

def set_attr name, value, overwrite = true

Returns a [Boolean] indicating whether the assignment was performed

if currently present in the attributes Hash (default: true)
overwrite - A Boolean indicating whether to assign the attribute
value - The Object value to assign to the attribute
name - The String attribute name to assign

Public: Assign the value to the attribute name for the current node.
def set_attr name, value, overwrite = true
  if overwrite == false && (@attributes.key? name)
    false
  else
    @attributes[name] = value
    true
  end
end