lib/asciidoctor/abstract_node.rb in asciidoctor-2.0.12 vs lib/asciidoctor/abstract_node.rb in asciidoctor-2.0.13
- old
+ new
@@ -214,10 +214,10 @@
def has_role? name
# NOTE center + include? is faster than split + include?
(val = @attributes['role']) ? (%( #{val} ).include? %( #{name} )) : false
end
- # Public: Sets the value of the role attribute on this ndoe.
+ # Public: Sets the value of the role attribute on this node.
#
# names - A single role name, a space-separated String of role names, or an Array of role names
#
# Returns the value of the names argument
def role= names