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::BlankLineo; ; [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) # => # ;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