class I18nLinter::Rules::Logger
Constants
- LOGGER_IDENT
Public Instance Methods
check(tokens)
click to toggle source
# File lib/i18n_linter/rules/logger.rb, line 8 def check(tokens) command_or_method(tokens) && I18nLinter::Digger.new(:@ident).find([LOGGER_IDENT], tokens[1]) end
Private Instance Methods
command_or_method(tokens)
click to toggle source
# File lib/i18n_linter/rules/logger.rb, line 14 def command_or_method(tokens) %i[command_call method_add_block method_add_arg].include?(tokens[0]) end