Method: RDoc::Markup::AttributeManager#change_attribute

Defined in:
lib/rdoc/markup/attribute_manager.rb

#change_attribute(current, new) ⇒ Object

Changes the current attribute from current to new



110
111
112
113
# File 'lib/rdoc/markup/attribute_manager.rb', line 110

def change_attribute current, new
  diff = current ^ new
  attribute(new & diff, current & diff)
end