class SourceAnnotationExtractor
Ruby on Rails 4.1.16
Since v2.2.3 Last seen in v5.2.8.1Implements 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
Namespace
Classes
Attributes
Methods (defined here)
Methods (inherited)
From Object (22)
- # <
- # acts_like?
- # blank?
- # create_fixtures
- # deep_dup
- # destroy
- # duplicable?
- # html_safe?
- # in?
- # instance_values
- # instance_variable_names
- # presence
- # presence_in
- # present?
- # to_json_with_active_support_encoder
- # to_param
- # to_query
- # try
- # try!
- # unescape
- # with_options
- self. table_name_prefix