lib/asciidoctor/abstract_node.rb in asciidoctor-2.0.8 vs lib/asciidoctor/abstract_node.rb in asciidoctor-2.0.9

- old
+ new

@@ -159,13 +159,13 @@ def set_option name @attributes[%(#{name}-option)] = '' nil end - # Public: Retrieve the Set of option names that are set on this node + # Public: Retrieve the Set of option names that are enabled on this node # # Returns a [Set] of option names - def options + def enabled_options ::Set.new.tap {|accum| @attributes.each_key {|k| accum << (k.slice 0, k.length - 7) if k.to_s.end_with? '-option' } } end # Public: Update the attributes of this node with the new values in # the attributes argument.