D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Psych
/
Filename :
parse-c.ri
back
Copy
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"(yaml, filename: nil);T@$FI" Psych;TcRDoc::NormalModule00