module YARD::Templates::Helpers::MethodHelper

def format_lines(object)

Returns:
  • (String) - formats line numbers for source code of an object
def format_lines(object)
  return "" if object.source.nil? || object.line.nil?
  i = -1
  object.source.split(/\n/).map { object.line + (i += 1) }.join("\n")
end