We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents aa22d7e + 9c61968 commit 7c3cde9Copy full SHA for 7c3cde9
1 file changed
core/string.rbs
@@ -3580,4 +3580,15 @@ interface _ArefFromStringToString
3580
end
3581
3582
%a{deprecated}
3583
-type String::encode_fallback = Hash[String, String] | Proc | Method | _ArefFromStringToString
+type String::encode_fallback = Hash[String, String] | Proc | Method | String::_ArefFromStringToString
3584
+
3585
+# Don't use this interface directly
3586
+#
3587
+# This is a copy of `::_ArefFromStringToString` but without deprecated attribute.
3588
+# This is a workaround to avoid deprecation warnings in `String::encode_fallback` type.
3589
3590
+# This type will be deprecated soon once `::_ArefFromStringToString` and `String::encode_fallback` are removed.
3591
3592
+interface String::_ArefFromStringToString
3593
+ def []: (String) -> String
3594
+end
0 commit comments