{"record":{"id":"4c906b6008324f9b","repo":"flippercloud/flipper","slug":"name-must-be-a-string-or-symbol","errorCode":null,"errorMessage":"#{name} must be a String or Symbol","messagePattern":"#(.+?) must be a String or Symbol","errorType":"exception","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/flipper/dsl.rb","lineNumber":222,"sourceCode":"    end\n\n    # Public: Remove a feature.\n    #\n    # name - The String or Symbol name of the feature.\n    #\n    # Returns result of remove.\n    def remove(name)\n      feature(name).remove\n    end\n\n    # Public: Access a feature instance by name.\n    #\n    # name - The String or Symbol name of the feature.\n    #\n    # Returns an instance of Flipper::Feature.\n    def feature(name)\n      if !name.is_a?(String) && !name.is_a?(Symbol)\n        raise ArgumentError, \"#{name} must be a String or Symbol\"\n      end\n\n      @memoized_features.compute_if_absent(name.to_sym) do\n        Feature.new(name, @adapter, instrumenter: instrumenter)\n      end\n    end\n\n    # Public: Preload the features with the given names.\n    #\n    # names - An Array of String or Symbol names of the features.\n    #\n    # Returns an Array of Flipper::Feature.\n    def preload(names)\n      features = names.map { |name| feature(name) }\n      @adapter.get_multi(features)\n      features\n    end\n","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/flippercloud/flipper/blob/1f86de3ec91521585b156445e156642938b19cb0/lib/flipper/dsl.rb#L204-L240","documentation":"Error \"#{name} must be a String or Symbol\" thrown in flippercloud/flipper.","triggerScenarios":"Thrown at lib/flipper/dsl.rb:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the feature name as a String or Symbol, e.g. Flipper[:search] or Flipper['search']","Convert the object with to_s or to_sym before calling Flipper methods","Check for a nil or object being passed where the feature name should be"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1f86de3ec91521585b156445e156642938b19cb0","analyzedAt":"2026-08-23T04:36:09.896Z","schemaVersion":2},"datasetVersion":"2026-08-23T08:06:27.607Z"}