Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/logger.rb,
lib/logger.rb

Instance Method Summary collapse

Instance Method Details

#escapeObject



11
12
13
# File 'lib/logger.rb', line 11

def escape
  TermColor.escape(self)
end

#termcolorObject



16
17
18
# File 'lib/logger.rb', line 16

def termcolor
  TermColor.parse(self.dup.force_encoding(Encoding::ASCII_8BIT))
end