method

update_attributes

ruby latest stable - Class: RI::AnsiFormatter

Method deprecated or moved

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

update_attributes(attr)
private

No documentation available.

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