class method
self.enumerate
Ruby on Rails 3.1.12
Since v2.2.3 Last seen in v5.2.8.1Signature
self.enumerate(tag, options={})
Prints all annotations with tag tag under the root directories app, lib, and test (recursively). Only filenames with extension .builder, .rb, .rxml, .rhtml, or .erb are taken into account. The options hash is passed to each annotation’s to_s.
This class method is the single entry point for the rake tasks.
Parameters
-
tagreq -
optionsopt = {}
Source
# File railties/lib/rails/source_annotation_extractor.rb, line 37
def self.enumerate(tag, options={})
extractor = new(tag)
extractor.display(extractor.find, options)
end
Defined in railties/lib/rails/source_annotation_extractor.rb line 37
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in SourceAnnotationExtractor