method

print_wrapped

print_wrapped(message, options = {})
public

Prints a long string, word-wrapping the text to the current width of the terminal display. Ideal for printing heredocs.

Parameters

String

Options

indent

Indent each line of the printed paragraph by indent value.