Sha256: 819059380a463f55a4ce919518ffff51bc9e75a2b101a65d5725eff456e15c90
Contents?: true
Size: 318 Bytes
Versions: 83
Compression:
Stored size: 318 Bytes
Contents
# String Extensions In addition the library offers an extension to String class called #ansi, which allows some of the ANSI::Code methods to be called in a more object-oriented fashion. require 'ansi/core' str = "Hello".ansi(:red) + "World".ansi(:blue) str.assert == "\e[31mHello\e[0m\e[34mWorld\e[0m"
Version data entries
83 entries across 41 versions & 13 rubygems