Sourceror.to_string
You're seeing just the function
to_string
, go back to Sourceror module for more information.
Specs
Converts a quoted expression to a string.
The comments line number will be ignored and the line number of the associated node will be used when formatting the code.
Options
:line_length
- The max line length for the formatted code.:indent
- how many indentations to insert at the start of each line. Note that this only prepends the indents without checking the indentation of nested blocks. Defaults to0
.:indent_type
- the type of indentation to use. It can be one of:spaces
,:single_space
or:tabs
. Defaults to:spaces
.:format
- if set to:splicing
, if the quoted expression is a list, it will strip the square brackets. This is useful to print a single element of a keyword list.