Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/wafoo/ext/string.rb

Instance Method Summary collapse

Instance Method Details

#to_error_messageObject



6
7
8
# File 'lib/wafoo/ext/string.rb', line 6

def to_error_message
  "\e[31m" + self + "\e[0m"
end

#to_info_messageObject



10
11
12
# File 'lib/wafoo/ext/string.rb', line 10

def to_info_message
  "\e[36m" + self + "\e[0m"
end

#to_ok_messageObject



2
3
4
# File 'lib/wafoo/ext/string.rb', line 2

def to_ok_message
  "\e[32m" + self + "\e[0m"
end