# File lib/asciidoctor/abstract_node.rb, line 206 def has_role?(name) # NOTE center + include? is faster than split + include? (val = @attributes['role'] || @document.attributes['role']).nil_or_empty? ? false : %( #{val} ).include?(%( #{name} )) end