Class: I18n::Tasks::Scanners::RubyScanner

Inherits:
FileScanner show all
Includes:
AST::Sexp, Logging, RelativeKeys
Defined in:
lib/i18n/tasks/scanners/ruby_scanner.rb

Overview

Scan for I18n.translate calls using whitequark/parser primarily and Prism if configured.

Direct Known Subclasses

ErbAstScanner, PrismScanner, RubyAstScanner

Constant Summary collapse

MAGIC_COMMENT_SKIP_PRISM =
"i18n-tasks-skip-prism"
MAGIC_COMMENT_PREFIX =
/\A.\s*i18n-tasks-use\s+/

Constants included from Logging

Logging::MUTEX, Logging::PROGRAM_NAME

Instance Attribute Summary

Attributes inherited from FileScanner

#config

Method Summary

Methods included from Logging

log_error, log_stderr, log_verbose, log_warn, program_name, warn_deprecated

Methods included from RelativeKeys

#absolute_key

Methods inherited from FileScanner

#initialize, #keys

Methods inherited from Scanner

#keys

Constructor Details

This class inherits a constructor from I18n::Tasks::Scanners::FileScanner