Skip to content

Commit adfd698

Browse files
committed
Add Object#to_yaml
I copied types of `options` and return value from Psych.dump.
1 parent 3fc6b05 commit adfd698

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

stdlib/psych/0/core_ext.rbs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
%a{annotate:rdoc:skip}
2+
class Object
3+
# <!--
4+
# rdoc-file=ext/psych/lib/psych/core_ext.rb
5+
# - to_yaml(options = {})
6+
# -->
7+
# Convert an object to YAML. See Psych.dump for more information on the
8+
# available `options`.
9+
#
10+
def to_yaml: (?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> String
11+
| [IO] (IO, ?indentation: Integer, ?line_width: Integer, ?canonical: bool, ?header: bool) -> IO
12+
end

0 commit comments

Comments
 (0)