ri > Rails::SourceAnnotationExtractor

📦 Rails::SourceAnnotationExtractor < Object

Implements the logic behind Rails::Command::NotesCommand. See rails notes --help for usage information.

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.

🚀 Quick Reference

Use CaseCommandDescription
List all annotationsrails notesDisplay all TODO, FIXME, OPTIMIZE annotations in the application
Custom annotation tagsrails notes --tag CUSTOMFilter annotations by a specific tag
Show source filesrails notes --annotationsDisplay annotations with file paths and line numbers
Register custom annotation sourceRails::SourceAnnotationExtractor.enumerateEnumerate annotation sources to add custom directories

📋 Class Methods

🔧 Instance Methods

🏷️ Attributes

Rails::SourceAnnotationExtractor
📦 Rails::SourceAnnotationExtractor < Object 🚀 Quick Reference 📋 Class Methods 🔧 Instance Methods 🏷️ Attributes

Generated by phpman v4.9.26-1-g511901d · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-29 12:47 @216.73.217.111
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format