File: //usr/share/ri/3.0.0/system/Psych/parse-c.ri
U:RDoc::AnyMethod[iI"
parse:ETI"Psych::parse;TT:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"IParse a YAML string in +yaml+. Returns the Psych::Nodes::Document. ;TI"L+filename+ is used in the exception message if a Psych::SyntaxError is ;TI"raised.;To:RDoc::Markup::BlankLine o;
; [I"FRaises a Psych::SyntaxError when a YAML syntax error is detected.;T@o;
; [I"
Example:;T@o:RDoc::Markup::Verbatim; [
I"HPsych.parse("---\n - a\n - b") # => #<Psych::Nodes::Document:0x00>
;TI"
;TI"begin
;TI"2 Psych.parse("--- `", filename: "file.txt")
;TI"%rescue Psych::SyntaxError => ex
;TI"" ex.file # => 'file.txt'
;TI"Q ex.message # => "(file.txt): found character that cannot start any token"
;TI" end
;T:@format0o;
; [I":See Psych::Nodes for more information about YAML AST.;T:
@fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below000[ I"L(yaml, legacy_filename = NOT_GIVEN, filename: nil, fallback: NOT_GIVEN);T@$FI"
Psych;TcRDoc::NormalModule00