Method: RDoc::Markup::Attributes#bitmap_for
- Defined in:
- lib/rdoc/markup/attributes.rb
#bitmap_for(name) ⇒ Object
Returns a unique bit for name
28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/rdoc/markup/attributes.rb', line 28 def bitmap_for name bitmap = @name_to_bitmap.assoc name unless bitmap then bitmap = @next_bitmap @next_bitmap <<= 1 @name_to_bitmap << [name, bitmap] else bitmap = bitmap.last end bitmap end |