Figlet.Linebreaker.split
You're seeing just the function
split
, go back to Figlet.Linebreaker module for more information.
Specs
split( charlist(), font :: Figlet.Font.t(), width :: integer(), opts :: keyword() ) :: {:ok, list()} | {:error, any()}
Any newlines included in the input charlist
will cause a hard break.
charlist
is a character list containing integer codepointsfont
a%Figlet.Font{}
structwidth
an integer representing the character width of the terminalopts
is a keyword list of options.
Options
:overflow
- :trim
, :break
Examples
iex> Figlet.Linebreaker.split('this is a test', font, 4)
['this', 'is a', 'test']