Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby21
/
share
/
ri
/
2.1.0
/
system
/
Psych
/
//opt/alt/ruby21/share/ri/2.1.0/system/Psych/dump-c.ri
U:RDoc::AnyMethod[iI" dump:EFI"Psych::dump;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"QDump Ruby object +o+ to a YAML string. Optional +options+ may be passed in ;TI"Pto control the output format. If an IO object is passed in, the YAML will ;TI"!be dumped to that IO object.;To:RDoc::Markup::BlankLine o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"-# Dump an array, get back a YAML string ;TI"4Psych.dump(['a', 'b']) # => "---\n- a\n- b\n" ;TI" ;TI"%# Dump an array to an IO object ;TI"MPsych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890> ;TI" ;TI"*# Dump an array with indentation set ;TI"KPsych.dump(['a', ['b']], :indentation => 3) # => "---\n- a\n- - b\n" ;TI" ;TI"3# Dump an array to an IO with indentation set ;TI">Psych.dump(['a', ['b']], StringIO.new, :indentation => 3);T:@format0: @fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below0I"�Psych.dump(o) -> string of yaml Psych.dump(o, options) -> string of yaml Psych.dump(o, io) -> io object passed in Psych.dump(o, io, options) -> io object passed in ;T0[ I" (o, io = nil, options = {});T@!FI" Psych;FcRDoc::NormalModule00