class RuboCop::Cop::Sorbet::ConstantsFromStrings
def on_send(node)
def on_send(node) return unless constant_from_string?(node) add_offense( node, location: :selector, message: "Don't use `#{node.method_name}`, it makes the code harder to understand, less editor-friendly, " \ "and impossible to analyze. Replace `#{node.method_name}` with a case/when or a hash." ) end