Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fuel/util/patches.rb
Instance Method Summary collapse
Instance Method Details
#old_size ⇒ Object
7 |
# File 'lib/fuel/util/patches.rb', line 7 alias_method :old_size, :size |
#size ⇒ Object
9 10 11 12 |
# File 'lib/fuel/util/patches.rb', line 9 def size str = self.dup str.gsub(/\e[^m]*m/, '').old_size end |