Class: I18nLinter::Rules::EnvironmentVariable
- Inherits:
-
Object
- Object
- I18nLinter::Rules::EnvironmentVariable
- Defined in:
- lib/i18n_linter/rules/environment_variable.rb
Constant Summary collapse
- ENV_CONST =
'ENV'
Instance Method Summary collapse
Instance Method Details
#check(tokens) ⇒ Object
8 9 10 |
# File 'lib/i18n_linter/rules/environment_variable.rb', line 8 def check(tokens) reference_or_method(tokens) && I18nLinter::Digger.new(:@const).find([ENV_CONST], tokens[1]) end |