Parent

RDoc::Markup::Attribute

We manage a set of attributes. Each attribute has a symbol name and a bit value.

Constants

SPECIAL

Special attribute type. See RDoc::Markup#add_special

Public Class Methods

as_string(bitmap) click to toggle source
    # File lib/rdoc/markup/inline.rb, line 27
27:     def self.as_string(bitmap)
28:       return "none" if bitmap.zero?
29:       res = []
30:       @@name_to_bitmap.each do |name, bit|
31:         res << name if (bitmap & bit) != 0
32:       end
33:       res.join(",")
34:     end
bitmap_for(name) click to toggle source
    # File lib/rdoc/markup/inline.rb, line 17
17:     def self.bitmap_for(name)
18:       bitmap = @@name_to_bitmap[name]
19:       unless bitmap then
20:         bitmap = @@next_bitmap
21:         @@next_bitmap <<= 1
22:         @@name_to_bitmap[name] = bitmap
23:       end
24:       bitmap
25:     end
each_name_of(bitmap) click to toggle source
    # File lib/rdoc/markup/inline.rb, line 36
36:     def self.each_name_of(bitmap)
37:       @@name_to_bitmap.each do |name, bit|
38:         next if bit == SPECIAL
39:         yield name.to_s if (bitmap & bit) != 0
40:       end
41:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.