Class: Helium::Console::ColorizedString

Inherits:
ColorizedString
  • Object
show all
Defined in:
lib/helium/console/colorized_string.rb

Defined Under Namespace

Modules: Helpers

Instance Method Summary collapse

Instance Method Details

#colorizeObject



12
13
14
15
16
# File 'lib/helium/console/colorized_string.rb', line 12

def colorize(*)
  return self unless Pry.color

  super
end

#lengthObject



8
9
10
# File 'lib/helium/console/colorized_string.rb', line 8

def length
  uncolorize.to_s.length
end