paintbrush

0.1.3
Light Mode Dark Mode

Basic Usage

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

subject { paintbrush { 'an uncolorized string' } }

it { is_expected.to 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 { is_expected.to include 'some green text' }
some green text

Documentation generated by rspec-documentation