class MemoryProfiler::Polychrome

Public Instance Methods

line(text) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 15
def line(text)
  cyan(text)
end
path(text) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 7
def path(text)
  blue(text)
end
string(text) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 11
def string(text)
  green(text)
end

Private Instance Methods

bg_black(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 53
def bg_black(str)
  "\033[40m#{str}\033[0m"
end
bg_blue(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 69
def bg_blue(str)
  "\033[44m#{str}\033[0m"
end
bg_brown(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 65
def bg_brown(str)
  "\033[43m#{str}\033[0m"
end
bg_cyan(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 77
def bg_cyan(str)
  "\033[46m#{str}\033[0m"
end
bg_gray(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 81
def bg_gray(str)
  "\033[47m#{str}\033[0m"
end
bg_green(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 61
def bg_green(str)
  "\033[42m#{str}\033[0m"
end
bg_magenta(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 73
def bg_magenta(str)
  "\033[45m#{str}\033[0m"
end
bg_red(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 57
def bg_red(str)
  "\033[41m#{str}\033[0m"
end
black(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 21
def black(str)
  "\033[30m#{str}\033[0m"
end
blue(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 37
def blue(str)
  "\033[34m#{str}\033[0m"
end
bold(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 85
def bold(str)
  "\033[1m#{str}\033[22m"
end
brown(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 33
def brown(str)
  "\033[33m#{str}\033[0m"
end
cyan(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 45
def cyan(str)
  "\033[36m#{str}\033[0m"
end
gray(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 49
def gray(str)
  "\033[37m#{str}\033[0m"
end
green(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 29
def green(str)
  "\033[32m#{str}\033[0m"
end
magenta(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 41
def magenta(str)
  "\033[35m#{str}\033[0m"
end
red(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 25
def red(str)
  "\033[31m#{str}\033[0m"
end
reverse_color(str) click to toggle source
# File lib/memory_profiler/polychrome.rb, line 89
def reverse_color(str)
  "\033[7m#{str}\033[27m"
end