Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_starter/core_ext/string.rb

Overview

Add some ome simple colorization methods for formatting console output.

Instance Method Summary collapse

Instance Method Details

#highlightObject



3
4
5
# File 'lib/rspec_starter/core_ext/string.rb', line 3

def highlight
  colorize(:light_blue)
end

#warningObject



7
8
9
# File 'lib/rspec_starter/core_ext/string.rb', line 7

def warning
  colorize(:yellow)
end