Sha256: c0d7d0f1316848ad5dbea4a79d11b8ecd0836c0edb776d37c6d351cf5477d26c
Contents?: true
Size: 411 Bytes
Versions: 14
Compression:
Stored size: 411 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop class NewLambdaLiteral < Cop ERROR_MESSAGE = 'The new lambda literal syntax is preferred in Ruby 1.9.' def inspect(file, source, tokens, sexp) each(:fcall, sexp) do |s| if s[1][0..1] == [:@ident, 'lambda'] add_offence(:convention, s[1][-1].lineno, ERROR_MESSAGE) end end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems