class SourceAnnotationExtractor

Ruby on Rails 3.0.20

Since v2.2.3 Last seen in v5.2.8.1

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9 v5.2.8.1

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.

Inherits from

Object

Namespace

Classes

Attributes

Methods (defined here)

Methods (inherited)

From Object (26)
From Benchmark (1)
  • self. ms

Type at least 2 characters to search.

↑↓ navigate · open · esc close