# File lib/asciidoctor/abstract_node.rb, line 92
  def attr(name, default_value = nil, inherit = true)
    name = name.to_s if ::Symbol === name
    inherit = false if self == @document
    if inherit
      @attributes[name] || @document.attributes[name] || default_value
    else
      @attributes[name] || default_value
    end
  end