Sha256: 28863dea6a3ba44b4df0fe41cbb7497acf0ee04dc304e8ad85269cc28b4769e0
Contents?: true
Size: 409 Bytes
Versions: 2
Compression:
Stored size: 409 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 add_offense(node, :selector) if method_name == :=== end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.19.1 | lib/rubocop/cop/style/case_equality.rb |
rubocop-0.19.0 | lib/rubocop/cop/style/case_equality.rb |