method

add_line_numbers

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: MethodAttr

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

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 this comment then line numbers are added to src and the , line dddd portion of the comment is removed.

Show source
Register or log in to add new notes.