{"record":{"id":"8a8a54a85ca8702f","repo":"pry/pry","slug":"self-class-name-value-is-deprecated","errorCode":null,"errorMessage":"`#{self.class}[:#{@name}][:value]` is deprecated. Use `#{self.class}#prompt_procs` instead or an instance of `#{self.class}` directly","messagePattern":"`#(.+?)\\[:#(.+?)\\]\\[:value\\]` is deprecated\\. Use `#(.+?)#prompt_procs` instead or an instance of `#(.+?)` directly","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/pry/prompt.rb","lineNumber":144,"sourceCode":"    end\n\n    # @return [Proc] the proc which builds the prompt when in the middle of an\n    #   expression such as open method, etc. (`*`)\n    def incomplete_proc\n      @prompt_procs.last\n    end\n\n    # @deprecated Use a `Pry::Prompt` instance directly\n    def [](key)\n      key = key.to_s\n      if %w[name description].include?(key)\n        Pry::Warning.warn(\n          \"`Pry::Prompt[:#{@name}][:#{key}]` is deprecated. \" \\\n          \"Use `#{self.class}##{key}` instead\"\n        )\n        public_send(key)\n      elsif key.to_s == 'value'\n        Pry::Warning.warn(\n          \"`#{self.class}[:#{@name}][:value]` is deprecated. Use \" \\\n          \"`#{self.class}#prompt_procs` instead or an instance of \" \\\n          \"`#{self.class}` directly\"\n        )\n        @prompt_procs\n      end\n    end\n\n    add(\n      :default,\n      \"The default Pry prompt. Includes information about the current expression \\n\" \\\n      \"number, evaluation context, and nesting level, plus a reminder that you're \\n\" \\\n      'using Pry.'\n    ) do |context, nesting, pry_instance, sep|\n      format(\n        \"[%<in_count>s] %<name>s(%<context>s)%<nesting>s%<separator>s \",\n        in_count: pry_instance.input_ring.count,\n        name: pry_instance.config.prompt_name,","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/pry/pry/blob/135640262879544c6bfecbf3e78511289bfe956c/lib/pry/prompt.rb#L126-L162","documentation":"Error \"`#{self.class}[:#{@name}][:value]` is deprecated. Use `#{self.class}#prompt_procs` instead or an instance of `#{self.class}` directly\" thrown in pry/pry.","triggerScenarios":"Thrown at lib/pry/prompt.rb:144 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"135640262879544c6bfecbf3e78511289bfe956c","analyzedAt":"2026-08-21T19:07:03.985Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}