instance method annotations

Ruby on Rails 7.2.3

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

annotations(file)

No documentation comment.

Parameters

file req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close