method

add_line_numbers

v1_9_3_125 - Show latest stable - Class: RDoc::AnyMethod
add_line_numbers(src)
public

Prepend src with line numbers. Relies on the first line of a source code listing having:

# File xxxxx, line dddd

If it has, line numbers are added an ‘, line dddd’ is removed.