Sha256: 8f5b9c285556d951e427e89e1e98bf748a6ca709da56e49890b09f0268e2f373
Contents?: true
Size: 480 Bytes
Versions: 5
Compression:
Stored size: 480 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_node_matcher :sending?, '(send _ :send ...)' def on_send(node) return unless sending?(node) && node.arguments? add_offense(node, :selector) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems