Sha256: 6a555f166422db7f20a4c6e499a8b5c5890f365137c37ac174dbf40e5211764c
Contents?: true
Size: 390 Bytes
Versions: 22
Compression:
Stored size: 390 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # This module provides a list of methods that are either in the NilClass, # or in the cop's configuration parameter Whitelist. module NilMethods private def nil_methods nil.methods + whitelist end def whitelist cop_config['Whitelist'].map(&:to_sym) end end end end
Version data entries
22 entries across 20 versions & 3 rubygems