Class: Worte::Printer::Colorized

Inherits:
Simple
  • Object
show all
Defined in:
lib/worte/printer/colorized.rb

Instance Method Summary collapse

Methods inherited from Simple

#print

Instance Method Details

#error_marker(length) ⇒ Object



6
7
8
# File 'lib/worte/printer/colorized.rb', line 6

def error_marker(length)
  "\e[31m" + ('^' * length) + "\e[0m"
end