diff --git a/stdlib/psych/0/core_ext.rbs b/stdlib/psych/0/core_ext.rbs new file mode 100644 index 0000000000..78860f9e55 --- /dev/null +++ b/stdlib/psych/0/core_ext.rbs @@ -0,0 +1,13 @@ +%a{annotate:rdoc:skip} +class Object + # + # + # Convert an object to YAML. See Psych.dump for more information on the + # available `options`. + # + def to_yaml: (?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> String + | [IO] (IO, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> IO +end