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