Module: Dsu::Utils

Defined in:
lib/dsu/support/utils.rb

Class Method Summary collapse

Class Method Details

.strip_escapes(escaped_string) ⇒ Object



6
7
8
# File 'lib/dsu/support/utils.rb', line 6

def strip_escapes(escaped_string)
  escaped_string.gsub(/\e\[[0-9;]*[a-zA-Z]/, '')
end