PrettyPrint

PrettyPrint

A class consisting of print styling functions (returns a string, which is then, presumably passed to a print function):

for headlines (adding ==== below as well) for mini-headlines (adding ---- below as well)

Constructor

new PrettyPrint()

Source:

Methods

arrow(str)

Source:

Add an "> " prefix to the argument and return.

Parameters:
Name Type Description
str *

headline(str, symbol)

Source:

Add a headline to the argument and return. The headline is as long as the argument in characters.

Parameters:
Name Type Description
str *
symbol string

Symbol to repeat as a headline

mainheadline(str)

Source:

Add a main headline to the argument and return, all consisting of "="s.

Parameters:
Name Type Description
str *

miniheadline(str)

Source:

Add a main headline to the argument and return, all consisting of "-"s.

Parameters:
Name Type Description
str *