Class: Helium::Console::ColorizedString
- Inherits:
-
ColorizedString
- Object
- ColorizedString
- Helium::Console::ColorizedString
- Defined in:
- lib/helium/console/colorized_string.rb
Defined Under Namespace
Modules: Helpers
Instance Method Summary collapse
Instance Method Details
#colorize ⇒ Object
12 13 14 15 16 |
# File 'lib/helium/console/colorized_string.rb', line 12 def colorize(*) return self unless Pry.color super end |
#length ⇒ Object
8 9 10 |
# File 'lib/helium/console/colorized_string.rb', line 8 def length uncolorize.to_s.length end |