Class: I18n::Tasks::Scanners::PatternWithScopeScanner

Inherits:
PatternScanner show all
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

#config

Method Summary

Methods inherited from PatternScanner

#initialize

Methods included from RubyKeyLiterals

#literal_re, #valid_key?

Methods included from OccurrenceFromPosition

#occurrence_from_position

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::PatternScanner