Class: I18nLinter::Rules::Scope
- Inherits:
-
Object
- Object
- I18nLinter::Rules::Scope
- Defined in:
- lib/i18n_linter/rules/scope.rb
Constant Summary collapse
- SCOPE_IDENT =
'scope'
Instance Method Summary collapse
Instance Method Details
#check(tokens) ⇒ Object
8 9 10 |
# File 'lib/i18n_linter/rules/scope.rb', line 8 def check(tokens) tokens[0] == :command && I18nLinter::Digger.new(:@ident).find([SCOPE_IDENT], tokens[1]) end |