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 e62b9a4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions stdlib/psych/0/core_ext.rbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
%a{annotate:rdoc:skip}
class Object
# <!--
# rdoc-file=ext/psych/lib/psych/core_ext.rb
# - 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 e62b9a4

Please sign in to comment.