Sha256: 7969f9c551510bebfa86aeae0b4e8bc487d5ea232d3ef27dd5cc9f631bd1a489
Contents?: true
Size: 472 Bytes
Versions: 3
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop module Style # This cop checks for the use of the send method. class Send < Cop MSG = 'Prefer `Object#__send__` or `Object#public_send` to ' \ '`send`.'.freeze def on_send(node) _receiver, method_name, *args = *node return unless method_name == :send && !args.empty? add_offense(node, :selector) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.45.0 | lib/rubocop/cop/style/send.rb |
rubocop-0.44.1 | lib/rubocop/cop/style/send.rb |
rubocop-0.44.0 | lib/rubocop/cop/style/send.rb |