method indent
Documentation for method indent
assembled from the following types:
class Str
From Str
(Str) method indent
multi method indent(Int where )multi method indent(Int where )multi method indent( where )
Indents each line of the string by $steps
. If $steps
is negative, it outdents instead. If $steps
is *
, then the string is outdented to the margin:
" indented by 2 spaces\n indented even more".indent(*)eq "indented by 2 spaces\n indented even more"