method

update_attributes

ruby latest stable - Class: RDoc::RI::AnsiFormatter

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_1_378) is shown here.

update_attributes(attr)
private

No documentation available.

# File lib/rdoc/ri/formatter.rb, line 429
  def update_attributes(attr)
    str = "\0033["
    for quality in [ BOLD, ITALIC, CODE]
      unless (attr & quality).zero?
        str << ATTR_MAP[quality]
      end
    end
    @output.print str, "m"
  end