class Asciidoctor::AbstractNode

def roles

Returns the role names as a String [Array], which is empty if the role attribute is absent on this node.

Public: Retrieves the String role names for this node as an Array.
def roles
  (val = @attributes['role']) ? val.split : []
end