Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_rich/panel.rb

Overview

Extend String to remove ANSI codes for alignment

Instance Method Summary collapse

Instance Method Details

#uncolorizeObject



203
204
205
# File 'lib/ruby_rich/panel.rb', line 203

def uncolorize
    gsub(/\e\[[0-9;]*m/, '')
end