class RuboCop::Cop::Performance::RedundantEqualityComparisonBlock

def use_equality_comparison_block?(block_body)

def use_equality_comparison_block?(block_body)
  return false unless block_body.send_type?
  method_name = block_body.method_name
  COMPARISON_METHODS.include?(method_name) || (!allow_regexp_match? && REGEXP_METHODS.include?(method_name))
end