Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby_rich/panel.rb
Overview
Extend String to remove ANSI codes for alignment
Instance Method Summary collapse
Instance Method Details
#uncolorize ⇒ Object
203 204 205 |
# File 'lib/ruby_rich/panel.rb', line 203 def uncolorize gsub(/\e\[[0-9;]*m/, '') end |