From 95128646c265dbbd378d3931ba78c4be8085aa1a Mon Sep 17 00:00:00 2001 From: Takuma Ishikawa Date: Fri, 30 Aug 2024 19:49:48 +0900 Subject: [PATCH] Fix return type of Kernerl#y which is added by psych It seems that Kernel#y returns nil from the beginning. - https://github.com/ruby/psych/blob/b051cf80bcafa6776fe3e3ac4b230c18bea3e95b/lib/psych/core_ext.rb#L12-L16 - https://github.com/ruby/psych/blob/045b31104754579c61bb5d2df9395a055cbb3354/lib/psych/y.rb#L5-L7 --- refm/api/src/psych/core_ext.rd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/refm/api/src/psych/core_ext.rd b/refm/api/src/psych/core_ext.rd index 0656d868f3..c1acba3c83 100644 --- a/refm/api/src/psych/core_ext.rd +++ b/refm/api/src/psych/core_ext.rd @@ -84,9 +84,9 @@ syck が廃止された場合 psych_to_yaml は廃止 == Instance Methods ---- y(*objects) -> String ---- psych_y(*objects) -> String -objects を YAML document に変換します。 +--- y(*objects) -> nil +--- psych_y(*objects) -> nil +objects を YAML document として標準出力に出力します。 このメソッドは irb 上でのみ定義されます。