Sha256: d193fb882d47052084d51db1ab88db35bfd98c1bfc83518140f9db194b93ae06
Contents?: true
Size: 396 Bytes
Versions: 1
Compression:
Stored size: 396 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class Alias < Cop ERROR_MESSAGE = 'Use alias_method instead of alias.' def inspect(file, source, tokens, sexp) each(:alias, sexp) do |s| lineno = s[1][1][1][2].lineno add_offence( :convention, lineno, ERROR_MESSAGE ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.5.0 | lib/rubocop/cop/alias.rb |