class RuboCop::Cop::Style::SymbolProc
def on_block(node)
def on_block(node) symbol_proc?(node) do |send_or_super, method| block_method_name = resolve_block_method_name(send_or_super) # TODO: Rails-specific handling that we should probably make # configurable - https://github.com/bbatsov/rubocop/issues/1485 # we should ignore lambdas & procs return if proc_node?(send_or_super) return if %i[lambda proc].include?(block_method_name) return if ignored_method?(block_method_name) offense(node, method, block_method_name) end end