Light Mode Dark Mode

Basic Usage

The most basic usage of Paintbrush is with no colorization at all:

subject { paintbrush { 'an uncolorized string' } }

it { eql 'an uncolorized string' }
an uncolorized string

As you can see, a duplicate of the original string is returned intact with no modifications.

The second-most basic usage of Paintbrush is with a single color:

subject { paintbrush { green 'some green text' } }

it { include 'some green text' }
some green text

Documentation generated by rspec-documentation