Skip to content

Commit

Permalink
Add Object#to_yaml
Browse files Browse the repository at this point in the history
I copied types of `options` and return value from Psych.dump.
  • Loading branch information
znz committed Dec 2, 2024
1 parent 3fc6b05 commit 5e96ef6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stdlib/psych/0/core_ext.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%a{annotate:rdoc:skip}
class Object
# #
# call-seq: to_yaml(options = {})
#
# 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

0 comments on commit 5e96ef6

Please sign in to comment.