class Formatador

def format(string)

def format(string)
  if STDOUT.tty?
    string.gsub(FORMAT_REGEX) { "\e[#{STYLES[$1.to_sym]}m" }.gsub(INDENT_REGEX) { indentation }
  else
    string.gsub(FORMAT_REGEX, '').gsub(INDENT_REGEX) { indentation }
  end
end