Class: String
Overview
frozen_string_literal: true
Instance Method Summary collapse
-
#uncolor ⇒ Object
Remove ANSI color codes.
Instance Method Details
#uncolor ⇒ Object
Remove ANSI color codes.
42 43 44 |
# File 'lib/amazing_print/core_ext/string.rb', line 42 def uncolor gsub(/\e\[[0-9;]*m/, '') end |