class RuboCop::Cop::Style::DocumentDynamicEvalDefinition
def comment_regexp(arg_node)
def comment_regexp(arg_node) # Replace the interpolations with wildcards regexp_parts = arg_node.child_nodes.map do |n| n.begin_type? ? /.+/ : source_to_regexp(n.source) end Regexp.new(regexp_parts.join) end