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