instance method
SyntaxSuggest::CodeLine#to_s
to_s
lib/syntax_suggest/code_line.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/syntax_suggest/code_line.rb, line 133
def to_s
line
end
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.