Method: BaseCodeAI#lines_to_s
- Defined in:
- lib/asker/ai/code/base_code_ai.rb
#lines_to_s(lines) ⇒ Object
49 50 51 52 53 54 55 |
# File 'lib/asker/ai/code/base_code_ai.rb', line 49 def lines_to_s(lines) out = "" lines.each_with_index do |line, index| out << "%2d: #{line}\n" % (index + 1) end out end |