paintbrush

0.1.3
Light Mode Dark Mode

Usage Without include Paintbrush

Paintbrush is designed to minimize namespace pollution when used with include.

Only one instance method (#paintbrush) is defined on the module, so only one method will be reached by your object’s method resolver.

Paintbrush also uses a separate namespace for its internals, PaintbrushSupport, to minimize adding unwanted constants into an instance’s namespace when using include Paintbrush.

You may still prefer to not include Paintbrush into your namespace. Simply call Paintbrush.paintbrush instead.

subject { Paintbrush.paintbrush { red "I prefer not to #{cyan "include"} Paintbrush" } }

it { is_expected.to include "I prefer not" }
I prefer not to include Paintbrush

Documentation generated by rspec-documentation