Methods

Bones::Colors

Constants

COLOR_CODES

Public Instance Methods

colorize( str, *args ) click to toggle source
    # File lib/bones/colors.rb, line 44
44:   def colorize( str, *args )
45:     args.each { |name|
46:       code = COLOR_CODES[name]
47:       next if code.nil?
48:       str = "\e[#{code}m#{str}\e[0m"
49:     }
50:     str
51:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.