Sha256: 14b5a4ac51d8d68fbe9bdfaaa70436cbdf0000907d1f58566306efb77f1f7a7e
Contents?: true
Size: 455 Bytes
Versions: 4
Compression:
Stored size: 455 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # This cop checks for uses of the case equality operator(===). class CaseEquality < Cop MSG = 'Avoid the use of the case equality operator(===).' def on_send(node) _receiver, method_name, *_args = *node if method_name == :=== add_offence(:convention, node.loc.selector, MSG) end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems