Module: RParallel::ColorHelper

Defined in:
lib/rspec_parallel/color_helper.rb

Instance Method Summary collapse

Instance Method Details

#cyan(text) ⇒ Object



17
18
19
# File 'lib/rspec_parallel/color_helper.rb', line 17

def cyan(text)
  "\e[36m#{text}\e[0m"
end

#green(text) ⇒ Object



9
10
11
# File 'lib/rspec_parallel/color_helper.rb', line 9

def green(text)
  "\e[32m#{text}\e[0m"
end

#red(text) ⇒ Object



5
6
7
# File 'lib/rspec_parallel/color_helper.rb', line 5

def red(text)
  "\e[31m#{text}\e[0m"
end

#yellow(text) ⇒ Object



13
14
15
# File 'lib/rspec_parallel/color_helper.rb', line 13

def yellow(text)
  "\e[33m#{text}\e[0m"
end