Skip to content
instance method

SyntaxSuggest::CodeLine#to_s

to_s

Renders the given line

Also allows us to represent source code as an array of code lines.

When we have an array of code line elements calling join on the array will call to_s on each element, which essentially converts it back into it’s original source string.