Flowdock
method

extract_comment

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: RDoc::Context::Section

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.

extract_comment(comment) public

Extracts the comment for this section from the original comment block. If the first line contains :section:, strip it and use the rest. Otherwise remove lines up to the line containing :section:, and look for those lines again at the end and remove them. This lets us write

# :section: The title
# The body
Show source
Register or log in to add new notes.