Sha256: 4350caea2ec230dab43873bcb0e7690a9c42fdb52b9ce13973407818234a441e
Contents?: true
Size: 382 Bytes
Versions: 15
Compression:
Stored size: 382 Bytes
Contents
module ::RSpec::Core::Formatters::ConsoleCodes def wrap(text, code_or_symbol) if RSpec.configuration.color_enabled? # Need to escape the \e differently in JS and can't use string interpolation #"\e[#{console_code_for(code_or_symbol)}m#{text}\e[0m" "\033" + "[#{console_code_for(code_or_symbol)}m#{text}" +"\033" + '[0m' else text end end end
Version data entries
15 entries across 15 versions & 2 rubygems