instance method
annotations
Ruby on Rails 7.2.3
Since v7.1.6Signature
annotations(file)
No documentation comment.
Parameters
-
filereq
Source
# File railties/lib/rails/source_annotation_extractor.rb, line 33
def annotations(file)
contents = File.read(file, encoding: Encoding::BINARY)
parser = Parser.new(contents, pattern: pattern).tap(&:parse)
parser.error? ? [] : parser.comments
end
Defined in railties/lib/rails/source_annotation_extractor.rb line 33
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::SourceAnnotationExtractor::ParserExtractor