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