I have a multi-line array of strings through a percentage string, for example:
array = %w(test
foo
bar)
I want to add a comment to the post foo, something like
array = %w(test
foo
bar)
Is there a way to do this without converting it to a base array as follows?
array = ['test',
# TODO: Remove this line after fix #1
'foo',
'bar']
source
share