Method: RDoc::Markup::AttributeManager#add_html

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

#add_html(tag, name, exclusive = false) ⇒ Object

Adds a markup class with name for words surrounded by HTML tag tag. To process emphasis tags:

am.add_html 'em', :EM


286
287
288
289
290
# File 'lib/rdoc/markup/attribute_manager.rb', line 286

def add_html(tag, name, exclusive = false)
  bitmap = @attributes.bitmap_for name
  @html_tags[tag.downcase] = bitmap
  @exclusive_bitmap |= bitmap if exclusive
end