class Asciidoctor::AbstractNode

def add_role(name)

Public: A convenience method that adds the given role directly to this node
def add_role(name)
  unless (roles = (@attributes['role'] || '').split(' ')).include? name
    @attributes['role'] = roles.push(name) * ' '
  end
end