Repository URL to install this package:
|
Version:
2.2.2-1 ▾
|
U:RDoc::AnyMethod[iI" load:EFI"Psych::load;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"ILoad +yaml+ in to a Ruby data structure. If multiple documents are ;TI"Lprovided, the object contained in the first document will be returned. ;TI"Q+filename+ will be used in the exception message if any exception is raised ;TI"while parsing.;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".Psych.load("--- a") # => 'a'
;TI"5Psych.load("---\n - a\n - b") # => ['a', 'b']
;TI"
;TI"begin
;TI"' Psych.load("--- `", "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:@format0:
@fileI"ext/psych/lib/psych.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(yaml, filename = nil);T@#FI"
Psych;FcRDoc::NormalModule00