Class: I18nLinter::Rules::Puts

Inherits:
Object
  • Object
show all
Defined in:
lib/i18n_linter/rules/puts.rb

Constant Summary collapse

PUTS_IDENT =
'puts'

Instance Method Summary collapse

Instance Method Details

#check(tokens) ⇒ Object



8
9
10
# 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