module RuboCop::Cop::IgnoredMethodPatterns
This module encapsulates the ability to ignore certain methods when parsing using regex patterns.
Private Instance Methods
ignored_method_pattern?(name)
click to toggle source
# File lib/rubocop/cop/mixin/ignored_method_patterns.rb, line 10 def ignored_method_pattern?(name) ignored_method_patterns.any? { |pattern| Regexp.new(pattern) =~ name } end
ignored_method_patterns()
click to toggle source
# File lib/rubocop/cop/mixin/ignored_method_patterns.rb, line 14 def ignored_method_patterns cop_config.fetch('IgnoredMethodPatterns', []) end