# ri > Rails::SourceAnnotationExtractor

## [Rails::SourceAnnotationExtractor](https://www.chedong.com/phpMan.php/perldoc/Rails%3A%3ASourceAnnotationExtractor/markdown) < Object

(from /home/chedong/.local/share/rdoc)
------------------------------------------------------------------------
Implements the logic behind [Rails::Command::NotesCommand](https://www.chedong.com/phpMan.php/perldoc/Rails%3A%3ACommand%3A%3ANotesCommand/markdown). See rails
notes --help for usage information.

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.
------------------------------------------------------------------------
## Class methods:

  enumerate
  new

## Instance methods:

  display
  extract_annotations_from
  find
  find_in
  tag

## Attributes:

  attr_reader tag

