Class: I18n::Tasks::Scanners::PatternWithScopeScanner
- Inherits:
-
PatternScanner
- Object
- Scanner
- FileScanner
- PatternScanner
- I18n::Tasks::Scanners::PatternWithScopeScanner
- Defined in:
- lib/i18n/tasks/scanners/pattern_with_scope_scanner.rb
Overview
Scans for I18n.t(key, scope: …) usages both scope: “literal”, and scope: [:array, :of, ‘literals’] forms are supported Caveat: scope is only detected when it is the first argument
Constant Summary
Constants inherited from PatternScanner
I18n::Tasks::Scanners::PatternScanner::IGNORE_LINES, I18n::Tasks::Scanners::PatternScanner::TRANSLATE_CALL_RE
Constants included from RubyKeyLiterals
RubyKeyLiterals::LITERAL_RE, RubyKeyLiterals::VALID_KEY_CHARS, RubyKeyLiterals::VALID_KEY_RE
Instance Attribute Summary
Attributes inherited from FileScanner
Method Summary
Methods inherited from PatternScanner
Methods included from RubyKeyLiterals
Methods included from OccurrenceFromPosition
Methods included from RelativeKeys
Methods inherited from FileScanner
Methods inherited from Scanner
Constructor Details
This class inherits a constructor from I18n::Tasks::Scanners::PatternScanner