Method: RDoc::Markup::AttributeManager#changed_attribute_by_name
- Defined in:
- lib/rdoc/markup/attribute_manager.rb
#changed_attribute_by_name(current_set, new_set) ⇒ Object
Used by the tests to change attributes by name from current_set
to new_set
119 120 121 122 123 124 125 126 127 128 129 130 |
# File 'lib/rdoc/markup/attribute_manager.rb', line 119 def changed_attribute_by_name current_set, new_set current = new = 0 current_set.each do |name| current |= @attributes.bitmap_for(name) end new_set.each do |name| new |= @attributes.bitmap_for(name) end change_attribute(current, new) end |