class Asciidoctor::AbstractNode
def attr name, default_value = nil, fallback_name = nil
this node (default: same as name).
fallback_name - The String or Symbol of the attribute to resolve on the Document if the attribute is not found on
default_value - The Object value to return if the attribute is not found (default: nil).
name - The String or Symbol name of the attribute to resolve.
attribute on the Document node and return its value, if found. Otherwise, return the default value (default: nil).
Otherwise, if fallback_name is set (default: same as name) and this node is not the Document node, look for that
Look for the specified attribute in the attributes on this node and return the value of the attribute, if found.
and this node is not the Document node, get the value of the specified attribute from the Document node.
Public: Get the value of the specified attribute. If the attribute is not found on this node, fallback_name is set,
def attr name, default_value = nil, fallback_name = nil @attributes[name.to_s] || (fallback_name && @parent && @document.attributes[(fallback_name == true ? name : fallback_name).to_s] || default_value) end