Method: String#length
- Defined in:
- lib/ectoplasm.rb
#length ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/ectoplasm.rb', line 37 def length m = /\e\[\d{2}m(.*)\e\[0m/.match self return self.chars.count - 9 if m self.chars.count end |
37 38 39 40 41 42 43 |
# File 'lib/ectoplasm.rb', line 37 def length m = /\e\[\d{2}m(.*)\e\[0m/.match self return self.chars.count - 9 if m self.chars.count end |