From f270f6f5c411696bc1f7dbba0fed4de62d26ca28 Mon Sep 17 00:00:00 2001 From: Vince Broz Date: Tue, 13 Oct 2026 09:03:06 -0400 Subject: [PATCH] Add `Object.yaml_tag` from psych psych's core_ext.rb defines `Object.yaml_tag(url)`, which calls `Psych.add_tag(url, self)` and so returns `url`. Without a signature, calls such as `Foo.yaml_tag "!foo"` cannot be resolved. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01EhUSLUimEYJyCZv8NdQGKb --- stdlib/psych/0/core_ext.rbs | 2 ++ test/stdlib/psych_test.rb | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/stdlib/psych/0/core_ext.rbs b/stdlib/psych/0/core_ext.rbs index a7f9e72852..0aa68795de 100644 --- a/stdlib/psych/0/core_ext.rbs +++ b/stdlib/psych/0/core_ext.rbs @@ -1,5 +1,7 @@ %a{annotate:rdoc:skip} class Object + def self.yaml_tag: (String url) -> String + #