Wraps a Prettifier
.
Wraps a Prettifier
.
This class exists so that instances of PrettifierConfig
can be made implicit instead
of Prettifer
. Because Prettifier
is a Any => String
,
making it implicit could result in unintentional applications.
the configured Prettifier
Implicit class that adds a pretty
method to any object.
Implicit class that adds a pretty
method to any object.
The constructor of this class, besides taking an object o
to prettify,
also takes an implicit PrettifierConfig
that the pretty
method will use to prettify the
object.
An implicit PrettifierConfig
that contains a Prettifier.default
.
An implicit PrettifierConfig
that contains a Prettifier.default
.
Subclasses can override this method with a different implicit method to have pretty
use a different Prettifier
.
Provides an implicit conversion that enables
pretty
to be invoked on any object, to transform that object into aString
representation.