# File lib/asciidoctor/abstract_node.rb, line 192
  def role?(expect = nil)
    if expect
      expect == (@attributes['role'] || @document.attributes['role'])
    else
      @attributes.has_key?('role') || @document.attributes.has_key?('role')
    end
  end