Sha256: 9620ebd366debd2853a119cf8e05b470896b82aa19bf7cb7541076d62cb6d8c6
Contents?: true
Size: 441 Bytes
Versions: 106
Compression:
Stored size: 441 Bytes
Contents
# frozen_string_literal: true module CustomCops # This cop checks for the presence of `method_missing` # # @example # #bad # def method_missing # end # # #good # # not using method missing # class MethodMissing < RuboCop::Cop::Cop MSG = 'Avoid method missing.' def on_def(node) return unless node.method?(:method_missing) add_offense(node) end alias on_defs on_def end end
Version data entries
106 entries across 106 versions & 1 rubygems