Method: RDoc::Markup::AttributeManager#display_attributes

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

#display_attributesObject

Debug method that prints a string along with its attributes



329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/rdoc/markup/attribute_manager.rb', line 329

def display_attributes
  puts
  puts @str.tr(NULL, "!")
  bit = 1
  16.times do |bno|
    line = ""
    @str.length.times do |i|
      if (@attrs[i] & bit) == 0
        line << " "
      else
        if bno.zero?
          line << "S"
        else
          line << ("%d" % (bno+1))
        end
      end
    end
    puts(line) unless line =~ /^ *$/
    bit <<= 1
  end
end