Type:
Class

Implements the logic behind the rake tasks for annotations like

rake notes
rake notes:optimize

and friends. See rake -T notes and railties/lib/tasks/annotations.rake.

Annotation objects are triplets :line, :tag, :text that represent the line where the annotation lives, its tag, and its text. Note the filename is not stored.

Annotations are looked for in comments and modulus whitespace they have to start with the tag optionally followed by a colon. Everything up to the end of the line (or closing ERB comment tag) is considered to be their text.

new

new(tag) Class Public methods

2015-06-20 00:00:00
display

display(results, options={}) Instance Public methods Prints the mapping from

2015-06-20 00:00:00
enumerate

enumerate(tag, options={}) Class Public methods Prints all annotations with

2015-06-20 00:00:00
find

find(dirs) Instance Public methods Returns a hash that maps filenames under

2015-06-20 00:00:00
extract_annotations_from

extract_annotations_from(file, pattern) Instance Public methods If file

2015-06-20 00:00:00
find_in

find_in(dir) Instance Public methods Returns a hash that maps filenames under

2015-06-20 00:00:00