class String
monkey patch in some color effects string methods
Public Instance Methods
black()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 13 def black "\033[30m#{self}\033[0m" end
bold()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 9 def bold "\033[1m#{self}\033[22m" end
camel_case()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 41 def camel_case return self if self !~ /_/ && self =~ /[A-Z]+.*/ split('_').map(&:capitalize).join end
cyan()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 21 def cyan "\033[36m#{self}\033[0m" end
fatal()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 33 def fatal red end
green()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 17 def green "\033[32m#{self}\033[0m" end
info()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 37 def info green end
red()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 5 def red "\033[31m#{self}\033[0m" end
warning()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 29 def warning yellow end
yellow()
click to toggle source
# File lib/puppet-debugger/monkey_patches.rb, line 25 def yellow "\033[33m#{self}\033[0m" end