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