Sha256: 2b9d5743f99253ec2c871b4668355fd7d70d3fd2e6942fb9848055f2926eeaca
Contents?: true
Size: 312 Bytes
Versions: 18
Compression:
Stored size: 312 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
18 entries across 18 versions & 5 rubygems