From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [94.130.110.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 474E11F4BE for ; Tue, 22 Oct 2024 00:12:38 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=ml.ruby-lang.org header.i=@ml.ruby-lang.org header.a=rsa-sha256 header.s=mail header.b=uAAKKGdO; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=jnCL7ikC; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1729555955; bh=73CRFgGoFC8XL9ye6wN/SI3gr+9RM8BdZWKCWJ6AGMs=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=uAAKKGdOFhBhYrcH7EYyfTjd/JYT1Pa069C3ZO30AtYmPn50FS9Lc5BQPDOYzmevR UtB8Wkxuewi2uwYRiG7o0UDjQ19QjyLBcOEV59K3vAXKcv451fsb9dt8LbO1IU7OPv e1nUGGiT/Tzq7QX//VBxgO6Zq2t/3gbxrxVVmeLw= Received: from nue.mailmanlists.eu (localhost [IPv6:::1]) by nue.mailmanlists.eu (Postfix) with ESMTP id AB3184457E for ; Tue, 22 Oct 2024 00:12:35 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=jnCL7ikC; dkim-atps=neutral Received: from s.wfbtzhsw.outbound-mail.sendgrid.net (s.wfbtzhsw.outbound-mail.sendgrid.net [159.183.224.105]) by nue.mailmanlists.eu (Postfix) with ESMTPS id F1C8044534 for ; Tue, 22 Oct 2024 00:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=FABUUzCNoJUOShB1THxDCVd5DPknb8cvB4ylb3duo4o=; b=jnCL7ikCteW56aBZfmD3fcoNFhmD6LpmKRq9EBsbif7YU1rBmiAgd+Mj+hlZnX3XO+IS TbOHQ2XyQ4efJmTyNoFkqYYbF7SZ5itpyCzKK5kfh4D7yDvbweZfnzXEFay3wr8NpVenBG cqh52xE4O8XdO9p+k1xR5xQVvFBKWoAWWjJuuKEWzN30mJvzsrqp2DOoyZY74aEDPljxR4 pNJwhmxtxp2DMkUe0/jIySBxDqakGJ9XfGme9QbrwP3USbCcJH6zsoiZegDl7uS24XHzZH PYA93m8NXMTUFWwV7UMS+DjH6ePiigD2lFSs1MCLAEo+9oY9V3bXqJVtL+5aQPNQ== Received: by recvd-76f978cffb-8n5mc with SMTP id recvd-76f978cffb-8n5mc-1-6716EDE6-1F 2024-10-22 00:12:22.76370887 +0000 UTC m=+3392120.974609976 Received: from herokuapp.com (unknown) by geopod-ismtpd-6 (SG) with ESMTP id XAi4rcu9REOtvrrE2tUp-A for ; Tue, 22 Oct 2024 00:12:22.709 +0000 (UTC) Date: Tue, 22 Oct 2024 00:12:22 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 20808 X-Redmine-Issue-Author: maicolben X-Redmine-Issue-Priority: Normal X-Redmine-Sender: mame X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 96216 X-SG-EID: =?us-ascii?Q?u001=2Ep+ckLDtT+4Y5c+H0YCkEnsuWiCQmn3OZA=2F9FzjoR6ZZlPaMv54M7EFoSM?= =?us-ascii?Q?CX5Trc79ep2R5F+0oYS4n23jq1cv5eRAQY1pFCh?= =?us-ascii?Q?TCNYG5nKd1x16KxAwIPslssmuE1Uaf+J7Po1PLz?= =?us-ascii?Q?2RrlKeB8gQs3RcASny8aq8+i1Eq6NViJ711WBfr?= =?us-ascii?Q?uOJiDtG4oP6YjGTQpEItOOxBCWlhflFOrRK52nA?= =?us-ascii?Q?57eoCQneH5TmN2=2FWl7fCKCBXryRDBp1dS9oQ+uD?= =?us-ascii?Q?DJht?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: u001.I8uzylDtAfgbeCOeLBYDww== Message-ID-Hash: AVS53TF4J4YQ3ETIGXGER5XEW2UEJFJL X-Message-ID-Hash: AVS53TF4J4YQ3ETIGXGER5XEW2UEJFJL X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:119582] [Ruby master Bug#20808] Cannot override Data#inspect List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "mame (Yusuke Endoh) via ruby-core" Cc: "mame (Yusuke Endoh)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #20808 has been updated by mame (Yusuke Endoh). The code in question is written by @osyo and committed by @nobu. Just FYI. ---------------------------------------- Bug #20808: Cannot override Data#inspect https://bugs.ruby-lang.org/issues/20808#change-110201 * Author: maicolben (Maicol Bentancor) * Status: Open * ruby -v: 3.3.5 * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- Given the next code: ``` Dog = Data.define(:name) do def inspect "Hello!" end private attr_reader :name end Dog.new(name: "Fido") ``` It throws an error: - An error occurred when inspecting the object: # And isn't using my `inspect` function -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/